Skip to main content

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​

FlagRequiredDescriptionDefault
<functionName>YesFunction name—
-e, --env-id <envId>NoEnvironment IDCurrent default environment
--deployMode <deployMode>NoUpload mode: cos, zip (1.5 MB limit)cos
--yesNoSkip 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