Skip to content

Deploy from CLI

indobase Sites allows you to host and deploy websites directly within the indobase 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 indobase 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 indobase account, and initialize your indobase project.

To deploy your site with the indobase CLI, use the indobase init sites command to create a starter site and paste your code into the generated file and folder.

Shell
indobase init sites

To deploy the generated code, add any dependencies and push the site using the following command:

Shell
indobase 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 indobase.config.json file.

Learn more about indobase.config.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.