context create
tcloud context create
Create a new context with authentication and organisation
Synopsis
Create a new context. When no other credentials are provided, browser-based OIDC login is the default. You can also authenticate with a personal access token, access token, or OIDC client credentials.
tcloud context create [flags]Examples
# Create a context and log in through the browser (default)
tcloud context create --name production
# Create a context with a personal access token
tcloud context create --name ci --token=<PAT> --organisation=my-orgOptions
--browser log in through the browser using OIDC (default when no other credentials are provided)
--create-context creates a context (default true)
-h, --help help for create
--name string name of the context (default "default")Options inherited from parent commands
--access-token string Access Token authentication (overrides context)
--api string API endpoint (overrides context)
--client-id string OIDC client ID for OIDC authentication (overrides context)
--client-secret string OIDC client secret for OIDC authentication (overrides context)
-c, --context string Context name
--debug Debug mode
-O, --organisation string Organisation slug or identity (overrides context)
-P, --project string Project identity (overrides context; slug is resolved to identity; use "root" for organisation scope)
--token string Personal access token (overrides context)SEE ALSO
- tcloud context - Manage context
- tcloud context login - Login to Thalassa Cloud