mirror of
https://github.com/kubevela/kubevela.git
synced 2026-09-03 16:27:27 +00:00
40 lines
1.2 KiB
Markdown
40 lines
1.2 KiB
Markdown
## vela system live-diff
|
|
|
|
Dry-run an application, and do diff on a specific app revison
|
|
|
|
### Synopsis
|
|
|
|
Dry-run an application, and do diff on a specific app revison. The provided capability definitions will be used during Dry-run. If any capabilities used in the app are not found in the provided ones, it will try to find from cluster.
|
|
|
|
```
|
|
vela system live-diff
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
vela live-diff -f app-v2.yaml -r app-v1 --context 10
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-r, --Revision string specify an application Revision name, by default, it will compare with the latest Revision
|
|
-c, --context int output number lines of context around changes, by default show all unchanged lines (default -1)
|
|
-d, --definition string specify a file or directory containing capability definitions, they will only be used in dry-run rather than applied to K8s cluster
|
|
-f, --file string application file name (default "./app.yaml")
|
|
-h, --help help for live-diff
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
-e, --env string specify environment name for application
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [vela system](vela_system.md) - System management utilities
|
|
|
|
###### Auto generated by spf13/cobra on 2-May-2021
|