{
  "id": "mongocli",
  "name": "MongoDB CLI",
  "homepage": "https://www.mongodb.com/docs/mongocli/current/",
  "description": "The MongoDB CLI is a modern command line interface that enables you to manage your MongoDB services from the terminal.",
  "icon": "SimpleIcons:mongodb",
  "executables": [
    "mongocli"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/mongocli/config.toml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[appData]/mongocli/config.toml",
        "match": {
          "key_path": [
            "*.public_api_key",
            "*.private_api_key",
            "*.access_token",
            "*.refresh_token",
            "*.standby_clusters_aws_access_key_id",
            "*.standby_clusters_aws_secret_access_key"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "[appData]/mongocli/config.toml",
        "match": {
          "key_path": [
            "*.ops_manager_ca_certificate"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "mongocli",
    "description": "Manage MongoDB Cloud Manager and Ops Manager. Use the tabs for login and whoami; other services are left out.",
    "quality": "ai-draft",
    "base": "fig:mongocli",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/mongocli.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "login"
        ],
        "label": "Log in",
        "description": "Authenticate with MongoDB Atlas, or Cloud Manager with the matching switch.",
        "parser": {
          "end_of_options": "--",
          "interleave": "permute",
          "long_equals": true,
          "short_attached": true,
          "short_bundles": false
        },
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/mongocli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "cm",
            "label": "Log in to Cloud Manager",
            "type": "boolean",
            "option": [
              "--cm"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "gov",
            "label": "Log in to Atlas for Government",
            "type": "boolean",
            "option": [
              "--gov"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "login_only",
            "label": "Skip profile configuration",
            "type": "boolean",
            "option": [
              "--loginOnly"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_browser",
            "label": "Do not open a browser",
            "type": "boolean",
            "option": [
              "--noBrowser"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "login",
            "label": "Log in",
            "fields": [
              "cm",
              "gov",
              "no_browser"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "cm",
              "gov",
              "login_only",
              "no_browser"
            ]
          }
        ]
      },
      {
        "path": [
          "whoami"
        ],
        "label": "Show authentication state",
        "description": "Verify and display the current authentication state.",
        "parser": {
          "end_of_options": "--",
          "interleave": "permute",
          "long_equals": true,
          "short_attached": true,
          "short_bundles": false
        },
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/mongocli.ts",
            "license": "MIT"
          }
        ]
      }
    ]
  }
}
