Create tokens

Description

Generate Codefresh token.

Create default token or provide --type and --subject. See options for more details.

Command

codefresh create token [name]

Arguments

Option Alias Default Description
name token name. required

Options

Option Alias Type Default Description
--help Print help information
--subject Name of the token subject
--type string user Type of the subject

Possible values:
- runtime-environment
- user
--scope -s array user scopes

Examples

Create token with default type

codefresh create token some-token

Create token from runtime environment

codefresh create token some-token --subject my-k8s-cluster/namespace --type runtime-environment