Auth

Authenticate with sfp server

sfp auth clear

This command clears all the local tokens created by sfp auth login command

USAGE
  $ sfp auth clear [--json] [-e <value> | -a] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -a, --all                         Clear all users
  -e, --email=<value>               Email of the user
  -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>

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  This command clears all the local tokens created by sfp auth login command

EXAMPLES
  $ sfp auth clear --email [email protected]

  $ sfp auth clear --all

See code: src/commands/auth/clear.ts

sfp auth display

Display authentication token information

See code: src/commands/auth/display.ts

sfp auth list

This command lists all auth tokens of users and its status stored locally

See code: src/commands/auth/list.ts

sfp auth login

Authenticate with the SFP server using various authentication strategies. This creates a JWT token stored securely in the keychain for subsequent commands.

See code: src/commands/auth/login.ts

sfp auth refresh

Refreshes a stored authentication token using its refresh token. Useful in long running CI sessions or when a token is approaching expiry.

See code: src/commands/auth/refresh.ts

Last updated

Was this helpful?