step context

Name

step context -- manage certificate authority contexts

Usage

step context [global-flags] <subcommand> [arguments] [subcommand-flags]

Description

step context command group provides facilities to manage certificate authority contexts.

Examples

$ cat $(step path --base)/contexts.json
{
    "alpha-one": {
        "authority": "alpha-one.ca.smallstep.com",
        "profile": "alpha-one"
    },
    "alpha-two": {
        "authority": "alpha-two.ca.smallstep.com",
        "profile": "alpha-two"
    },
    "beta": {
        "authority": "beta.ca.smallstep.com",
        "profile": "beta"
    }
}

Select the default certificate authority context:

$ step context select alpha-one

List the available certificate authority contexts:

$ step context list
▶ alpha-one
alpha-two
beta

Commands

NameUsage
currentcurrent returns the name of the current context
listlist available certificate authority contexts
removeremove a context and all associated configuration
selectselect the default certificate authority context