Skip to content

1ctl profile

1ctl profile manages named API endpoints and credentials so environments or accounts remain isolated from each other.

Each profile is stored at ~/.satusky/profiles/<name>.json. ~/.satusky/context.json stores only the active profile name.

1ctl profile
Flag Type Required Default Description
--help, -h boolean No — Show help
Command Description
list List all profiles
create Create a new profile
use Switch to a profile
current Show the active profile
delete Delete a profile

Use --profile (or -p) for one command without changing the active profile:

Terminal window
1ctl --profile staging deploy

Set SATUSKY_PROFILE to select a profile for a shell session or script:

Terminal window
export SATUSKY_PROFILE=staging
1ctl deploy

An explicit --profile value takes precedence over SATUSKY_PROFILE, which takes precedence over the active profile.

Terminal window
1ctl profile create dev --url https://dev-api.satusky.com/v1/cli
1ctl profile create prod --url https://api.satusky.com/v1/cli
1ctl profile use dev
1ctl auth login --token <dev-token>
1ctl profile use prod
1ctl auth login --token <prod-token>
1ctl profile use dev
1ctl deploy
1ctl --profile prod deploy