## zowe › auth › logout › apiml

Log out of the Zowe API Mediation Layer authentication service and revoke the token so it can no longer authenticate. Also remove the token from the default base profile, if it is stored on disk.

#### Usage

zowe auth logout apiml [options]

#### Base Connection Options

- `--host` | `-H` (string)

  - Host name of service on the mainframe.

- `--port` | `-P` (number)

  - Port number of service on the mainframe.

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.

    Allowed values: ^apimlAuthenticationToken.*, jwtToken, LtpaToken2

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API.

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

#### Profile Options

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Examples

- Log out of an API ML instance to revoke the token that was in use and remove it from your base profile:

  - `zowe auth logout apiml`

- Log out of an API ML instance to revoke a token that was not stored in a profile:

  - `zowe auth logout apiml --token-value <token>`