Skip to content

Configuration

The CLI resolves settings in this order (highest priority first):

  1. CLI flags--api-key
  2. Environment variablesANCLA_API_KEY
  3. Local config.ancla/config.yaml in the current directory or any parent
  4. Global config~/.ancla/config.yaml
~/.ancla/config.yaml
api_key: ancla_your_key_here

Create a .ancla/config.yaml in your project root to override global settings for that project. The CLI walks up from the current working directory looking for a .ancla/ directory.

Terminal window
mkdir .ancla
echo 'api_key: ancla_project_specific_key' > .ancla/config.yaml

This is useful for using different API keys per project or workspace.

Terminal window
ancla settings show

API keys are masked in output.

Terminal window
ancla settings set api_key ancla_your_key_here
Terminal window
ancla settings edit

Opens the config file in $EDITOR (defaults to vi).

Terminal window
ancla settings path

Shows both the global and local (if found) config file locations.