codevsfp CLIsfp serverlibraries

Application Token

Create and revoke application tokens

sfp server application-token create

Create a new application token

USAGE
  $ sfp server application-token create -n <value> [--json] [-x <value>] [--sfp-server-url <value>] [-e <value> | ] [-g <value>...]
    [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for the autenticated cli user (check sfp server user auth)
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -n, --name=<value>                (required) Name of the token
  -x, --expires-in=<value>          [default: 30] Token expiration time in days
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --sfp-server-url=<value>      [default: http://localhost:3029, env: SFP_SERVER_URL] URL of the SFP server, You can
                                    also set this using the `SFP_SERVER_URL` environment variable

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a new application token

EXAMPLES
  $ sfp server application-token create --name "CI Token" --expires-in 30 --email user@example.com

See code: src/commands/server/application-token/create.ts

sfp server application-token list

List all application tokens

USAGE
  $ sfp server application-token list [--json] [--sfp-server-url <value>] [-e <value> | ] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for the autenticated cli user (check sfp server user auth)
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --sfp-server-url=<value>      [default: http://localhost:3029, env: SFP_SERVER_URL] URL of the SFP server, You can
                                    also set this using the `SFP_SERVER_URL` environment variable

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List all application tokens

EXAMPLES
  $ sfp server application-token list --email user@example.com

See code: src/commands/server/application-token/list.ts

sfp server application-token revoke

Revoke an application token

USAGE
  $ sfp server application-token revoke -t <value> [--json] [-e <value> | ] [--sfp-server-url <value>] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for the autenticated cli user (check sfp server user auth)
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -t, --token=<value>               (required) The token to revoke
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --sfp-server-url=<value>      [default: http://localhost:3029, env: SFP_SERVER_URL] URL of the SFP server, You can
                                    also set this using the `SFP_SERVER_URL` environment variable

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Revoke an application token

EXAMPLES
  $ sfp server application-token revoke --token-id token-id --email user@example.com

See code: src/commands/server/application-token/revoke.ts

On this page