atmos profile list
Use this command to list all configured profiles across all discovery locations with their details.
Usage
atmos profile list [flags]
Description
List all configured profiles across all locations with their details.
Profiles are discovered from multiple locations in precedence order:
- Configurable path:
profiles.base_pathinatmos.yaml - Project-hidden:
.atmos/profiles/ - XDG user directory:
~/.config/atmos/profiles/(or$XDG_CONFIG_HOME/atmos/profiles/) - Project directory:
profiles/
The output includes:
- Profile name
- Profile type (inline or directory)
- Source location
- Description (if available)
Flags
-f, --formatOutput format. Options:
table,json,yamlDefault:
table
Examples
List All Profiles
# List all available profiles in table format (default)
atmos profile list
Example output:
┌────────────┬───────────┬────────────────────────────┬─────────────────────────────────┐
│ NAME │ TYPE │ SOURCE │ DESCRIPTION │
├────────────┼───────────┼───────── ───────────────────┼─────────────────────────────────┤
│ developer │ directory │ profiles/developer │ Development environment │
│ ci │ directory │ profiles/ci │ CI/CD pipeline settings │
│ production │ inline │ atmos.yaml │ Production configuration │
│ debug │ directory │ ~/.config/atmos/profiles │ Debug logging enabled │
└────────────┴───────────┴────────────────────────────┴─────────────────────────────────┘
Output as JSON
# List profiles in JSON format for scripting
atmos profile list --format json
Example output:
[
{
"name": "developer",
"type": "directory",
"source": "profiles/developer",
"description": "Development environment"
},
{
"name": "ci",
"type": "directory",
"source": "profiles/ci",
"description": "CI/CD pipeline settings"
}
]
Output as YAML
# List profiles in YAML format
atmos profile list --format yaml
Example output:
- name: developer
type: directory
source: profiles/developer
description: Development environment
- name: ci
type: directory
source: profiles/ci
description: CI/CD pipeline settings
Using the Alias
You can also use the atmos list profiles alias:
# List profiles using the alias
atmos list profiles
# With format flag
atmos list profiles --format json
Scripting Examples
Check if a Profile Exists
# Check if 'developer' profile exists
if atmos profile list --format json | jq -e '.[] | select(.name == "developer")' > /dev/null; then
echo "Developer profile found"
atmos --profile developer terraform plan vpc -s dev
fi
List Profile Names Only
# Get just the profile names
atmos profile list --format json | jq -r '.[].name'
Count Available Profiles
# Count total profiles
atmos profile list --format json | jq 'length'
See Also
atmos profile- Profile management overviewatmos profile show- Show profile details- Global Flags - Using the
--profileflag