github.com/argoproj/argo-cd@v1.8.7/docs/user-guide/commands/argocd_app_patch.md (about) 1 ## argocd app patch 2 3 Patch application 4 5 ### Synopsis 6 7 Examples: 8 # Update an application's source path using json patch 9 argocd app patch myapplication --patch='[{"op": "replace", "path": "/spec/source/path", "value": "newPath"}]' --type json 10 11 # Update an application's repository target revision using merge patch 12 argocd app patch myapplication --patch '{"spec": { "source": { "targetRevision": "master" } }}' --type merge 13 14 ``` 15 argocd app patch APPNAME [flags] 16 ``` 17 18 ### Options 19 20 ``` 21 -h, --help help for patch 22 --patch string Patch body 23 --type string The type of patch being provided; one of [json merge] (default "json") 24 ``` 25 26 ### Options inherited from parent commands 27 28 ``` 29 --auth-token string Authentication token 30 --client-crt string Client certificate file 31 --client-crt-key string Client certificate key file 32 --config string Path to Argo CD config (default "/home/user/.argocd/config") 33 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 34 --grpc-web-root-path string Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root. 35 -H, --header strings Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers) 36 --insecure Skip server certificate and domain verification 37 --logformat string Set the logging format. One of: text|json (default "text") 38 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 39 --plaintext Disable TLS 40 --port-forward Connect to a random argocd-server port using port forwarding 41 --port-forward-namespace string Namespace name which should be used for port forwarding 42 --server string Argo CD server address 43 --server-crt string Server certificate file 44 ``` 45 46 ### SEE ALSO 47 48 * [argocd app](argocd_app.md) - Manage applications 49