Serverpod Cloud CLI
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 env 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 status deploy command:
scloud status deploy
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.
Online documentation
The Serverpod Cloud CLI documentation:
https://docs.serverpod.cloud/references/cli/introduction
Guide to getting started with Serverpod Cloud:
Libraries
- command_logger/command_logger
- command_runner/cloud_cli_command
- command_runner/cloud_cli_command_runner
- command_runner/commands/admin/admin_command
- command_runner/commands/admin/admin_product_commands
- command_runner/commands/admin/admin_projects_commands
- command_runner/commands/admin/admin_redeploy_command
- command_runner/commands/admin/admin_users_commands
- command_runner/commands/auth_command
- command_runner/commands/categories
- command_runner/commands/custom_domain_command
- command_runner/commands/db_command
- command_runner/commands/deploy_command
- command_runner/commands/env_command
- command_runner/commands/launch_command
- command_runner/commands/log_command
- command_runner/commands/project_command
- command_runner/commands/secret_command
- command_runner/commands/status_command
- command_runner/commands/user_command
- command_runner/commands/version_command
- command_runner/completion/completion_script_carapace
- This file is auto-generated.
- command_runner/completion/completion_script_completely
- This file is auto-generated.
- command_runner/helpers/cli_version_checker
- command_runner/helpers/cloud_cli_service_provider
- command_runner/helpers/command_options
- command_runner/helpers/email_validator
- command_runner/helpers/file_uploader_factory
- commands/admin/product_admin
- commands/admin/project_admin
- commands/admin/user_admin
- commands/deploy/deploy
- commands/deploy/prepare_workspace
- commands/launch/launch
- commands/logs/logs
- commands/project/project
- commands/status/status
- commands/status/status_feature
- commands/user/user
- constants
- persistent_storage/models/serverpod_cloud_data
- persistent_storage/resource_manager
- project_zipper/helpers/project_files
- project_zipper/project_zipper
- project_zipper/project_zipper_exceptions
- shared/exceptions/cloud_cli_usage_exception
- shared/exceptions/exit_exceptions
- shared/helpers/common_exceptions_handler
- shared/helpers/exception_user_message
- util/browser_launcher
- util/capitalize
- util/cli_authentication_key_manager
- util/common
- util/ignore
- Implements an Ignore filter compatible with
.gitignore. - util/listener_server
- util/printers/file_tree_printer
- util/printers/table_printer
- util/project_id_validator
- util/pubspec_validator
- util/scloud_config/file_finder
- util/scloud_config/json_to_yaml
- util/scloud_config/scloud_config
- util/scloud_config/scloud_config_broker
- util/scloud_config/scloud_config_file
- util/scloud_config/yaml_schema
- util/scloud_version
- util/scloudignore
