Select
expanso-cli profile select
Set the current profile
Synopsis
Set the current profile to use for all subsequent commands.
What Happens:
When you select a profile, it becomes the default connection configuration for all CLI commands. The CLI will: • Use this profile's endpoint when connecting to Expanso • Use this profile's authentication credentials • Apply this profile's TLS/SSL settings • Use this profile's timeout configuration
Why Select A Profile?
Instead of specifying -p/--profile with every command, select your target environment once. All subsequent commands automatically use that profile.
Switching Environments:
To work with a different environment, simply select a different profile: expanso-cli profile select staging # Switch to staging expanso-cli job list # Lists jobs from staging
expanso-cli profile select prod # Switch to production expanso-cli job list # Lists jobs from production
You can also override the current profile on a per-command basis using the -p/--profile flag without changing your selection.
expanso-cli profile select PROFILE_NAME [flags]
Examples
# Select production profile
expanso-cli profile select production
# Switch to development
expanso-cli profile select dev
# Check which profile is currently selected
expanso-cli profile current
Options
-h, --help help for select
Options inherited from parent commands
--auth-token string API bearer authentication token
-e, --endpoint string API endpoint URL
-k, --insecure Skip TLS certificate verification
-p, --profile string Profile to use for configuration
--timeout string Request timeout duration
-v, --verbose Enable verbose logging
SEE ALSO
- expanso-cli profile - Manage client connection profiles