tfctl auth status
The tfctl auth status command displays information about the current authentication token.
Usage
$ tfctl auth status [options]
Description
The tfctl auth status command displays information about the active profile's account and token, including the hostname, username, and token expiration time if available.
If you are not authenticated or the token is invalid, the command prints an error message.
Global flags
All tfctl commands support options that control output formatting and CLI behavior. Refer to Global flags reference for the complete list of available options.
Exit codes
Examples
The following example demonstrates how to check authentication status with HCP Terraform.
Show authentication status
The following example displays information about the current authentication token.
$ tfctl auth status