tfctl profile get
The tfctl profile get command gets a tfctl CLI configuration property.
Usage
$ tfctl profile get PROPERTY
Description
The tfctl profile get command prints out the value of specified property in your active profile. If the property is not set, tfctl will error.
To view all set properties, run tfctl profile display. To set the value of an individual property, run tfctl profile set.
Refer to Available properties for a list of the properties that can be configured for each profile.
Arguments
PROPERTY: (Required) Property to get, such asdefault_organizationandhostname.
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 examples demonstrate how to get profile configuration properties.
Get the default organization
The following example retrieves the default organization setting from the active profile.
$ tfctl profile get default_organization
Get the hostname
The following example retrieves the hostname setting from the active profile and prints it in JSON format.
$ tfctl profile get hostname --json
Get the telemetry setting
The following example retrieves the telemetry setting from the active profile.
$ tfctl profile get telemetry