Skip to content

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.

Examples:

  # Create with parameters
  cub context create my-context \
    --server=https://api.confighub.com \
    --space=default

  # Create from current authentication
  cub context create staging --from-current
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)

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO