profile
A profile is a named bundle of connection settings: an API URL and an authentication token. Profiles let you switch between different Satusky environments — or different Satusky accounts — without overwriting your credentials each time.
Common setup: one profile pointing at https://api.satusky.com for production, another pointing at an internal dev API for testing. Switching is a single command.
Profile data lives in two files:
| File | Contents |
|---|---|
~/.satusky/profiles.json | All named profiles — name, API URL, auth status |
~/.satusky/context.json | Which profile is currently active |
Commands
Section titled “Commands”1ctl profile create
Section titled “1ctl profile create”1ctl profile create [--url <api-url>] <name>Creates a new profile entry in ~/.satusky/profiles.json. The profile starts unauthenticated. Run 1ctl auth login after switching to it to store a token for the new profile.
Flags
| Flag | Description |
|---|---|
--url <api-url> | API base URL for this profile. Defaults to https://api.satusky.com. |
Example
1ctl profile create --url https://dev-api.satusky.com dev1ctl profile create --url https://api.satusky.com prod1ctl profile use
Section titled “1ctl profile use”1ctl profile use <name>Sets the active profile. The change is written to ~/.satusky/context.json and persists across all subsequent commands until you switch again.
$ 1ctl profile use stagingSwitched to profile "staging" (https://staging-api.satusky.com)1ctl profile list
Section titled “1ctl profile list”1ctl profile listShows all profiles. The active profile is marked with *.
$ 1ctl profile list NAME API URL AUTHENTICATED* prod https://api.satusky.com yes staging https://staging-api.satusky.com yes dev https://dev-api.satusky.com no1ctl profile current
Section titled “1ctl profile current”1ctl profile currentPrints the name and API URL of the active profile without listing all profiles.
$ 1ctl profile currentprod (https://api.satusky.com)1ctl profile delete
Section titled “1ctl profile delete”1ctl profile delete <name>Removes a profile from ~/.satusky/profiles.json. You cannot delete the currently active profile — switch to another one first.
$ 1ctl profile delete devProfile "dev" deleted.Per-command profile override
Section titled “Per-command profile override”Use --profile (or -p) to run a single command against a different profile without changing the active profile permanently.
# Deploy using the staging profile, then return to whatever was active1ctl --profile staging deployThis is equivalent to profile use staging && <command> && profile use <previous>, except it does not touch the active profile in ~/.satusky/context.json at all.
Environment variable override
Section titled “Environment variable override”Set SATUSKY_PROFILE to force a specific profile for the duration of a shell session or script:
export SATUSKY_PROFILE=staging1ctl deploy # uses staging1ctl logs # also uses stagingSATUSKY_PROFILE takes precedence over the active profile in ~/.satusky/context.json, but --profile on the command line takes precedence over SATUSKY_PROFILE.
Typical multi-environment setup
Section titled “Typical multi-environment setup”# One-time setup1ctl profile create --url https://dev-api.satusky.com dev1ctl profile create --url https://api.satusky.com prod
1ctl profile use dev1ctl auth login # stores dev token under the dev profile
1ctl profile use prod1ctl auth login # stores prod token under the prod profile
# Day-to-day1ctl profile use dev1ctl deploy # deploys to dev
1ctl --profile prod deploy # one-off prod deploy, no permanent switchEach profile’s token is stored independently, so switching profiles also switches which account and organisation the CLI acts as.