Docs Menu
Docs Home
/ /
MongoDB CLI
/

mongocli ์ธ์ฆ

์ด ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ

  • ์˜ต์…˜
  • ์ƒ์†๋œ ์˜ต์…˜
  • ๊ด€๋ จ ๋ช…๋ น

CLI์˜ ์ธ์ฆ ์ƒํƒœ๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
ํ•„์ˆ˜ ์‚ฌํ•ญ
์„ค๋ช…
-h, --help
๊ฑฐ์ง“
์ธ์ฆ ๋„์›€๋ง
์ด๋ฆ„
์œ ํ˜•
ํ•„์ˆ˜ ์‚ฌํ•ญ
์„ค๋ช…
-P, --profile
๋ฌธ์ž์—ด
๊ฑฐ์ง“
๊ตฌ์„ฑ ํŒŒ์ผ์—์„œ ์‚ฌ์šฉํ•  ํ”„๋กœํ•„์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. MongoCLI์˜ ํ”„๋กœํ•„์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๋ ค๋ฉด https://dochub.mongodb.org/core/atlas-cli-configuration-file์„ ์ฐธ์กฐํ•˜์„ธ์š”.
  • mongocli auth login - MongoDB Atlas๋กœ ์ธ์ฆํ•ฉ๋‹ˆ๋‹ค.

  • mongocli auth logout - CLI์—์„œ ๋กœ๊ทธ์•„์›ƒํ•ฉ๋‹ˆ๋‹ค.

  • mongocli auth whoami - ์ธ์ฆ ์ƒํƒœ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ํ™•์ธํ•˜๊ณ  ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

๋Œ์•„๊ฐ€๊ธฐ

๋ช…๋ น.