Introduction
The Serverpod Cloud CLI provides all you need to create, manage, and deploy your Serverpod projects in Serverpod Cloud.
If you're new to developing with Serverpod, check out the create a Serverpod project guide in the Serverpod framework docs!
Getting Started
Run the following to install the CLI:
dart pub global activate serverpod_cloud_cli
Log in to your Serverpod Cloud account using the CLI:
(If you don't have a Serverpod Cloud account yet, visit Serverpod Cloud.)
scloud auth login
Go to your Serverpod server directory (e.g. ./myproject/myproject_server)
and run the launch command
to get an interactive, guided set up of a new Serverpod Cloud project:
scloud launch
If the project requires any environment variables or secrets, they can be added with the variable and secret commands. Once the project is ready to be deployed, run the following command:
scloud deploy
To follow the progress of the deployment, use the deployments show command:
scloud deployment show
That's it, you have now deployed your Serverpod app! 🚀
For more information on the different commands, see the commands section in the side menu. For instance, to view the service's domains or to add your own custom domains, see the domain command.