nsc

nsc generate context

Generate nats cli user context

nsc generate context [flags]

Examples

nsc generate context --account a --user u --context contextName

Options

  -a, --account string   account name
      --context string   context name
  -h, --help             help for context
  -u, --user string      user name

Options inherited from parent commands

  -H, --all-dirs string       sets --config-dir, --data-dir, and --keystore-dir to the same value
      --config-dir string     nsc config directory
      --data-dir string       nsc data store directory
  -i, --interactive           ask questions for various settings
      --keystore-dir string   nsc keystore directory
  -K, --private-key string    Key used to sign. Can be specified as role (where applicable),
                              public key (private portion is retrieved)
                              or file path to a private key or private key 

SEE ALSO

Auto generated by spf13/cobra on 2-Jan-2025