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]
| Parameter | Required | Description | Default |
|---|---|---|---|
fn | Yes | Module name, function configuration only | — |
[functionName] | No | Function name | — |
--all | No | Compare every function in the configuration file | false |
-e, --env-id <envId> | No | Environment 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.
Related Commands
- Push configuration: push after reviewing the differences
- Pull configuration: sync from the cloud to the local file