Skip to content

mine config

View and manage your mine configuration via CLI — no manual TOML editing required.

Terminal window
mine config

Displays a summary of the current configuration: name, shell, AI provider, and analytics status.

Terminal window
mine config list

Lists every known config key with its current value and type (string, int, bool).

user.name (unset) [string]
user.email (unset) [string]
ai.model claude-sonnet-4-5-20250929 [string]
ai.provider claude [string]
ai.system_instructions (unset) [string]
analytics true [bool]
...
Terminal window
mine config get <key>

Returns the current value for a known key. Exits with a non-zero code and lists valid keys if the key is unknown.

Terminal window
mine config get ai.provider # → claude
mine config get analytics # → true
mine config get user.name # → (empty if unset)
Terminal window
mine config set <key> <value>

Sets a known configuration key with type-aware validation. Exits with a non-zero code on unknown key or type mismatch.

KeyTypeDescription
user.namestringYour display name
user.emailstringYour email address
shell.default_shellstringDefault shell path (e.g. /bin/bash)
ai.providerstringAI provider (claude, openai, gemini, openrouter)
ai.modelstringAI model name
ai.system_instructionsstringDefault system instructions for all AI commands
ai.ask_system_instructionsstringSystem instructions for mine ai ask
ai.review_system_instructionsstringSystem instructions for mine ai review
ai.commit_system_instructionsstringSystem instructions for mine ai commit
analyticsboolEnable anonymous usage analytics
Terminal window
# Set your display name
mine config set user.name "Jane"
# Switch AI provider
mine config set ai.provider openai
# Set a custom AI model
mine config set ai.model gpt-4o
# Disable analytics
mine config set analytics false
# Set global AI system instructions
mine config set ai.system_instructions "Always respond in English."
# Set per-command AI system instructions
mine config set ai.ask_system_instructions "You are a Go expert."
mine config set ai.review_system_instructions "Focus on security and performance."
mine config set ai.commit_system_instructions "Use Angular commit convention."
  • bool: accepts true, false, 1, 0, yes, no, on, off
  • string: accepts any value
  • Type mismatch returns a non-zero exit code with expected-type guidance
Terminal window
mine config unset <key>

Resets a known key to its schema default. Exits with a non-zero code on unknown key.

Terminal window
mine config unset ai.provider # resets to 'claude'
mine config unset user.name # resets to empty
mine config unset analytics # resets to true
Terminal window
mine config edit

Opens the config file in $EDITOR. If $EDITOR is not set, prints the config file path with instructions.

Terminal window
# Set your editor first
export EDITOR=vim
# Then open the config
mine config edit
Terminal window
mine config path

Prints the absolute path to your config file (typically ~/.config/mine/config.toml).

Terminal window
# Useful for scripting
cat $(mine config path)

All config commands are hook-wrapped and plugin-observable:

Command pathDescription
configBare mine config (dashboard)
config.listList all keys
config.getGet a key
config.setSet a key
config.unsetUnset a key
config.editOpen editor
config.pathPrint path
Terminal window
# View current config
mine config
# List all keys with values and types
mine config list
# Check a specific value
mine config get ai.provider
# Change your display name
mine config set user.name "Jane"
# Switch AI provider to OpenAI
mine config set ai.provider openai
mine config set ai.model gpt-4o
# Disable analytics
mine config set analytics false
# Reset AI provider to default (claude)
mine config unset ai.provider
# Open config in your editor
mine config edit
# Get config file path
mine config path