{
  "id": "mongodb-atlas-cli",
  "name": "MongoDB Atlas CLI",
  "homepage": "https://www.mongodb.com/docs/atlas/cli/current/",
  "description": "The MongoDB Atlas CLI is a modern command line interface that enables you to manage MongoDB Atlas from the terminal.",
  "icon": "SimpleIcons:mongodb",
  "executables": [
    "atlas"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/atlascli/config.toml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[appData]/atlascli/config.toml",
        "match": {
          "key_path": [
            "*.public_api_key",
            "*.private_api_key",
            "*.access_token",
            "*.refresh_token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "[appData]/atlascli/config.toml",
        "match": {
          "key_path": [
            "*.mongosh_path"
          ]
        },
        "scope": "platform"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "atlas",
    "description": "Manage MongoDB Atlas. Use the tabs for listing and creating clusters; other resources are left out.",
    "quality": "ai-draft",
    "base": "fig:atlas",
    "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/atlas.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "cluster",
          "ls"
        ],
        "label": "List clusters",
        "description": "List the clusters in a project.",
        "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/atlas.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project_id",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output format",
            "type": "string",
            "option": [
              "--output",
              "-o"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "json-path",
                "label": "json-path"
              },
              {
                "value": "go-template",
                "label": "go-template"
              },
              {
                "value": "go-template-file",
                "label": "go-template-file"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "limit",
            "label": "Items per page",
            "type": "integer",
            "option": [
              "--limit"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "page",
            "label": "Page number",
            "type": "integer",
            "option": [
              "--page"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List clusters",
            "fields": [
              "project_id",
              "output"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project_id",
              "output",
              "limit",
              "page"
            ]
          }
        ]
      },
      {
        "path": [
          "cluster",
          "create"
        ],
        "label": "Create a cluster",
        "description": "Create one cluster in a project. A JSON file can provide the whole configuration.",
        "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/atlas.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project_id",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "provider",
            "label": "Cloud provider",
            "type": "string",
            "option": [
              "--provider"
            ],
            "suggestions": [
              {
                "value": "AWS",
                "label": "AWS"
              },
              {
                "value": "AZURE",
                "label": "AZURE"
              },
              {
                "value": "GCP",
                "label": "GCP"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "region",
            "label": "Region",
            "type": "string",
            "option": [
              "--region",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tier",
            "label": "Tier",
            "type": "string",
            "option": [
              "--tier"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "type",
            "label": "Cluster type",
            "type": "string",
            "option": [
              "--type"
            ],
            "suggestions": [
              {
                "value": "REPLICASET",
                "label": "REPLICASET"
              },
              {
                "value": "SHARDED",
                "label": "SHARDED"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "members",
            "label": "Replica set members",
            "type": "integer",
            "option": [
              "--members",
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "shards",
            "label": "Shards",
            "type": "integer",
            "option": [
              "--shards",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "disk_size",
            "label": "Disk size (GB)",
            "type": "integer",
            "option": [
              "--diskSizeGB"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "mdb_version",
            "label": "MongoDB version",
            "type": "string",
            "option": [
              "--mdbVersion"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "backup",
            "label": "Enable Continuous Cloud Backup",
            "type": "boolean",
            "option": [
              "--backup"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "file",
            "label": "Configuration file",
            "type": "path",
            "option": [
              "--file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create a cluster",
            "fields": [
              "project_id",
              "provider",
              "region",
              "tier",
              "type"
            ],
            "required": [
              "provider",
              "region",
              "tier"
            ]
          },
          {
            "id": "from_file",
            "label": "Create from JSON file",
            "fields": [
              "project_id",
              "file"
            ],
            "required": [
              "file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project_id",
              "provider",
              "region",
              "tier",
              "type",
              "file"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "members",
              "shards",
              "disk_size",
              "mdb_version",
              "backup"
            ]
          }
        ]
      }
    ]
  }
}
