Navigation

mongocli config describe

The config describe command retrieves details about the specified profile from the MongoDB CLI Configuration File.

Tip
See also:
mongocli config describe <profile-name>
Argument
Type
Description
Required?
<profile-name>
string
Name of the profile to retrieve. Specify default to retrieve the default profile.
yes

The command output looks similar to the following if the command succeeds. If the command prints errors, see Troubleshooting for recommended solutions.

public_api_key = redacted
service = <service-name>
ops_manager_ca_certificate = /etc/ssl/certs/ca.pem
ops_manager_skip_verify = no
ops_manager_url = <OM-URL>
private_api_key = redacted
project_id = <project-ID>
Note

The Programmatic API Keys are redacted for security purposes.

The following example uses the mongocli config describe command to retrieve a profile named egOmProfile from the configuration file.

mongocli config describe egOmProfile

The preceding command prints the following output to the terminal:

public_api_key = redacted
service = ops-manager
ops_manager_ca_certificate = /etc/ssl/certs/ca.pem
ops_manager_skip_verify = no
ops_manager_url = http://localhost:30700
private_api_key = redacted
project_id = 5e84b2edf949e9007a7beac3
Give Feedback