Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli config rename

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options
  • Examples

Rename a profile.

mongocli config rename <oldProfileName> <newProfileName> [options]
Name
Type
Required
Description
oldProfileName
string
true
Name of the profile to rename.
newProfileName
string
true
New name of the profile.
Name
Type
Required
Description
-h, --help
false
help for rename
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
Rename a profile called myProfile to testProfile:
$ mongocli config rename myProfile testProfile
←  mongocli config listmongocli config set →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.