Skip to main content

CLI Environment Variables

The scloud command supports a number of environment variables, many of which override the default behavior and / or can be used in place of specifying the values on the command line.

NameIn lieu of optionExample valueDescription
SERVERPOD_CLOUD_PROJECT_ID-p / --projectmy-project-idThe ID of the project.
SERVERPOD_CLOUD_DISPLAY_UTC-u / --utctrue or falseDisplay timestamps in UTC timezone instead of local.
SERVERPOD_CLOUD_COMMAND_ANALYTICS-a / --analyticstrue or falseToggles if analytics data is sent.
SERVERPOD_CLOUD_TOKEN--tokenyour-auth-token-hereThe authentication token to use for the current command.
SERVERPOD_CLOUD_DIR--config-dir/path/to/config/dirOverride the directory path where Serverpod Cloud cache/authentication files are stored.
SERVERPOD_CLOUD_PROJECT_DIR-d / --project-dir/path/to/project/serverThe path to the Serverpod Cloud project server directory.
SERVERPOD_CLOUD_PROJECT_CONFIG_FILE--project-config-file/path/to/scloud.yamlThe path to the Serverpod Cloud project configuration file.
SERVERPOD_CLOUD_CONNECTION_TIMEOUT--timeout60sThe timeout for the connection to the Serverpod Cloud API (defaults to 60 seconds).