cub context create
cub context create
Create a new context
Synopsis
Create a new context. If no name is provided, the context will be given a random name.
The current context does not change: the new context is added, and everything else keeps talking to the server it was already talking to. Authenticate the new one by naming it, and adopt it as the current context when you want to, or ask for that up front with --use.
Examples:
# Create with parameters
cub context create my-context \
--server=https://api.confighub.com \
--space=default
# Create one for a second server and authenticate it, still working in the current one
cub context create local-9091 --server=http://localhost:9091
cub --context local-9091 auth login
# Create it and switch to it
cub context create staging --server=https://api.confighub.com --use
cub context create [name] [flags]
Options
-h, --help help for create
--organization string WorkOS organization ID (optional)
--server string API server URL
--space string Default space (optional)
--use Also make the new context the current one
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub context - Context commands