{
  "name": "bwdc",
  "description": "Bitwarden Directory Connector",
  "subcommands": [
    {
      "name": "login",
      "description": "Log in to Directory Connector",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ],
      "args": [
        {
          "name": "client_id",
          "description": "Organisation API client_id"
        },
        {
          "name": "client_secret",
          "description": "Organisation API client_secret"
        }
      ]
    },
    {
      "name": "logout",
      "description": "Log out of Directory Connector",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ]
    },
    {
      "name": "test",
      "description": "Prints a JSON formatted array of groups and users that would be synced to your Bitwarden organization",
      "options": [
        {
          "names": [
            "--last"
          ],
          "description": "Test only the changes since the last successful sync"
        },
        {
          "names": [
            "--help"
          ]
        }
      ]
    },
    {
      "name": "sync",
      "description": "Run a live sync operation and push data to your Bitwarden organization",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ]
    },
    {
      "name": "last-sync",
      "description": "The last-sync command returns an ISO 8601 timestamp for the last sync operation that was performed for users or groups. You must specify either users or groups as an <object> to run the command agains",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ],
      "args": [
        {
          "name": "Object",
          "description": "You must specify either users or groups as an <object> to run the command against"
        }
      ]
    },
    {
      "name": "config",
      "description": "The config command allows you to specify your directory settings",
      "subcommands": [
        {
          "name": "server",
          "description": "URL of your self-hosted installation (e.g. https://my.url.com) or https://vault.bitwarden.eu",
          "args": [
            {
              "name": "server-url",
              "description": "Specify the server URL"
            }
          ]
        },
        {
          "name": "directory",
          "description": "Type of directory to use",
          "args": [
            {
              "name": "directory-type",
              "description": "Active Directory/LDAP : 0\nAzure Active Directory : 1\nGoogle Workspace/GSuite : 2\nOkta : 3\nOneLogin : 4",
              "suggestions": [
                "0",
                "1",
                "2",
                "3",
                "4"
              ]
            }
          ]
        },
        {
          "name": "ldap.password",
          "description": "Password for connection to the LDAP server",
          "args": [
            {
              "name": "password",
              "description": "Specify the password"
            }
          ]
        },
        {
          "name": "azure.key",
          "description": "Azure AD secret key",
          "args": [
            {
              "name": "key",
              "description": "Specify the AD secret key"
            }
          ]
        },
        {
          "name": "gsuite.key",
          "description": "Google Workspace/GSuite private key",
          "args": [
            {
              "name": "key",
              "description": "Specify the Google Workspace/GSuite private key"
            }
          ]
        },
        {
          "name": "okta.token",
          "description": "Okta token",
          "args": [
            {
              "name": "token",
              "description": "Specify the Okta token"
            }
          ]
        },
        {
          "name": "onelogin.secret",
          "description": "OneLogin client secret",
          "args": [
            {
              "name": "secret",
              "description": "Specify the OneLogin client secret"
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ],
      "args": [
        {
          "name": "setting",
          "description": "Specify the setting to configure"
        },
        {
          "name": "value",
          "description": "Specify the value assigned to the setting"
        }
      ]
    },
    {
      "name": "data-file",
      "description": "Path to data.json database file",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ]
    },
    {
      "name": "clear-cache",
      "description": "The clear-cache command allows you to clear cached data that the application stores while performing sync operations",
      "options": [
        {
          "names": [
            "--help"
          ]
        }
      ]
    },
    {
      "name": "update",
      "description": "The update command allows you to check if your Directory Connector CLI is up-to-date"
    }
  ],
  "options": [
    {
      "names": [
        "--help"
      ],
      "description": "Show help for bwdc"
    }
  ]
}
