github.com/argoproj/argo-cd/v3@v3.2.1/docs/user-guide/commands/argocd_app_diff.md (about)

     1  # `argocd app diff` Command Reference
     2  
     3  ## argocd app diff
     4  
     5  Perform a diff against the target and live state.
     6  
     7  ### Synopsis
     8  
     9  Perform a diff against the target and live state.
    10  Uses 'diff' to render the difference. KUBECTL_EXTERNAL_DIFF environment variable can be used to select your own diff tool.
    11  Returns the following exit codes: 2 on general errors, 1 when a diff is found, and 0 when no diff is found
    12  Kubernetes Secrets are ignored from this diff.
    13  
    14  ```
    15  argocd app diff APPNAME [flags]
    16  ```
    17  
    18  ### Options
    19  
    20  ```
    21    -N, --app-namespace string                              Only render the difference in namespace
    22        --diff-exit-code int                                Return specified exit code when there is a diff. Typical error code is 20 but use another exit code if you want to differentiate from the generic exit code (20) returned by all CLI commands. (default 1)
    23        --exit-code                                         Return non-zero exit code when there is a diff. May also return non-zero exit code if there is an error. (default true)
    24        --hard-refresh                                      Refresh application data as well as target manifests cache
    25    -h, --help                                              help for diff
    26        --ignore-normalizer-jq-execution-timeout duration   Set ignore normalizer JQ execution timeout (default 1s)
    27        --local string                                      Compare live app to a local manifests
    28        --local-include stringArray                         Used with --server-side-generate, specify patterns of filenames to send. Matching is based on filename and not path. (default [*.yaml,*.yml,*.json])
    29        --local-repo-root string                            Path to the repository root. Used together with --local allows setting the repository root (default "/")
    30        --refresh                                           Refresh application data when retrieving
    31        --revision string                                   Compare live app to a particular revision
    32        --revisions stringArray                             Show manifests at specific revisions for source position in source-positions
    33        --server-side-diff                                  Use server-side diff to calculate the diff. This will default to true if the ServerSideDiff annotation is set on the application.
    34        --server-side-generate                              Used with --local, this will send your manifests to the server for diffing
    35        --source-names stringArray                          List of source names. Default is an empty array.
    36        --source-positions int64Slice                       List of source positions. Default is empty array. Counting start at 1. (default [])
    37  ```
    38  
    39  ### Options inherited from parent commands
    40  
    41  ```
    42        --argocd-context string           The name of the Argo-CD server context to use
    43        --auth-token string               Authentication token; set this or the ARGOCD_AUTH_TOKEN environment variable
    44        --client-crt string               Client certificate file
    45        --client-crt-key string           Client certificate key file
    46        --config string                   Path to Argo CD config (default "/home/user/.config/argocd/config")
    47        --controller-name string          Name of the Argo CD Application controller; set this or the ARGOCD_APPLICATION_CONTROLLER_NAME environment variable when the controller's name label differs from the default, for example when installing via the Helm chart (default "argocd-application-controller")
    48        --core                            If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server
    49        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    50        --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.
    51    -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)
    52        --http-retry-max int              Maximum number of retries to establish http connection to Argo CD server
    53        --insecure                        Skip server certificate and domain verification
    54        --kube-context string             Directs the command to the given kube-context
    55        --logformat string                Set the logging format. One of: json|text (default "json")
    56        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    57        --plaintext                       Disable TLS
    58        --port-forward                    Connect to a random argocd-server port using port forwarding
    59        --port-forward-namespace string   Namespace name which should be used for port forwarding
    60        --prompts-enabled                 Force optional interactive prompts to be enabled or disabled, overriding local configuration. If not specified, the local configuration value will be used, which is false by default.
    61        --redis-compress string           Enable this if the application controller is configured with redis compression enabled. (possible values: gzip, none) (default "gzip")
    62        --redis-haproxy-name string       Name of the Redis HA Proxy; set this or the ARGOCD_REDIS_HAPROXY_NAME environment variable when the HA Proxy's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis-ha-haproxy")
    63        --redis-name string               Name of the Redis deployment; set this or the ARGOCD_REDIS_NAME environment variable when the Redis's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis")
    64        --repo-server-name string         Name of the Argo CD Repo server; set this or the ARGOCD_REPO_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-repo-server")
    65        --server string                   Argo CD server address
    66        --server-crt string               Server certificate file
    67        --server-name string              Name of the Argo CD API server; set this or the ARGOCD_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-server")
    68  ```
    69  
    70  ### SEE ALSO
    71  
    72  * [argocd app](argocd_app.md)	 - Manage applications
    73