## zowe › rse-api-for-zowe-cli › auth

Connect to the RSE API Server authentication service and obtain a token. The token provides authentication to services that are supported by the RSE API. When you log in, the token is stored in your profile until it expires. Profiles store connection information, and are used if you do not supply connection information in a command. To take advantage of the token authentication service, you should omit username and password in profiles so that the token in the profile is used.

#### Usage

zowe rse-api-for-zowe-cli auth <command>

Where <command> is one of the following:

#### Commands

- login | li - Log in to an authentication service to obtain a JWT Token.
- logout | lo - Log out of the authentication service and retire the JWT Token
- query | q - Get back JWT Token information if it is not yet expired.
- refreshToken | rt - Refresh the current session and obtain a newer JWT Token.