Docs Menu

mongocli config rename

プロファイルの名前を変更します。

コマンド構文
mongocli config rename <oldProfileName> <newProfileName> [options]
名前
タイプ
必須
説明

oldProfileName

string

true

名前を変更するプロファイルの名前。

newProfileName

string

true

プロファイルの新しい名前。

名前
タイプ
必須
説明

-h, --help

false

名前変更のヘルプ

名前
タイプ
必須
説明

-P, --profile

string

false

構成ファイルから使用するプロファイルの名前。 MongoCLI のプロファイルについては、 https://docub.mongodb.org/core/atlas-cli-configuration-file を参照してください。

# Rename a profile called myProfile to testProfile:
mongocli config rename myProfile testProfile