github.com/argoproj/argo-cd/v2@v2.10.5/docs/user-guide/commands/argocd_app_set.md (about)

     1  # `argocd app set` Command Reference
     2  
     3  ## argocd app set
     4  
     5  Set application parameters
     6  
     7  ```
     8  argocd app set APPNAME [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14    # Set application parameters for the application "my-app"
    15    argocd app set my-app --parameter key1=value1 --parameter key2=value2
    16    
    17    # Set and validate application parameters for "my-app"
    18    argocd app set my-app --parameter key1=value1 --parameter key2=value2 --validate
    19    
    20    # Set and override application parameters with JSON or YAML file
    21    argocd app set my-app --from-file path/to/parameters.json
    22    
    23    # Set and override application parameters with a parameter file
    24    argocd app set my-app --parameter-file path/to/parameter-file.yaml
    25    
    26    # Set application parameters and specify the namespace
    27    argocd app set my-app --parameter key1=value1 --parameter key2=value2 --namespace my-namespace
    28  ```
    29  
    30  ### Options
    31  
    32  ```
    33        --allow-empty                                Set allow zero live resources when sync is automated
    34        --auto-prune                                 Set automatic pruning when sync is automated
    35        --config-management-plugin string            Config management plugin name
    36        --dest-name string                           K8s cluster Name (e.g. minikube)
    37        --dest-namespace string                      K8s target namespace
    38        --dest-server string                         K8s cluster URL (e.g. https://kubernetes.default.svc)
    39        --directory-exclude string                   Set glob expression used to exclude files from application source path
    40        --directory-include string                   Set glob expression used to include files from application source path
    41        --directory-recurse                          Recurse directory
    42        --env string                                 Application environment to monitor
    43        --helm-chart string                          Helm Chart name
    44        --helm-pass-credentials                      Pass credentials to all domain
    45        --helm-set stringArray                       Helm set values on the command line (can be repeated to set several values: --helm-set key1=val1 --helm-set key2=val2)
    46        --helm-set-file stringArray                  Helm set values from respective files specified via the command line (can be repeated to set several values: --helm-set-file key1=path1 --helm-set-file key2=path2)
    47        --helm-set-string stringArray                Helm set STRING values on the command line (can be repeated to set several values: --helm-set-string key1=val1 --helm-set-string key2=val2)
    48        --helm-skip-crds                             Skip helm crd installation step
    49        --helm-version string                        Helm version
    50    -h, --help                                       help for set
    51        --ignore-missing-value-files                 Ignore locally missing valueFiles when setting helm template --values
    52        --jsonnet-ext-var-code stringArray           Jsonnet ext var
    53        --jsonnet-ext-var-str stringArray            Jsonnet string ext var
    54        --jsonnet-libs stringArray                   Additional jsonnet libs (prefixed by repoRoot)
    55        --jsonnet-tla-code stringArray               Jsonnet top level code arguments
    56        --jsonnet-tla-str stringArray                Jsonnet top level string arguments
    57        --kustomize-common-annotation stringArray    Set common labels in Kustomize
    58        --kustomize-common-label stringArray         Set common labels in Kustomize
    59        --kustomize-force-common-annotation          Force common annotations in Kustomize
    60        --kustomize-force-common-label               Force common labels in Kustomize
    61        --kustomize-image stringArray                Kustomize images (e.g. --kustomize-image node:8.15.0 --kustomize-image mysql=mariadb,alpine@sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d)
    62        --kustomize-namespace string                 Kustomize namespace
    63        --kustomize-replica stringArray              Kustomize replicas (e.g. --kustomize-replica my-development=2 --kustomize-replica my-statefulset=4)
    64        --kustomize-version string                   Kustomize version
    65        --nameprefix string                          Kustomize nameprefix
    66        --namesuffix string                          Kustomize namesuffix
    67    -p, --parameter stringArray                      set a parameter override (e.g. -p guestbook=image=example/guestbook:latest)
    68        --path string                                Path in repository to the app directory, ignored if a file is set
    69        --plugin-env stringArray                     Additional plugin envs
    70        --project string                             Application project name
    71        --release-name string                        Helm release-name
    72        --repo string                                Repository URL, ignored if a file is set
    73        --revision string                            The tracking source branch, tag, commit or Helm chart version the application will sync to
    74        --revision-history-limit int                 How many items to keep in revision history (default 10)
    75        --self-heal                                  Set self healing when sync is automated
    76        --sync-option Prune=false                    Add or remove a sync option, e.g add Prune=false. Remove using `!` prefix, e.g. `!Prune=false`
    77        --sync-policy string                         Set the sync policy (one of: none, automated (aliases of automated: auto, automatic))
    78        --sync-retry-backoff-duration duration       Sync retry backoff base duration. Input needs to be a duration (e.g. 2m, 1h) (default 5s)
    79        --sync-retry-backoff-factor int              Factor multiplies the base duration after each failed sync retry (default 2)
    80        --sync-retry-backoff-max-duration duration   Max sync retry backoff duration. Input needs to be a duration (e.g. 2m, 1h) (default 3m0s)
    81        --sync-retry-limit int                       Max number of allowed sync retries
    82        --validate                                   Validation of repo and cluster (default true)
    83        --values stringArray                         Helm values file(s) to use
    84        --values-literal-file string                 Filename or URL to import as a literal Helm values block
    85  ```
    86  
    87  ### Options inherited from parent commands
    88  
    89  ```
    90        --auth-token string               Authentication token
    91        --client-crt string               Client certificate file
    92        --client-crt-key string           Client certificate key file
    93        --config string                   Path to Argo CD config (default "/home/user/.config/argocd/config")
    94        --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")
    95        --core                            If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server
    96        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    97        --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.
    98    -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)
    99        --http-retry-max int              Maximum number of retries to establish http connection to Argo CD server
   100        --insecure                        Skip server certificate and domain verification
   101        --kube-context string             Directs the command to the given kube-context
   102        --logformat string                Set the logging format. One of: text|json (default "text")
   103        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
   104        --plaintext                       Disable TLS
   105        --port-forward                    Connect to a random argocd-server port using port forwarding
   106        --port-forward-namespace string   Namespace name which should be used for port forwarding
   107        --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")
   108        --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")
   109        --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")
   110        --server string                   Argo CD server address
   111        --server-crt string               Server certificate file
   112        --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")
   113  ```
   114  
   115  ### SEE ALSO
   116  
   117  * [argocd app](argocd_app.md)	 - Manage applications
   118