tcb fn code update
Updates the cloud function code and handler only, leaving configuration untouched. Faster than a full deployment.
Usage
tcb fn code update <functionName> [options]
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
<functionName> | Yes | Function name | — |
-e, --env-id <envId> | No | Environment ID | Current default environment |
--deployMode <deployMode> | No | Upload mode: cos, zip (1.5 MB limit) | cos |
--yes | No | Skip the interactive confirmation | — |
Example
# Update the code of the app function
tcb fn code update app
# Upload with zip mode
tcb fn code update app --deployMode zip
# Update without confirmation
tcb fn code update app --yes
Related commands
- Download function code: pull the cloud code back
- Deploy a function: update code, configuration, and triggers together