tcb cloudrun init
Create a CloudBase Run service code project. With no arguments the command walks through environment, service name, and template interactively.
Usage
tcb cloudrun init [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | — |
-s, --serviceName <serviceName> | No | Service name | — |
--template <template> | No | Template name, for example nodejs, express | — |
--targetPath <path> | No | Target path, resolved against the current directory; created when missing | Project directory |
Examples
# Interactive initialisation
tcb cloudrun init
# Specify the environment and service name
tcb cloudrun init -e env-123456 -s my-service
# Initialise from a template into a target path
tcb cloudrun init --template nodejs --targetPath ./my-project
# Initialise with the full set of options
tcb cloudrun init -e env-123456 -s api-service --template express --targetPath ./backend