Global Options¶
Global options and environment variables that apply to all AAM commands.
Global Flags¶
--verbose / -v¶
Enable verbose output with debug-level logging.
When enabled:
- Shows DEBUG-level log messages
- Displays detailed operation steps
- Includes timestamps and module names in logs
- Useful for troubleshooting and understanding command behavior
Default: Disabled (WARNING-level logging)
--version¶
Display the AAM version and exit.
Output:
--global / -g (per-command)¶
Install, uninstall, list, upgrade, and check outdated packages in the global ~/.aam/ directory instead of the project-local .aam/ workspace. This is a per-command flag (not a root-level flag) that mirrors npm's -g behaviour.
aam install my-agent -g # Install globally
aam uninstall my-agent -g # Uninstall from global
aam list -g # List global packages
aam upgrade -g # Upgrade global packages
aam outdated -g # Check global packages for updates
When active, AAM prints a banner to confirm global mode:
Affected paths:
| Resource | Local (default) | Global (-g) |
|---|---|---|
| Packages | .aam/packages/ | ~/.aam/packages/ |
| Lock file | .aam/aam-lock.yaml | ~/.aam/aam-lock.yaml |
| Config | .aam/config.yaml | ~/.aam/config.yaml |
Supported commands: install, uninstall, list, upgrade, outdated
--help / -h¶
Show command help and exit. Can be used with any command or subcommand.
aam --help # Show all commands
aam install --help # Show install options
aam registry --help # Show registry subcommands
aam registry add --help # Show registry add options
Environment Variables¶
AAM respects the following environment variables:
AAM_HOME¶
Override the default AAM home directory.
Default: ~/.aam (Linux/macOS) or %USERPROFILE%\.aam (Windows)
Usage:
This directory contains:
config.yaml- Global configuration filecache/- Downloaded package cachelogs/- Command logs (if enabled)
AAM_CONFIG_PATH¶
Override the global configuration file path.
Default: $AAM_HOME/config.yaml
Usage:
Useful for:
- Using different configuration profiles
- Testing configuration changes
- CI/CD environments with custom config
AAM_REGISTRY_URL¶
Set a default registry URL without modifying config.
Usage:
This takes precedence over registries in config.yaml.
AAM_NO_COLOR¶
Disable colored output (for CI/CD or log files).
Usage:
AAM_LOG_LEVEL¶
Set the logging level without using --verbose.
Valid values: DEBUG, INFO, WARNING, ERROR, CRITICAL
Usage:
AAM_CACHE_DIR¶
Override the package cache directory.
Default: $AAM_HOME/cache
Usage:
Configuration Precedence¶
AAM loads configuration in the following order (later sources override earlier):
- Built-in defaults
- Global config file (
$AAM_HOME/config.yaml) - Project config file (
./.aam/config.yaml) - Environment variables
- Command-line flags
Examples¶
Verbose Installation with Custom Cache¶
CI/CD Configuration¶
export AAM_NO_COLOR=1
export AAM_HOME=/tmp/aam
export AAM_REGISTRY_URL=https://internal-registry.company.com
aam install required-packages
Debugging Registry Issues¶
Related Commands¶
aam config set- Set configuration valuesaam config get- Get configuration valuesaam config list- List all configuration
Related Documentation¶
- Configuration File - Configuration file format
- Environment Setup - Initial setup