Skip to main content

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​

ParameterRequiredDescriptionDefault
-e, --env-id <envId>NoEnvironment ID—
-s, --serviceName <serviceName>NoService name—
--template <template>NoTemplate name, for example nodejs, express—
--targetPath <path>NoTarget path, resolved against the current directory; created when missingProject 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