tcb cloudrun download
Download the code of a deployed CloudBase Run service.
Usage
tcb cloudrun download [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | — |
-s, --serviceName <serviceName> | No | Service name | — |
--targetPath <path> | No | Download target path, resolved against the current directory | Project directory |
--force | No | Overwrite existing files without confirmation | false |
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
--forceis passed - The download includes every configuration file of the service
- Use
tcb cloudrun listto look up the service name