# Application Token

Manage application tokens in sfp server

* [`sfp server application-token create`](#sfp-server-application-token-create)
* [`sfp server application-token list`](#sfp-server-application-token-list)
* [`sfp server application-token revoke`](#sfp-server-application-token-revoke)

## `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*](https://source.flxbl.io/flxbl/sfp-pro)

## `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*](https://source.flxbl.io/flxbl/sfp-pro)

## `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*](https://source.flxbl.io/flxbl/sfp-pro)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp/sfp-community/cli-reference-v50-and-below/server/application-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
