Configuration Settings Reference
The following configuration settings can be applied when using Ping CLI.
The following configuration settings can be applied by using the config set command to persist the configuration value for a given Configuration Key in the Ping CLI configuration file.
The configuration file is created at .pingcli/config.yaml in the user’s home directory.
General Properties
| Configuration Key | Equivalent Parameter | Environment Variable | Data Type | Purpose |
|---|---|---|---|---|
|
String |
|||
|
String |
|||
|
|
PINGCLI_DETAILED_EXITCODE |
Boolean |
Enable detailed exit code output. (default false) 0 - pingcli command succeeded with no errors or warnings. 1 - pingcli command failed with errors. 2 - pingcli command succeeded with warnings. |
|
|
PINGCLI_NO_COLOR |
Boolean |
Disable text output in color. (default false) |
|
|
PINGCLI_OUTPUT_FORMAT |
String (Enum) |
Specify the console output format. (default text) Options are: json, text. |
|
String Array |
Ping Identity Platform Service Properties
| Configuration Key | Equivalent Parameter | Environment Variable | Data Type | Purpose |
|---|---|---|---|---|
|
|
PINGCLI_PINGFEDERATE_ADMIN_API_PATH |
String |
The PingFederate API URL path used to communicate with PingFederate’s admin API. (default /pf-admin-api/v1) |
|
|
PINGCLI_PINGFEDERATE_ACCESS_TOKEN |
String |
The PingFederate access token used to authenticate to the PingFederate admin API when using a custom OAuth 2.0 token method. |
|
|
PINGCLI_PINGFEDERATE_PASSWORD |
String |
The PingFederate password used to authenticate to the PingFederate admin API when using basic authentication. |
|
|
PINGCLI_PINGFEDERATE_USERNAME |
String |
The PingFederate username used to authenticate to the PingFederate admin API when using basic authentication. Example: 'administrator' |
|
|
PINGCLI_PINGFEDERATE_CLIENT_ID |
String |
The PingFederate OAuth client ID used to authenticate to the PingFederate admin API when using the OAuth 2.0 client credentials grant type. |
|
|
PINGCLI_PINGFEDERATE_CLIENT_SECRET |
String |
The PingFederate OAuth client secret used to authenticate to the PingFederate admin API when using the OAuth 2.0 client credentials grant type. |
|
|
PINGCLI_PINGFEDERATE_SCOPES |
String Array |
The PingFederate OAuth scopes used to authenticate to the PingFederate admin API when using the OAuth 2.0 client credentials grant type. (default []) Accepts a comma-separated string to delimit multiple scopes. Example: 'openid,profile' |
|
|
PINGCLI_PINGFEDERATE_TOKEN_URL |
String |
The PingFederate OAuth token URL used to authenticate to the PingFederate admin API when using the OAuth 2.0 client credentials grant type. |
|
|
PINGCLI_PINGFEDERATE_AUTHENTICATION_TYPE |
String (Enum) |
The authentication type to use when connecting to the PingFederate admin API. Options are: accessTokenAuth, basicAuth, clientCredentialsAuth. Example: 'basicAuth' |
|
|
PINGCLI_PINGFEDERATE_CA_CERTIFICATE_PEM_FILES |
String Array |
Relative or full paths to PEM-encoded certificate files to be trusted as root CAs when connecting to the PingFederate server over HTTPS. (default []) Accepts a comma-separated string to delimit multiple PEM files. |
|
|
PINGCLI_PINGFEDERATE_HTTPS_HOST |
String |
The PingFederate HTTPS host used to communicate with PingFederate’s admin API. Example: 'https://pingfederate-admin.bxretail.org' |
|
|
PINGCLI_PINGFEDERATE_INSECURE_TRUST_ALL_TLS |
Boolean |
Trust any certificate when connecting to the PingFederate server admin API. (default false) This is insecure and shouldn’t be enabled outside of testing. |
|
|
PINGCLI_PINGFEDERATE_X_BYPASS_EXTERNAL_VALIDATION_HEADER |
Boolean |
Bypass connection tests when configuring PingFederate (the X-BypassExternalValidation header when using PingFederate’s admin API). (default false) |
|
|
PINGCLI_PINGONE_AUTHENTICATION_TYPE |
String (Enum) |
The authentication type to use to authenticate to the PingOne management API. (default worker) Options are: worker. |
|
|
PINGCLI_PINGONE_WORKER_CLIENT_ID |
String (UUID Format) |
The worker client ID used to authenticate to the PingOne management API. |
|
|
PINGCLI_PINGONE_WORKER_CLIENT_SECRET |
String |
The worker client secret used to authenticate to the PingOne management API. |
|
|
PINGCLI_PINGONE_WORKER_ENVIRONMENT_ID |
String (UUID Format) |
The ID of the PingOne environment that contains the worker client used to authenticate to the PingOne management API. |
|
|
PINGCLI_PINGONE_REGION_CODE |
String (Enum) |
The region code of the PingOne tenant. Options are: AP, AU, CA, EU, NA. Example: 'NA' |
Platform Export Properties
| Configuration Key | Equivalent Parameter | Environment Variable | Data Type | Purpose |
|---|---|---|---|---|
|
|
PINGCLI_EXPORT_FORMAT |
String (Enum) |
Specifies the export format. (default HCL) Options are: HCL. |
|
|
PINGCLI_EXPORT_OUTPUT_DIRECTORY |
String |
Specifies the output directory for export. Can be an absolute filepath or a relative filepath of the present working directory. Example: '/Users/example/pingcli-export' Example: 'pingcli-export' |
|
|
PINGCLI_EXPORT_OVERWRITE |
Boolean |
Overwrites the existing generated exports in output directory. (default false) |
|
|
PINGCLI_PINGONE_EXPORT_ENVIRONMENT_ID |
String (UUID Format) |
The ID of the PingOne environment to export. Must be a valid PingOne UUID. |
|
|
PINGCLI_EXPORT_SERVICE_GROUP |
String (Enum) |
Specifies the service group to export. Options are: pingone. Example: 'pingone' |
|
|
PINGCLI_EXPORT_SERVICES |
String Array |
Specifies the service(s) to export. Accepts a comma-separated string to delimit multiple services. Options are: pingfederate, pingone-authorize, pingone-mfa, pingone-platform, pingone-protect, pingone-sso. Example: 'pingone-sso,pingone-mfa,pingfederate' |
License Properties
| Configuration Key | Equivalent Parameter | Environment Variable | Data Type | Purpose |
|---|---|---|---|---|
|
|
PINGCLI_LICENSE_DEVOPS_KEY |
String |
The DevOps key for the license request. See https://developer.pingidentity.com/devops/how-to/devopsRegistration.html on how to register a DevOps user. You can save the DevOps user and key in your profile using the 'pingcli config' commands. |
|
|
PINGCLI_LICENSE_DEVOPS_USER |
String |
The DevOps user for the license request. See https://developer.pingidentity.com/devops/how-to/devopsRegistration.html on how to register a DevOps user. You can save the DevOps user and key in your profile using the 'pingcli config' commands. |
Custom Request Properties
| Configuration Key | Equivalent Parameter | Environment Variable | Data Type | Purpose |
|---|---|---|---|---|
|
String |
|||
|
Integer |
|||
|
|
Boolean |
Return non-zero exit code when HTTP custom request returns a failure status code. |
|
|
|
PINGCLI_REQUEST_SERVICE |
String (Enum) |
The Ping service (configured in the active profile) to send the custom request to. Options are: pingone. Example: 'pingone' |