akili config
Manage the CLI configuration. The configuration file stores API URLs, active profiles, and other settings. Tokens are stored in a separate file with restricted permissions.
Configuration file location: ~/.config/akili/config.toml
Commands
Section titled “Commands”akili config init
Section titled “akili config init”Initialize a new configuration file with a default profile.
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--api-url | http://localhost:8080 | API URL for the profile | |
--profile | default | Profile name to create |
Examples:
# Initialize with defaults (localhost)akili config init
# Initialize with a production URLakili config init --api-url https://api.akili.systems
# Initialize a named profileakili config init --api-url https://staging-api.akili.systems --profile stagingakili config show
Section titled “akili config show”Display the current CLI configuration, including the active profile, API URL, token status, timeout, and file paths.
Examples:
# Show current configakili config show
# Output:# Profile: default# API URL: https://api.akili.systems# Token: configured# Timeout: 30s## Config: /home/user/.config/akili/config.toml# Tokens: /home/user/.config/akili/tokensakili config set-profile <name>
Section titled “akili config set-profile <name>”Set the active profile in the configuration file. The profile must already exist in config.toml.
Arguments:
| Argument | Type | Required | Description |
|---|---|---|---|
name | string | yes | Profile name to activate |
Examples:
# Switch to staging profileakili config set-profile staging
# Switch back to defaultakili config set-profile defaultIf no configuration file exists, the command will suggest running akili config init first.
akili config path
Section titled “akili config path”Print the configuration file path to stdout.
Examples:
# Show config pathakili config path# Open in editor$EDITOR $(akili config path)Configuration File Format
Section titled “Configuration File Format”# Active profile selectionactive_profile = "default"
# Default profile[default]api_url = "https://api.akili.systems"
# Named profiles[profiles.staging]api_url = "https://staging-api.akili.systems"
[profiles.local]api_url = "http://localhost:8080"Profile Usage
Section titled “Profile Usage”Use the --profile global flag to override the active profile for a single command:
# Use staging profile for this command onlyakili --profile staging product list
# The active profile in config.toml is not changedFor CI/CD environments, use environment variables instead of profiles:
export AKILI_API_URL="https://api.akili.systems"export AKILI_TOKEN="akt_..."akili product list