aam config get¶
Configuration
Synopsis¶
Description¶
Get a configuration value from the global AAM configuration. Supports both top-level and nested configuration keys using dot notation.
Reads from ~/.aam/config.yaml and displays the current value.
Arguments¶
| Argument | Required | Description |
|---|---|---|
| KEY | Yes | Configuration key (dot-notation for nested keys) |
Options¶
This command has no command-specific options.
Examples¶
Example 1: Get Default Platform¶
Output:
Example 2: Get Author Name¶
Output:
Example 3: Get Author Email¶
Output:
Example 4: Get Security Setting¶
Output:
Example 5: Invalid Key¶
Output:
Example 6: Get Multiple Values¶
Output:
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success - value retrieved |
| 1 | Error - key not found |
Available Keys¶
Top-Level Keys¶
| Key | Description |
|---|---|
default_platform | Default deployment platform |
active_platforms | List of active platforms |
Author Section¶
| Key | Description |
|---|---|
author.name | Default author name |
author.email | Default author email |
Security Section¶
| Key | Description |
|---|---|
security.require_checksum | Checksum verification requirement |
security.require_signature | Signature verification requirement |
Related Commands¶
aam config set- Set configuration valuesaam config list- List all configuration
Notes¶
Dot Notation¶
Use dots to access nested configuration:
Configuration Source¶
This command reads from:
- Global config:
~/.aam/config.yaml - Built-in defaults (if key not in global config)
Project-level config (./.aam/config.yaml) is merged in the background but not directly accessible via this command.
Default Values¶
If a key is not set in the config file, the built-in default is returned:
# Key not set in config.yaml
aam config get default_platform
# Output: default_platform = cursor (default)
Boolean Representation¶
Boolean values are displayed as Python booleans:
Scripting Usage¶
Use in scripts to read configuration:
#!/bin/bash
PLATFORM=$(aam config get default_platform | cut -d= -f2 | tr -d ' ')
echo "Current platform: $PLATFORM"
Checking if Key Exists¶
If a key doesn't exist, the command exits with code 1:
Registry Configuration¶
Registry configuration is not accessible via config get:
Use instead:
Environment Variable Override¶
Configuration values can be overridden by environment variables:
export AAM_DEFAULT_PLATFORM=copilot
aam config get default_platform
# May show 'cursor' from config, but commands use 'copilot' from env
To see effective configuration including environment overrides:
Getting All Values¶
To see all configuration at once:
Unknown Section¶
If you query a valid section name without a field:
Output:
Specify the field:
Case Sensitivity¶
Keys are case-sensitive:
Max Depth¶
Configuration keys support up to 2 levels:
- ✓
default_platform - ✓
author.name - ✗
section.subsection.key
Verification After Set¶
Verify changes after setting:
aam config set default_platform copilot
aam config get default_platform
# Output: default_platform = copilot
Programmatic Access¶
For programmatic access in other languages:
# JSON output (planned feature)
aam config get default_platform --json
# {"key": "default_platform", "value": "cursor"}
Current workaround: