Skip to main content

tcb cloudrun download

Download the code of a deployed CloudBase Run service.

Usage​

tcb cloudrun download [options]

Parameters​

ParameterRequiredDescriptionDefault
-e, --env-id <envId>NoEnvironment ID—
-s, --serviceName <serviceName>NoService name—
--targetPath <path>NoDownload target path, resolved against the current directoryProject directory
--forceNoOverwrite existing files without confirmationfalse

Examples​

# Interactive download, the CLI asks for the service
tcb cloudrun download

# Download a specific service into the current directory
tcb cloudrun download -e env-123456 -s my-service

# Download into a specific directory
tcb cloudrun download -e env-123456 -s api-service --targetPath ./local-code

# Overwrite existing files
tcb cloudrun download -e env-123456 -s my-service --targetPath ./backup --force

Notes​

  • Existing files are prompted for confirmation unless --force is passed
  • The download includes every configuration file of the service
  • Use tcb cloudrun list to look up the service name