Appwrite Sites allows you to host and deploy websites directly within the Appwrite platform. Each site can have many deployments, which can be thought of as versions of the web application.
While we recommend you create deployments through automatic Git deployments, you can also create deployments via the Appwrite CLI.
CLI
You can create sites using the CLI without needing to access the Console.
Before proceeding
Ensure you install the CLI, log in to your Appwrite account, and initialize your Appwrite project.
To deploy your site with the Appwrite CLI, use the appwrite init sites command to create a starter site and paste your code into the generated file and folder.
appwrite init sites
To deploy the generated code, add any dependencies and push the site using the following command:
appwrite push sites
Learn more about the CLI sites commands
Configure CLI deployments
If you need to target a different project, API endpoint, change the path or entry point of your site, or update any of the other configuration options, you can do so by editing the appwrite.json file.
Learn more about appwrite.json
Debugging
If you updated your site's configuration but the deployment is not working as expected, you may need to first redeploy your site before the changes take effect.