Skip to main content

tcb config diff

Compare the local cloudbaserc.json with the cloud function configuration and print the differences as a table.

Usage​

tcb config diff fn [functionName] [options]
ParameterRequiredDescriptionDefault
fnYesModule name, function configuration only—
[functionName]NoFunction name—
--allNoCompare every function in the configuration filefalse
-e, --env-id <envId>NoEnvironment ID—

Examples​

# Compare a single function
tcb config diff fn myFunc -e envId

# Compare every function
tcb config diff fn --all -e envId

Output​

函数 [myFunc] 配置对比

| 配置项 | 云端值 | 本地值 | 变更 |
|------------|---------|---------|------|
| timeout | 5 | 60 | ~ |
| memorySize | 256 | 512 | ~ |
| role | - | SCF_CLS | ~ |
| 函数类型 | HTTP | HTTP | |

A ~ in the change column means the field differs, an empty cell means the values match.