Skip to main content

tcb agent update

v3.0.0+

tcb agent command has been available since v3.0.0.

Update Agent code or configuration.

Usage​

tcb agent update <agentId> [options]

Parameters​

ParameterDescription
--code [path]Update the code. When omitted, the current directory is used; when --code is given without a path, the project directory is used
--runtime <runtime>Update the runtime version
--timeout <seconds>Update the timeout period
--memory-size <mb>Update the memory size (MB)
--install-depAutomatically install dependencies
--ignore <patterns>Update ignore patterns
--env <K=V,...>Update environment variables
-e, --env-id <envId>Environment ID

Examples​

# Update Code Only
tcb agent update agent-xxx --code ./new-agent-code -e my-env-id

# Updating Runtime and Timeout
tcb agent update agent-xxx --runtime Nodejs20.19 --timeout 3600 -e my-env-id