Why use profiles
Multiple orgs and environments
Separate profiles for each org (dev, staging, production)
Multiple accounts
Switch between user and service accounts easily
Secure credentials
Store tokens in a profile instead of passing them with every command
CI/CD friendly
Create dedicated profiles for automation
Working with profiles
List all profiles
View a specific profile
Create a new profile
- Interactive login
- Service account token
The profile name is optional. If omitted, the CLI creates or updates the
default profile.Set default profile
--profile.
Update a profile
Update the organization, GVC, or default status for a profile and set it as the default:Clear default context
Remove the default organization or GVC from a profile by passing an empty string:Delete a profile
Profile properties
Each profile stores authentication and configuration settings that apply to all CLI commands.Context properties
Output properties
Request properties
Update any property with:
Override context
Override profile context
Override defaults for a single command:Environment variable overrides
Set these environment variables to override profile defaults:CPLN_PROFILE- The profile name that will become the defaultCPLN_TOKEN- Authentication tokenCPLN_ORG- Default organizationCPLN_GVC- Default GVC
View profile token
Display the token for a profile (useful for debugging or CI/CD setup):Profile best practices
Use descriptive profile names
Use descriptive profile names
Name profiles by environment or purpose:
dev,staging,productionorg1-prod,org2-stagingci,local-dev
Set default org and GVC in profiles
Set default org and GVC in profiles
Reduce the need for
--org and --gvc flags by setting defaults:Verify profile before mutating operations
Verify profile before mutating operations
Always check your active profile before running destructive commands:Look for the profile marked as default with a star
*.Use dedicated profiles for CI/CD
Use dedicated profiles for CI/CD
First, set your environment variables:Then create a profile and set it as default:The CLI automatically uses the environment variables for authentication and context.See CI/CD usage for details.
Common pitfalls
Next steps
Common Options
Learn about all shared CLI flags
CI/CD Setup
Configure profiles for automation