Create Context

Description

Create or update an authentication context.

Creating authentication contexts enables the ability to work against multiple accounts.

Command

codefresh auth create-context [name]

Arguments

Option Alias Default Description
name default Context name

Options

Option Alias Type Default Description
--cfconfig Custom path for authentication contexts config file (default: ‘/root/.cfconfig’)
--help Print help information
--url string https://g.codefresh.io Codefresh system custom url
--api-key API key. required

Examples

Creating a default context using KEY as the api-key

codefresh auth create-context --api-key KEY

Creating a named context

codefresh auth create-context my-context --api-key KEY