Contexts let you store named configurations — including organization, project, region, and user credentials — so you don’t need to pass these flags on every command. Contexts are persisted in the user configuration folder. For example, on macOS they are stored inDocumentation Index
Fetch the complete documentation index at: https://docs.nscale.com/llms.txt
Use this file to discover all available pages before exploring further.
~/.config/nscale/contexts.yaml.
Aliases: context, ctx
Subcommands
- set — Create or update a context
- use — Set the current active context
- list — List all contexts
- delete — Delete a context
- clear — Clear the current context
set
Create or update a context with a given name, organization, and user.Flags
| Flag | Description |
|---|---|
--name string | Context name |
--org string | Organization ID |
--project string | Project ID |
--region string | Region ID |
--user string | Keyring user credentials to use |
Example
use
Set the current active context. All subsequent commands will use this context unless overridden with--context.
Example
list
List all configured contexts. Aliases:list, ls
delete
Delete a context by name. Aliases:delete, rm, remove