context
show your active account, project, and environment
🧠Show your active context.
Prints the account, project, and environment every command resolves by default,
and where each value came from — an environment variable (env), a saved
default (default), or nothing yet (unset).
Resolution order for any command is: the per-command flag (--account /
--project / --environment), then the environment variable, then the saved
default. Set defaults with csph account use, csph project use, and
csph environment use.
Usage​
csph context [flags]
Aliases​
context, ctx
Options​
Inherited​
Examples​
# show the active context
> csph context
# set defaults, then check
> csph account use <account-id>
> csph project use <project-id>
> csph context
See also​
- csph — ComputeSphere CLI
- csph auth — sign in, sign out, and manage API tokens
- csph apply — apply a computesphere.yaml manifest
- csph deploy — deploy an app in one shot
- csph import — import external config into a computesphere.yaml manifest
- csph accounts — manage accounts
- csph projects — manage projects
- csph environments — manage environments
- csph services — manage services
- csph deployments — manage deployments
- csph logs — view logs for a service or deployment
- csph alerts — manage alerts
- csph db — manage SphereDB databases
- csph cache — manage SphereCache caches
- csph queue — manage SphereQueue queues
- csph teams — manage teams
- csph activities — view activities
- csph profile — manage your profile
- csph configuration — Configuration via environment variables
- csph formatting — Output formatting
- csph exit-codes — Exit codes used by ComputeSphere
- csph completion — Generate the autocompletion script for the specified shell