CLI profiles
A profile is a name that combines a set of credentials and configurations stored locally on your computer. Some of these configurations include the credentials, region, and other settings such as output format.
The default profile is called default.
There are two ways you can specify a profile when invoking deployport CLI commands:
- Using environment variables
- Using
--profileflag
Use the environment variable
Section titled “Use the environment variable”The name of the environment variable to specify the name of the profile is DEPLOYPORT_PROFILE.
For example, the following command logs in and persists credentials in a profile called myapp-prod for the rest of the terminal session.
export DEPLOYPORT_PROFILE=myapp-proddeployport loginUse the --profile flag
Section titled “Use the --profile flag”When invoking any command of the deployport CLI you can specify the --profile.
For example, the following commands log into two separate profiles in the same terminal session:
deployport login --profile=myapp-proddeployport login --profile=myapp-devWhen you specify --profile on a command, it overrides the environment variable DEPLOYPORT_PROFILE.
Which profile answered
Section titled “Which profile answered”deployport profiles showIt names the active profile, and deployport whoami names the account and the principal that profile’s credentials resolve to.
Where the files live
Section titled “Where the files live”The CLI persists profile configurations at $HOME/.deployport/settings.yml while credentials are stored at $HOME/.deployport/credentials.yml.