Navigation

mongocli config list

The config list command prints a list of available profiles by name. If you did not specify a name for your profile, it displays as the default profile.

mongocli config list|ls
Note

Use -h or --help to view the command-line help for this command.

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

Available profiles:
<profile-name>

The following examples use the mongocli config list command to display available profiles by name.

Example 1

In the following example, the user configured only a default profile. The command lists default as the available profile.

mongocli config list
Available profiles:
default

Example 2

In the following example, the user configured multiple profiles. The command returns the available profiles in alphabetical order.

mongocli config list
Available profiles:
aProfile
default
egAtlasProfile
egcmProfile
testProfile
Give Feedback