{
  "name": "appwrite",
  "description": "Appwrite - Open-Source End-to-End Backend Server",
  "subcommands": [
    {
      "name": "login",
      "description": "The login command allows you to authenticate and manage a user account"
    },
    {
      "name": "init",
      "description": "The init command helps you initialize your Appwrite project, functions and collections",
      "subcommands": [
        {
          "name": "project",
          "description": "Initialise your Appwrite project"
        },
        {
          "name": "function",
          "description": "Initialise your Appwrite cloud function"
        },
        {
          "name": "collection",
          "description": "Initialise your Appwrite collections",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              }
            },
            {
              "names": [
                "--all"
              ],
              "description": "Flag to initialize all databases"
            }
          ]
        }
      ]
    },
    {
      "name": "deploy",
      "description": "The deploy command provides a convenient wrapper for deploying your functions and collections",
      "subcommands": [
        {
          "name": "function",
          "description": "Deploy functions in the current directory",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              }
            },
            {
              "names": [
                "--all"
              ],
              "description": "Flag to deploy all functions"
            }
          ]
        },
        {
          "name": "collection",
          "description": "Deploy collections in the current project",
          "options": [
            {
              "names": [
                "--all"
              ],
              "description": "Flag to deploy all functions"
            }
          ]
        }
      ]
    },
    {
      "name": "logout",
      "description": "The logout command allows you to logout of your Appwrite account"
    },
    {
      "name": "account",
      "description": "The account command allows you to authenticate and manage a user account",
      "subcommands": [
        {
          "name": "get",
          "description": "Get currently logged in user data as JSON object"
        },
        {
          "name": "create",
          "description": "Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](/docs/client/account#account",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "User password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "User name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              }
            }
          ]
        },
        {
          "name": "updateEmail",
          "description": "Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use ",
          "options": [
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "User password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createJWT",
          "description": "Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is val"
        },
        {
          "name": "getLogs",
          "description": "Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log",
          "options": [
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "updateName",
          "description": "Update currently logged in user account name",
          "options": [
            {
              "names": [
                "--name"
              ],
              "description": "User name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePassword",
          "description": "Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is o",
          "options": [
            {
              "names": [
                "--password"
              ],
              "description": "New user password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            },
            {
              "names": [
                "--oldPassword"
              ],
              "description": "Current user password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "oldPassword"
              }
            }
          ]
        },
        {
          "name": "updatePhone",
          "description": "Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the ",
          "options": [
            {
              "names": [
                "--number"
              ],
              "description": "Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212",
              "takes_arg": true,
              "arg": {
                "name": "number"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "User password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getPrefs",
          "description": "Get currently logged in user preferences as a key-value object"
        },
        {
          "name": "updatePrefs",
          "description": "Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded",
          "options": [
            {
              "names": [
                "--prefs"
              ],
              "description": "Prefs key-value JSON object",
              "takes_arg": true,
              "arg": {
                "name": "prefs"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createRecovery",
          "description": "Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email ad",
          "options": [
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--url"
              ],
              "description": "URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://chea",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateRecovery",
          "description": "Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your r",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Valid reset token",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "New user password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            },
            {
              "names": [
                "--passwordAgain"
              ],
              "description": "Repeat new user password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "passwordAgain"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getSessions",
          "description": "Get currently logged in user list of active sessions across different devices"
        },
        {
          "name": "deleteSessions",
          "description": "Delete all sessions from the user account and remove any sessions cookies from the end client"
        },
        {
          "name": "createAnonymousSession",
          "description": "Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to"
        },
        {
          "name": "createEmailSession",
          "description": "Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user",
          "options": [
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "User password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createMagicURLSession",
          "description": "Sends the user an email with a secret key for creating a session. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values ",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--url"
              ],
              "description": "URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://che",
              "takes_arg": true,
              "arg": {
                "name": "url"
              }
            }
          ]
        },
        {
          "name": "updateMagicURLSession",
          "description": "Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sendin",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Valid verification token",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createOAuth2Session",
          "description": "Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to pro",
          "options": [
            {
              "names": [
                "--provider"
              ],
              "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, autodesk, bitbucket, bitly, box, dailymotion, discord, dropbox, facebook, github, gitlab, google, linkedin, microsoft, notion",
              "takes_arg": true,
              "arg": {
                "name": "provider"
              },
              "is_required": true
            },
            {
              "names": [
                "--success"
              ],
              "description": "URL to redirect back to your app after a successful login attempt.  Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://che",
              "takes_arg": true,
              "arg": {
                "name": "success"
              }
            },
            {
              "names": [
                "--failure"
              ],
              "description": "URL to redirect back to your app after a failed login attempt.  Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsh",
              "takes_arg": true,
              "arg": {
                "name": "failure"
              }
            },
            {
              "names": [
                "--scopes"
              ],
              "description": "A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long",
              "takes_arg": true,
              "arg": {
                "name": "scopes",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "createPhoneSession",
          "description": "Sends the user an SMS with a secret key for creating a session. Use the returned user ID and secret and submit a request to the [PUT /account/sessions/phone](/docs/client/account#accountUpdatePhoneSes",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--number"
              ],
              "description": "Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212",
              "takes_arg": true,
              "arg": {
                "name": "number"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePhoneSession",
          "description": "Use this endpoint to complete creating a session with SMS. Use the **userId** from the [createPhoneSession](/docs/client/account#accountCreatePhoneSession) endpoint and the **secret** received via SMS",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Valid verification token",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getSession",
          "description": "Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used",
          "options": [
            {
              "names": [
                "--sessionId"
              ],
              "description": "Session ID. Use the string 'current' to get the current device session",
              "takes_arg": true,
              "arg": {
                "name": "sessionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateSession",
          "description": "Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token",
          "options": [
            {
              "names": [
                "--sessionId"
              ],
              "description": "Session ID. Use the string 'current' to update the current device session",
              "takes_arg": true,
              "arg": {
                "name": "sessionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteSession",
          "description": "Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided",
          "options": [
            {
              "names": [
                "--sessionId"
              ],
              "description": "Session ID. Use the string 'current' to delete the current device session",
              "takes_arg": true,
              "arg": {
                "name": "sessionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateStatus",
          "description": "Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead"
        },
        {
          "name": "createVerification",
          "description": "Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query p",
          "options": [
            {
              "names": [
                "--url"
              ],
              "description": "URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateVerification",
          "description": "Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Valid verification token",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createPhoneVerification",
          "description": "Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user's phone number using the [accountUpdatePhone](/docs/client/account#ac"
        },
        {
          "name": "updatePhoneVerification",
          "description": "Use this endpoint to complete the user phone verification process. Use the **userId** and **secret** that were sent to your user's phone number to verify the user email ownership. If confirmed this ro",
          "options": [
            {
              "names": [
                "--secret"
              ],
              "description": "Valid verification token",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "avatars",
      "description": "The avatars command aims to help you complete everyday tasks related to your app image, icons, and avatars",
      "subcommands": [
        {
          "name": "getBrowser",
          "description": "You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](/docs/client/account#accountGetS",
          "options": [
            {
              "names": [
                "--code"
              ],
              "description": "Browser Code",
              "takes_arg": true,
              "arg": {
                "name": "code"
              },
              "is_required": true
            },
            {
              "names": [
                "--width"
              ],
              "description": "Image width. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Image height. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--quality"
              ],
              "description": "Image quality. Pass an integer between 0 to 100. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "quality"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getCreditCard",
          "description": "The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.  When one dimension is specified and the ",
          "options": [
            {
              "names": [
                "--code"
              ],
              "description": "Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro",
              "takes_arg": true,
              "arg": {
                "name": "code"
              },
              "is_required": true
            },
            {
              "names": [
                "--width"
              ],
              "description": "Image width. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Image height. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--quality"
              ],
              "description": "Image quality. Pass an integer between 0 to 100. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "quality"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getFavicon",
          "description": "Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL",
          "options": [
            {
              "names": [
                "--url"
              ],
              "description": "Website URL which you want to fetch the favicon from",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getFlag",
          "description": "You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settin",
          "options": [
            {
              "names": [
                "--code"
              ],
              "description": "Country Code. ISO Alpha-2 country code format",
              "takes_arg": true,
              "arg": {
                "name": "code"
              },
              "is_required": true
            },
            {
              "names": [
                "--width"
              ],
              "description": "Image width. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Image height. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--quality"
              ],
              "description": "Image quality. Pass an integer between 0 to 100. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "quality"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getImage",
          "description": "Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make",
          "options": [
            {
              "names": [
                "--url"
              ],
              "description": "Image URL which you want to crop",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            },
            {
              "names": [
                "--width"
              ],
              "description": "Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getInitials",
          "description": "Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user na",
          "options": [
            {
              "names": [
                "--name"
              ],
              "description": "Full Name. When empty, current user name or email will be used. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              }
            },
            {
              "names": [
                "--width"
              ],
              "description": "Image width. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Image height. Pass an integer between 0 to 2000. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--color"
              ],
              "description": "Changes text color. By default a random color will be picked and stay will persistent to the given name",
              "takes_arg": true,
              "arg": {
                "name": "color"
              }
            },
            {
              "names": [
                "--background"
              ],
              "description": "Changes background color. By default a random color will be picked and stay will persistent to the given name",
              "takes_arg": true,
              "arg": {
                "name": "background"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getQR",
          "description": "Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image",
          "options": [
            {
              "names": [
                "--text"
              ],
              "description": "Plain text to be converted to QR code image",
              "takes_arg": true,
              "arg": {
                "name": "text"
              },
              "is_required": true
            },
            {
              "names": [
                "--size"
              ],
              "description": "QR code size. Pass an integer between 1 to 1000. Defaults to 400",
              "takes_arg": true,
              "arg": {
                "name": "size"
              }
            },
            {
              "names": [
                "--margin"
              ],
              "description": "Margin from edge. Pass an integer between 0 to 10. Defaults to 1",
              "takes_arg": true,
              "arg": {
                "name": "margin"
              }
            },
            {
              "names": [
                "--download"
              ],
              "description": "Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0",
              "takes_arg": true,
              "arg": {
                "name": "download"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "databases",
      "description": "The databases command allows you to create structured collections of documents, query and filter lists of documents",
      "subcommands": [
        {
          "name": "list",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "create",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Collection name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getUsage",
          "options": [
            {
              "names": [
                "--range"
              ],
              "description": "'Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        },
        {
          "name": "get",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "update",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Collection name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "delete",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listCollections",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "createCollection",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Collection name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--permission"
              ],
              "description": "Specifies the permissions model used in this collection, which accepts either 'collection' or 'document'. For 'collection' level permission, the permissions specified in read and write params are appl",
              "takes_arg": true,
              "arg": {
                "name": "permission"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of availabl",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of availa",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getCollection",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateCollection",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Collection name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--permission"
              ],
              "description": "Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the 'read' and 'write' params, or you can set document-",
              "takes_arg": true,
              "arg": {
                "name": "permission"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available perm",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available pe",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--enabled"
              ],
              "description": "Is collection enabled?",
              "takes_arg": true,
              "arg": {
                "name": "enabled"
              }
            }
          ]
        },
        {
          "name": "deleteCollection",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listAttributes",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createBooleanAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createEmailAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createEnumAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--elements"
              ],
              "description": "Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 4096 characters long",
              "takes_arg": true,
              "arg": {
                "name": "elements",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createFloatAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--min"
              ],
              "description": "Minimum value to enforce on new documents",
              "takes_arg": true,
              "arg": {
                "name": "min"
              }
            },
            {
              "names": [
                "--max"
              ],
              "description": "Maximum value to enforce on new documents",
              "takes_arg": true,
              "arg": {
                "name": "max"
              }
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createIntegerAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--min"
              ],
              "description": "Minimum value to enforce on new documents",
              "takes_arg": true,
              "arg": {
                "name": "min"
              }
            },
            {
              "names": [
                "--max"
              ],
              "description": "Maximum value to enforce on new documents",
              "takes_arg": true,
              "arg": {
                "name": "max"
              }
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createIpAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createStringAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--size"
              ],
              "description": "Attribute size for text attributes, in number of characters",
              "takes_arg": true,
              "arg": {
                "name": "size"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "createUrlAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--required"
              ],
              "description": "Is attribute required?",
              "takes_arg": true,
              "arg": {
                "name": "required"
              },
              "is_required": true
            },
            {
              "names": [
                "--xdefault"
              ],
              "description": "Default value for attribute when not provided. Cannot be set when attribute is required",
              "takes_arg": true,
              "arg": {
                "name": "xdefault"
              }
            },
            {
              "names": [
                "--array"
              ],
              "description": "Is attribute an array?",
              "takes_arg": true,
              "arg": {
                "name": "array"
              }
            }
          ]
        },
        {
          "name": "getAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteAttribute",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Attribute Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listDocuments",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--queries"
              ],
              "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/database#querying-documents). Maximum of 100 queries are allowed, each 4",
              "takes_arg": true,
              "arg": {
                "name": "queries",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderAttributes"
              ],
              "description": "Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 4096 characters long",
              "takes_arg": true,
              "arg": {
                "name": "orderAttributes",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--orderTypes"
              ],
              "description": "Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed",
              "takes_arg": true,
              "arg": {
                "name": "orderTypes",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "createDocument",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection). Make sure to define attributes before creatin",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--documentId"
              ],
              "description": "Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is ",
              "takes_arg": true,
              "arg": {
                "name": "documentId"
              },
              "is_required": true
            },
            {
              "names": [
                "--data"
              ],
              "description": "Document data as JSON object",
              "takes_arg": true,
              "arg": {
                "name": "data"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list o",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "getDocument",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--documentId"
              ],
              "description": "Document ID",
              "takes_arg": true,
              "arg": {
                "name": "documentId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateDocument",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--documentId"
              ],
              "description": "Document ID",
              "takes_arg": true,
              "arg": {
                "name": "documentId"
              },
              "is_required": true
            },
            {
              "names": [
                "--data"
              ],
              "description": "Document data as JSON object. Include only attribute and value pairs to be updated",
              "takes_arg": true,
              "arg": {
                "name": "data"
              }
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available perm",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available pe",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "deleteDocument",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--documentId"
              ],
              "description": "Document ID",
              "takes_arg": true,
              "arg": {
                "name": "documentId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listDocumentLogs",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--documentId"
              ],
              "description": "Document ID",
              "takes_arg": true,
              "arg": {
                "name": "documentId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "listIndexes",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createIndex",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Index Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            },
            {
              "names": [
                "--type"
              ],
              "description": "Index type",
              "takes_arg": true,
              "arg": {
                "name": "type"
              },
              "is_required": true
            },
            {
              "names": [
                "--attributes"
              ],
              "description": "Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long",
              "takes_arg": true,
              "arg": {
                "name": "attributes",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--orders"
              ],
              "description": "Array of index orders. Maximum of 100 orders are allowed",
              "takes_arg": true,
              "arg": {
                "name": "orders",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "getIndex",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Index Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteIndex",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection)",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Index Key",
              "takes_arg": true,
              "arg": {
                "name": "key"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listCollectionLogs",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "getCollectionUsage",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--collectionId"
              ],
              "description": "Collection ID",
              "takes_arg": true,
              "arg": {
                "name": "collectionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        },
        {
          "name": "listLogs",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "getDatabaseUsage",
          "options": [
            {
              "names": [
                "--databaseId"
              ],
              "description": "Database ID",
              "takes_arg": true,
              "arg": {
                "name": "databaseId"
              },
              "is_required": true
            },
            {
              "names": [
                "--range"
              ],
              "description": "'Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        }
      ]
    },
    {
      "name": "functions",
      "description": "The functions command allows you view, create and manage your Cloud Functions",
      "subcommands": [
        {
          "name": "list",
          "description": "Get a list of all the project's functions. You can use the query params to filter your results",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "create",
          "description": "Create a new function. You can pass a list of [permissions](/docs/permissions) to allow different project users or team with access to execute the function using the client API",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is ",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Function name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--execute"
              ],
              "description": "An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of ",
              "takes_arg": true,
              "arg": {
                "name": "execute",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--runtime"
              ],
              "description": "Execution runtime",
              "takes_arg": true,
              "arg": {
                "name": "runtime"
              },
              "is_required": true
            },
            {
              "names": [
                "--vars"
              ],
              "description": "Key-value JSON object that will be passed to the function as environment variables",
              "takes_arg": true,
              "arg": {
                "name": "vars"
              }
            },
            {
              "names": [
                "--events"
              ],
              "description": "Events list. Maximum of 100 events are allowed",
              "takes_arg": true,
              "arg": {
                "name": "events",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--schedule"
              ],
              "description": "Schedule CRON syntax",
              "takes_arg": true,
              "arg": {
                "name": "schedule"
              }
            },
            {
              "names": [
                "--timeout"
              ],
              "description": "Function maximum execution time in seconds",
              "takes_arg": true,
              "arg": {
                "name": "timeout"
              }
            }
          ]
        },
        {
          "name": "listRuntimes",
          "description": "Get a list of all runtimes that are currently active on your instance"
        },
        {
          "name": "get",
          "description": "Get a function by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "update",
          "description": "Update function by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Function name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--execute"
              ],
              "description": "An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of ",
              "takes_arg": true,
              "arg": {
                "name": "execute",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--vars"
              ],
              "description": "Key-value JSON object that will be passed to the function as environment variables",
              "takes_arg": true,
              "arg": {
                "name": "vars"
              }
            },
            {
              "names": [
                "--events"
              ],
              "description": "Events list. Maximum of 100 events are allowed",
              "takes_arg": true,
              "arg": {
                "name": "events",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--schedule"
              ],
              "description": "Schedule CRON syntax",
              "takes_arg": true,
              "arg": {
                "name": "schedule"
              }
            },
            {
              "names": [
                "--timeout"
              ],
              "description": "Maximum execution time in seconds",
              "takes_arg": true,
              "arg": {
                "name": "timeout"
              }
            }
          ]
        },
        {
          "name": "delete",
          "description": "Delete a function by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listDeployments",
          "description": "Get a list of all the project's code deployments. You can use the query params to filter your results",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about paginati",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "createDeployment",
          "description": "Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--entrypoint"
              ],
              "description": "Entrypoint File",
              "takes_arg": true,
              "arg": {
                "name": "entrypoint"
              },
              "is_required": true
            },
            {
              "names": [
                "--code"
              ],
              "description": "Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directo",
              "takes_arg": true,
              "arg": {
                "name": "code"
              },
              "is_required": true
            },
            {
              "names": [
                "--activate"
              ],
              "description": "Automatically activate the deployment when it is finished building",
              "takes_arg": true,
              "arg": {
                "name": "activate"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getDeployment",
          "description": "Get a code deployment by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--deploymentId"
              ],
              "description": "Deployment ID",
              "takes_arg": true,
              "arg": {
                "name": "deploymentId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateDeployment",
          "description": "Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--deploymentId"
              ],
              "description": "Deployment ID",
              "takes_arg": true,
              "arg": {
                "name": "deploymentId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteDeployment",
          "description": "Delete a code deployment by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--deploymentId"
              ],
              "description": "Deployment ID",
              "takes_arg": true,
              "arg": {
                "name": "deploymentId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "retryBuild",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--deploymentId"
              ],
              "description": "Deployment ID",
              "takes_arg": true,
              "arg": {
                "name": "deploymentId"
              },
              "is_required": true
            },
            {
              "names": [
                "--buildId"
              ],
              "description": "Build unique ID",
              "takes_arg": true,
              "arg": {
                "name": "buildId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listExecutions",
          "description": "Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Le",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            }
          ]
        },
        {
          "name": "createExecution",
          "description": "Trigger a function execution. The returned object will return you the current execution status. You can ping the 'Get Execution' endpoint to get updates on the current execution status. Once this endp",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--data"
              ],
              "description": "String of custom data to send to function",
              "takes_arg": true,
              "arg": {
                "name": "data"
              }
            },
            {
              "names": [
                "--async"
              ],
              "description": "Execute code asynchronously. Default value is true",
              "takes_arg": true,
              "arg": {
                "name": "async"
              }
            }
          ]
        },
        {
          "name": "getExecution",
          "description": "Get a function execution log by its unique ID",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--executionId"
              ],
              "description": "Execution ID",
              "takes_arg": true,
              "arg": {
                "name": "executionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getUsage",
          "options": [
            {
              "names": [
                "--functionId"
              ],
              "description": "Function ID",
              "takes_arg": true,
              "arg": {
                "name": "functionId"
              },
              "is_required": true
            },
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        }
      ]
    },
    {
      "name": "health",
      "description": "The health command allows you to both validate and monitor your Appwrite server's health",
      "subcommands": [
        {
          "name": "get",
          "description": "Check the Appwrite HTTP server is up and responsive"
        },
        {
          "name": "getAntivirus",
          "description": "Check the Appwrite Antivirus server is up and connection is successful"
        },
        {
          "name": "getCache",
          "description": "Check the Appwrite in-memory cache server is up and connection is successful"
        },
        {
          "name": "getDB",
          "description": "Check the Appwrite database server is up and connection is successful"
        },
        {
          "name": "getQueueCertificates",
          "description": "Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server"
        },
        {
          "name": "getQueueFunctions"
        },
        {
          "name": "getQueueLogs",
          "description": "Get the number of logs that are waiting to be processed in the Appwrite internal queue server"
        },
        {
          "name": "getQueueWebhooks",
          "description": "Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server"
        },
        {
          "name": "getStorageLocal",
          "description": "Check the Appwrite local storage device is up and connection is successful"
        },
        {
          "name": "getTime",
          "description": "Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikiped"
        }
      ]
    },
    {
      "name": "locale",
      "description": "The locale command allows you to customize your app based on your users' location",
      "subcommands": [
        {
          "name": "get",
          "description": "Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to g"
        },
        {
          "name": "getContinents",
          "description": "List of all continents. You can use the locale header to get the data in a supported language"
        },
        {
          "name": "getCountries",
          "description": "List of all countries. You can use the locale header to get the data in a supported language"
        },
        {
          "name": "getCountriesEU",
          "description": "List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language"
        },
        {
          "name": "getCountriesPhones",
          "description": "List of all countries phone codes. You can use the locale header to get the data in a supported language"
        },
        {
          "name": "getCurrencies",
          "description": "List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language"
        },
        {
          "name": "getLanguages",
          "description": "List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language"
        }
      ]
    },
    {
      "name": "projects",
      "description": "The projects command allows you to view, create and manage your Appwrite projects",
      "subcommands": [
        {
          "name": "list",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Results offset. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the project used as the starting point for the query, excluding the project itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](ht",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "create",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Project name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--teamId"
              ],
              "description": "Team unique ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--description"
              ],
              "description": "Project description. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "description"
              }
            },
            {
              "names": [
                "--logo"
              ],
              "description": "Project logo",
              "takes_arg": true,
              "arg": {
                "name": "logo"
              }
            },
            {
              "names": [
                "--url"
              ],
              "description": "Project URL",
              "takes_arg": true,
              "arg": {
                "name": "url"
              }
            },
            {
              "names": [
                "--legalName"
              ],
              "description": "Project legal Name. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalName"
              }
            },
            {
              "names": [
                "--legalCountry"
              ],
              "description": "Project legal Country. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalCountry"
              }
            },
            {
              "names": [
                "--legalState"
              ],
              "description": "Project legal State. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalState"
              }
            },
            {
              "names": [
                "--legalCity"
              ],
              "description": "Project legal City. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalCity"
              }
            },
            {
              "names": [
                "--legalAddress"
              ],
              "description": "Project legal Address. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalAddress"
              }
            },
            {
              "names": [
                "--legalTaxId"
              ],
              "description": "Project legal Tax ID. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalTaxId"
              }
            }
          ]
        },
        {
          "name": "get",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "update",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Project name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--description"
              ],
              "description": "Project description. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "description"
              }
            },
            {
              "names": [
                "--logo"
              ],
              "description": "Project logo",
              "takes_arg": true,
              "arg": {
                "name": "logo"
              }
            },
            {
              "names": [
                "--url"
              ],
              "description": "Project URL",
              "takes_arg": true,
              "arg": {
                "name": "url"
              }
            },
            {
              "names": [
                "--legalName"
              ],
              "description": "Project legal name. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalName"
              }
            },
            {
              "names": [
                "--legalCountry"
              ],
              "description": "Project legal country. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalCountry"
              }
            },
            {
              "names": [
                "--legalState"
              ],
              "description": "Project legal state. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalState"
              }
            },
            {
              "names": [
                "--legalCity"
              ],
              "description": "Project legal city. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalCity"
              }
            },
            {
              "names": [
                "--legalAddress"
              ],
              "description": "Project legal address. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalAddress"
              }
            },
            {
              "names": [
                "--legalTaxId"
              ],
              "description": "Project legal tax ID. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "legalTaxId"
              }
            }
          ]
        },
        {
          "name": "delete",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "Your user password for confirmation. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateAuthLimit",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Set the max number of users allowed in this project. Use 0 for unlimited",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateAuthStatus",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--method"
              ],
              "description": "Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone",
              "takes_arg": true,
              "arg": {
                "name": "method"
              },
              "is_required": true
            },
            {
              "names": [
                "--status"
              ],
              "description": "Set the status of this auth method",
              "takes_arg": true,
              "arg": {
                "name": "status"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listDomains",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createDomain",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--domain"
              ],
              "description": "Domain name",
              "takes_arg": true,
              "arg": {
                "name": "domain"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getDomain",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--domainId"
              ],
              "description": "Domain unique ID",
              "takes_arg": true,
              "arg": {
                "name": "domainId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteDomain",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--domainId"
              ],
              "description": "Domain unique ID",
              "takes_arg": true,
              "arg": {
                "name": "domainId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateDomainVerification",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--domainId"
              ],
              "description": "Domain unique ID",
              "takes_arg": true,
              "arg": {
                "name": "domainId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listKeys",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createKey",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Key name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--scopes"
              ],
              "description": "Key scopes list. Maximum of 100 scopes are allowed",
              "takes_arg": true,
              "arg": {
                "name": "scopes",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--expire"
              ],
              "description": "Key expiration time in Unix timestamp. Use 0 for unlimited expiration",
              "takes_arg": true,
              "arg": {
                "name": "expire"
              }
            }
          ]
        },
        {
          "name": "getKey",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--keyId"
              ],
              "description": "Key unique ID",
              "takes_arg": true,
              "arg": {
                "name": "keyId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateKey",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--keyId"
              ],
              "description": "Key unique ID",
              "takes_arg": true,
              "arg": {
                "name": "keyId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Key name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--scopes"
              ],
              "description": "Key scopes list. Maximum of 100 events are allowed",
              "takes_arg": true,
              "arg": {
                "name": "scopes",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--expire"
              ],
              "description": "Key expiration time in Unix timestamp. Use 0 for unlimited expiration",
              "takes_arg": true,
              "arg": {
                "name": "expire"
              }
            }
          ]
        },
        {
          "name": "deleteKey",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--keyId"
              ],
              "description": "Key unique ID",
              "takes_arg": true,
              "arg": {
                "name": "keyId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateOAuth2",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--provider"
              ],
              "description": "Provider Name",
              "takes_arg": true,
              "arg": {
                "name": "provider"
              },
              "is_required": true
            },
            {
              "names": [
                "--appId"
              ],
              "description": "Provider app ID. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "appId"
              }
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Provider secret key. Max length: 512 chars",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              }
            }
          ]
        },
        {
          "name": "listPlatforms",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createPlatform",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--type"
              ],
              "description": "Platform type",
              "takes_arg": true,
              "arg": {
                "name": "type"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Platform name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "key"
              }
            },
            {
              "names": [
                "--store"
              ],
              "description": "App store or Google Play store ID. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "store"
              }
            },
            {
              "names": [
                "--hostname"
              ],
              "description": "Platform client hostname. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "hostname"
              }
            }
          ]
        },
        {
          "name": "getPlatform",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--platformId"
              ],
              "description": "Platform unique ID",
              "takes_arg": true,
              "arg": {
                "name": "platformId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePlatform",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--platformId"
              ],
              "description": "Platform unique ID",
              "takes_arg": true,
              "arg": {
                "name": "platformId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Platform name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--key"
              ],
              "description": "Package name for android or bundle ID for iOS. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "key"
              }
            },
            {
              "names": [
                "--store"
              ],
              "description": "App store or Google Play store ID. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "store"
              }
            },
            {
              "names": [
                "--hostname"
              ],
              "description": "Platform client URL. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "hostname"
              }
            }
          ]
        },
        {
          "name": "deletePlatform",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--platformId"
              ],
              "description": "Platform unique ID",
              "takes_arg": true,
              "arg": {
                "name": "platformId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateServiceStatus",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--service"
              ],
              "description": "Service name",
              "takes_arg": true,
              "arg": {
                "name": "service"
              },
              "is_required": true
            },
            {
              "names": [
                "--status"
              ],
              "description": "Service status",
              "takes_arg": true,
              "arg": {
                "name": "status"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getUsage",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        },
        {
          "name": "listWebhooks",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "createWebhook",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Webhook name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--events"
              ],
              "description": "Events list. Maximum of 100 events are allowed",
              "takes_arg": true,
              "arg": {
                "name": "events",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--url"
              ],
              "description": "Webhook URL",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            },
            {
              "names": [
                "--security"
              ],
              "description": "Certificate verification, false for disabled or true for enabled",
              "takes_arg": true,
              "arg": {
                "name": "security"
              },
              "is_required": true
            },
            {
              "names": [
                "--httpUser"
              ],
              "description": "Webhook HTTP user. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "httpUser"
              }
            },
            {
              "names": [
                "--httpPass"
              ],
              "description": "Webhook HTTP password. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "httpPass"
              }
            }
          ]
        },
        {
          "name": "getWebhook",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--webhookId"
              ],
              "description": "Webhook unique ID",
              "takes_arg": true,
              "arg": {
                "name": "webhookId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateWebhook",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--webhookId"
              ],
              "description": "Webhook unique ID",
              "takes_arg": true,
              "arg": {
                "name": "webhookId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Webhook name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--events"
              ],
              "description": "Events list. Maximum of 100 events are allowed",
              "takes_arg": true,
              "arg": {
                "name": "events",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--url"
              ],
              "description": "Webhook URL",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            },
            {
              "names": [
                "--security"
              ],
              "description": "Certificate verification, false for disabled or true for enabled",
              "takes_arg": true,
              "arg": {
                "name": "security"
              },
              "is_required": true
            },
            {
              "names": [
                "--httpUser"
              ],
              "description": "Webhook HTTP user. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "httpUser"
              }
            },
            {
              "names": [
                "--httpPass"
              ],
              "description": "Webhook HTTP password. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "httpPass"
              }
            }
          ]
        },
        {
          "name": "deleteWebhook",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--webhookId"
              ],
              "description": "Webhook unique ID",
              "takes_arg": true,
              "arg": {
                "name": "webhookId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateWebhookSignature",
          "options": [
            {
              "names": [
                "--projectId"
              ],
              "description": "Project unique ID",
              "takes_arg": true,
              "arg": {
                "name": "projectId"
              },
              "is_required": true
            },
            {
              "names": [
                "--webhookId"
              ],
              "description": "Webhook unique ID",
              "takes_arg": true,
              "arg": {
                "name": "webhookId"
              },
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "storage",
      "description": "The storage command allows you to manage your project files",
      "subcommands": [
        {
          "name": "listBuckets",
          "description": "Get a list of all the storage buckets. You can use the query params to filter your results",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Results offset. The default value is 0. Use this param to manage pagination",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "createBucket",
          "description": "Create a new storage bucket",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Unique Id. Choose your own unique ID or pass the string 'unique()' to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Bucket name",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--permission"
              ],
              "description": "Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the 'read' and 'write' params, or you can set file-level permission whe",
              "takes_arg": true,
              "arg": {
                "name": "permission"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--enabled"
              ],
              "description": "Is bucket enabled?",
              "takes_arg": true,
              "arg": {
                "name": "enabled"
              }
            },
            {
              "names": [
                "--maximumFileSize"
              ],
              "description": "Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the '_APP_STORAGE_LIMIT' environment variable. [Learn more about stor",
              "takes_arg": true,
              "arg": {
                "name": "maximumFileSize"
              }
            },
            {
              "names": [
                "--allowedFileExtensions"
              ],
              "description": "Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long",
              "takes_arg": true,
              "arg": {
                "name": "allowedFileExtensions",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--encryption"
              ],
              "description": "Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled",
              "takes_arg": true,
              "arg": {
                "name": "encryption"
              }
            },
            {
              "names": [
                "--antivirus"
              ],
              "description": "Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled",
              "takes_arg": true,
              "arg": {
                "name": "antivirus"
              }
            }
          ]
        },
        {
          "name": "getBucket",
          "description": "Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Bucket unique ID",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateBucket",
          "description": "Update a storage bucket by its unique ID",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Bucket unique ID",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Bucket name",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--permission"
              ],
              "description": "Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the 'read' and 'write' params, or you can set file-level permission whe",
              "takes_arg": true,
              "arg": {
                "name": "permission"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--enabled"
              ],
              "description": "Is bucket enabled?",
              "takes_arg": true,
              "arg": {
                "name": "enabled"
              }
            },
            {
              "names": [
                "--maximumFileSize"
              ],
              "description": "Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage envir",
              "takes_arg": true,
              "arg": {
                "name": "maximumFileSize"
              }
            },
            {
              "names": [
                "--allowedFileExtensions"
              ],
              "description": "Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long",
              "takes_arg": true,
              "arg": {
                "name": "allowedFileExtensions",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--encryption"
              ],
              "description": "Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled",
              "takes_arg": true,
              "arg": {
                "name": "encryption"
              }
            },
            {
              "names": [
                "--antivirus"
              ],
              "description": "Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled",
              "takes_arg": true,
              "arg": {
                "name": "antivirus"
              }
            }
          ]
        },
        {
          "name": "deleteBucket",
          "description": "Delete a storage bucket by its unique ID",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Bucket unique ID",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listFiles",
          "description": "Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API mo",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "createFile",
          "description": "Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](/docs/server/database#storageCreateBucket) API or directly from your Appwrite co",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 c",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            },
            {
              "names": [
                "--file"
              ],
              "description": "Binary file",
              "takes_arg": true,
              "arg": {
                "name": "file"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list o",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "getFile",
          "description": "Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateFile",
          "description": "Update a file by its unique ID. Only users with write permissions have access to update this resource",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File unique ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            },
            {
              "names": [
                "--read"
              ],
              "description": "An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of availabl",
              "takes_arg": true,
              "arg": {
                "name": "read",
                "is_variadic": true
              }
            },
            {
              "names": [
                "--write"
              ],
              "description": "An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of availa",
              "takes_arg": true,
              "arg": {
                "name": "write",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "deleteFile",
          "description": "Delete a file by its unique ID. Only users with write permissions have access to delete this resource",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getFileDownload",
          "description": "Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getFilePreview",
          "description": "Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon imag",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            },
            {
              "names": [
                "--width"
              ],
              "description": "Resize preview image width, Pass an integer between 0 to 4000",
              "takes_arg": true,
              "arg": {
                "name": "width"
              }
            },
            {
              "names": [
                "--height"
              ],
              "description": "Resize preview image height, Pass an integer between 0 to 4000",
              "takes_arg": true,
              "arg": {
                "name": "height"
              }
            },
            {
              "names": [
                "--gravity"
              ],
              "description": "Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right",
              "takes_arg": true,
              "arg": {
                "name": "gravity"
              }
            },
            {
              "names": [
                "--quality"
              ],
              "description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100",
              "takes_arg": true,
              "arg": {
                "name": "quality"
              }
            },
            {
              "names": [
                "--borderWidth"
              ],
              "description": "Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0",
              "takes_arg": true,
              "arg": {
                "name": "borderWidth"
              }
            },
            {
              "names": [
                "--borderColor"
              ],
              "description": "Preview image border color. Use a valid HEX color, no # is needed for prefix",
              "takes_arg": true,
              "arg": {
                "name": "borderColor"
              }
            },
            {
              "names": [
                "--borderRadius"
              ],
              "description": "Preview image border radius in pixels. Pass an integer between 0 to 4000",
              "takes_arg": true,
              "arg": {
                "name": "borderRadius"
              }
            },
            {
              "names": [
                "--opacity"
              ],
              "description": "Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1",
              "takes_arg": true,
              "arg": {
                "name": "opacity"
              }
            },
            {
              "names": [
                "--rotation"
              ],
              "description": "Preview image rotation in degrees. Pass an integer between -360 and 360",
              "takes_arg": true,
              "arg": {
                "name": "rotation"
              }
            },
            {
              "names": [
                "--background"
              ],
              "description": "Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix",
              "takes_arg": true,
              "arg": {
                "name": "background"
              }
            },
            {
              "names": [
                "--output"
              ],
              "description": "Output format type (jpeg, jpg, png, gif and webp)",
              "takes_arg": true,
              "arg": {
                "name": "output"
              }
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getFileView",
          "description": "Get a file content by its unique ID. This endpoint is similar to the download method but returns with no  'Content-Disposition: attachment' header",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket)",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--fileId"
              ],
              "description": "File ID",
              "takes_arg": true,
              "arg": {
                "name": "fileId"
              },
              "is_required": true
            },
            {
              "names": [
                "--destination"
              ],
              "description": "Output file path",
              "takes_arg": true,
              "arg": {
                "name": "path"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getUsage",
          "options": [
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        },
        {
          "name": "getBucketUsage",
          "options": [
            {
              "names": [
                "--bucketId"
              ],
              "description": "Bucket ID",
              "takes_arg": true,
              "arg": {
                "name": "bucketId"
              },
              "is_required": true
            },
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            }
          ]
        }
      ]
    },
    {
      "name": "teams",
      "description": "The teams command allows you to group users of your project and to enable them to share read and write access to your project resources",
      "subcommands": [
        {
          "name": "list",
          "description": "Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\n \n In admin mode, this endpoint returns a list of all the teams in the current pro",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "create",
          "description": "Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 c",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Team name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            },
            {
              "names": [
                "--roles"
              ],
              "description": "Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permi",
              "takes_arg": true,
              "arg": {
                "name": "roles",
                "is_variadic": true
              }
            }
          ]
        },
        {
          "name": "get",
          "description": "Get a team by its ID. All team members have read access for this resource",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "update",
          "description": "Update a team using its ID. Only members with the owner role can update the team",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "New team name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "delete",
          "description": "Delete a team using its ID. Only team members with the owner role can delete the team",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "listLogs",
          "description": "Get the team activity logs list by its unique ID",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "getMemberships",
          "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about paginati",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "createMembership",
          "description": "Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--email"
              ],
              "description": "Email of the new team member",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--roles"
              ],
              "description": "Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 cha",
              "takes_arg": true,
              "arg": {
                "name": "roles",
                "is_variadic": true
              },
              "is_required": true
            },
            {
              "names": [
                "--url"
              ],
              "description": "URL to redirect the user back to your app from the invitation email.  Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://c",
              "takes_arg": true,
              "arg": {
                "name": "url"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "Name of the new team member. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              }
            }
          ]
        },
        {
          "name": "getMembership",
          "description": "Get a team member by the membership unique id. All team members have read access for this resource",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--membershipId"
              ],
              "description": "Membership ID",
              "takes_arg": true,
              "arg": {
                "name": "membershipId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateMembershipRoles",
          "description": "Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](/docs/permissions)",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--membershipId"
              ],
              "description": "Membership ID",
              "takes_arg": true,
              "arg": {
                "name": "membershipId"
              },
              "is_required": true
            },
            {
              "names": [
                "--roles"
              ],
              "description": "An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles ",
              "takes_arg": true,
              "arg": {
                "name": "roles",
                "is_variadic": true
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteMembership",
          "description": "This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--membershipId"
              ],
              "description": "Membership ID",
              "takes_arg": true,
              "arg": {
                "name": "membershipId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateMembershipStatus",
          "description": "Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.  If the request is successful, a sessio",
          "options": [
            {
              "names": [
                "--teamId"
              ],
              "description": "Team ID",
              "takes_arg": true,
              "arg": {
                "name": "teamId"
              },
              "is_required": true
            },
            {
              "names": [
                "--membershipId"
              ],
              "description": "Membership ID",
              "takes_arg": true,
              "arg": {
                "name": "membershipId"
              },
              "is_required": true
            },
            {
              "names": [
                "--secret"
              ],
              "description": "Secret key",
              "takes_arg": true,
              "arg": {
                "name": "secret"
              },
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "users",
      "description": "The users command allows you to manage your project users",
      "subcommands": [
        {
          "name": "list",
          "description": "Get a list of all the project's users. You can use the query params to filter your results",
          "options": [
            {
              "names": [
                "--search"
              ],
              "description": "Search term to filter your list results. Max length: 256 chars",
              "takes_arg": true,
              "arg": {
                "name": "search"
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            },
            {
              "names": [
                "--cursor"
              ],
              "description": "ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://",
              "takes_arg": true,
              "arg": {
                "name": "cursor"
              }
            },
            {
              "names": [
                "--cursorDirection"
              ],
              "description": "Direction of the cursor, can be either 'before' or 'after'",
              "takes_arg": true,
              "arg": {
                "name": "cursorDirection"
              }
            },
            {
              "names": [
                "--orderType"
              ],
              "description": "Order result by ASC or DESC order",
              "takes_arg": true,
              "arg": {
                "name": "orderType"
              }
            }
          ]
        },
        {
          "name": "create",
          "description": "Create a new user",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 c",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "User password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "User name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              }
            }
          ]
        },
        {
          "name": "getUsage",
          "options": [
            {
              "names": [
                "--range"
              ],
              "description": "Date range",
              "takes_arg": true,
              "arg": {
                "name": "range"
              }
            },
            {
              "names": [
                "--provider"
              ],
              "description": "Provider Name",
              "takes_arg": true,
              "arg": {
                "name": "provider"
              }
            }
          ]
        },
        {
          "name": "get",
          "description": "Get a user by its unique ID"
        },
        {
          "name": "delete",
          "description": "Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If"
        },
        {
          "name": "updateEmail",
          "description": "Update the user email by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--email"
              ],
              "description": "User email",
              "takes_arg": true,
              "arg": {
                "name": "email"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getLogs",
          "description": "Get the user activity logs list by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request",
              "takes_arg": true,
              "arg": {
                "name": "limit"
              }
            },
            {
              "names": [
                "--offset"
              ],
              "description": "Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)",
              "takes_arg": true,
              "arg": {
                "name": "offset"
              }
            }
          ]
        },
        {
          "name": "getMemberships",
          "description": "Get the user membership list by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateName",
          "description": "Update the user name by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--name"
              ],
              "description": "User name. Max length: 128 chars",
              "takes_arg": true,
              "arg": {
                "name": "name"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePassword",
          "description": "Update the user password by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--password"
              ],
              "description": "New user password. Must be at least 8 chars",
              "takes_arg": true,
              "arg": {
                "name": "password"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePhone",
          "description": "Update the user phone by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--number"
              ],
              "description": "User phone number",
              "takes_arg": true,
              "arg": {
                "name": "number"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getPrefs",
          "description": "Get the user preferences by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePrefs",
          "description": "Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--prefs"
              ],
              "description": "Prefs key-value JSON object",
              "takes_arg": true,
              "arg": {
                "name": "prefs"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "getSessions",
          "description": "Get the user sessions list by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteSessions",
          "description": "Delete all user's sessions by using the user's unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "deleteSession",
          "description": "Delete a user sessions by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--sessionId"
              ],
              "description": "Session ID",
              "takes_arg": true,
              "arg": {
                "name": "sessionId"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateStatus",
          "description": "Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--status"
              ],
              "description": "User Status. To activate the user pass 'true' and to block the user pass 'false'",
              "takes_arg": true,
              "arg": {
                "name": "status"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updateEmailVerification",
          "description": "Update the user email verification status by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--emailVerification"
              ],
              "description": "User email verification status",
              "takes_arg": true,
              "arg": {
                "name": "emailVerification"
              },
              "is_required": true
            }
          ]
        },
        {
          "name": "updatePhoneVerification",
          "description": "Update the user phone verification status by its unique ID",
          "options": [
            {
              "names": [
                "--userId"
              ],
              "description": "User ID",
              "takes_arg": true,
              "arg": {
                "name": "userId"
              },
              "is_required": true
            },
            {
              "names": [
                "--phoneVerification"
              ],
              "description": "User phone verification status",
              "takes_arg": true,
              "arg": {
                "name": "phoneVerification"
              },
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "client",
      "description": "The client command allows you to configure your CLI",
      "options": [
        {
          "names": [
            "--selfSigned"
          ],
          "description": "Configure the CLI to use a self-signed certificate ( true or false )",
          "takes_arg": true,
          "arg": {
            "name": "value"
          }
        },
        {
          "names": [
            "--endpoint"
          ],
          "description": "Set your Apwrite server endpoint",
          "takes_arg": true,
          "arg": {
            "name": "endpoint"
          }
        },
        {
          "names": [
            "--projectId"
          ],
          "description": "Set your Apwrite project ID",
          "takes_arg": true,
          "arg": {
            "name": "projectId"
          }
        },
        {
          "names": [
            "--key"
          ],
          "description": "Set your Apwrite server's API key",
          "takes_arg": true,
          "arg": {
            "name": "key"
          }
        },
        {
          "names": [
            "--debug"
          ],
          "description": "Print CLI debug information"
        },
        {
          "names": [
            "--reset"
          ],
          "description": "Reset the CLI configuration"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "-v",
        "--version"
      ],
      "description": "Output the version number"
    },
    {
      "names": [
        "--verbose"
      ],
      "description": "Show complete error log"
    },
    {
      "names": [
        "--json"
      ],
      "description": "Output in JSON format"
    },
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Display help for command"
    }
  ]
}
