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

     1  # `argocd app wait` Command Reference
     2  
     3  ## argocd app wait
     4  
     5  Wait for an application to reach a synced and healthy state
     6  
     7  ```
     8  argocd app wait [APPNAME.. | -l selector] [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14    # Wait for an app
    15    argocd app wait my-app
    16  
    17    # Wait for multiple apps
    18    argocd app wait my-app other-app
    19  
    20    # Wait for apps by resource
    21    # Resource should be formatted as GROUP:KIND:NAME. If no GROUP is specified then :KIND:NAME.
    22    argocd app wait my-app --resource :Service:my-service
    23    argocd app wait my-app --resource argoproj.io:Rollout:my-rollout
    24    argocd app wait my-app --resource '!apps:Deployment:my-service'
    25    argocd app wait my-app --resource apps:Deployment:my-service --resource :Service:my-service
    26    argocd app wait my-app --resource '!*:Service:*'
    27    # Specify namespace if the application has resources with the same name in different namespaces
    28    argocd app wait my-app --resource argoproj.io:Rollout:my-namespace/my-rollout
    29  
    30    # Wait for apps by label, in this example we waiting for apps that are children of another app (aka app-of-apps)
    31    argocd app wait -l app.kubernetes.io/instance=my-app
    32    argocd app wait -l app.kubernetes.io/instance!=my-app
    33    argocd app wait -l app.kubernetes.io/instance
    34    argocd app wait -l '!app.kubernetes.io/instance'
    35    argocd app wait -l 'app.kubernetes.io/instance notin (my-app,other-app)'
    36  ```
    37  
    38  ### Options
    39  
    40  ```
    41        --degraded               Wait for degraded
    42        --health                 Wait for health
    43    -h, --help                   help for wait
    44        --operation              Wait for pending operations
    45    -o, --output string          Output format. One of: json|yaml|wide|tree|tree=detailed (default "wide")
    46        --resource stringArray   Sync only specific resources as GROUP:KIND:NAME or !GROUP:KIND:NAME. Fields may be blank and '*' can be used. This option may be specified repeatedly
    47    -l, --selector string        Wait for apps by label. Supports '=', '==', '!=', in, notin, exists & not exists. Matching apps must satisfy all of the specified label constraints.
    48        --suspended              Wait for suspended
    49        --sync                   Wait for sync
    50        --timeout uint           Time out after this many seconds
    51  ```
    52  
    53  ### Options inherited from parent commands
    54  
    55  ```
    56        --auth-token string               Authentication token
    57        --client-crt string               Client certificate file
    58        --client-crt-key string           Client certificate key file
    59        --config string                   Path to Argo CD config (default "/home/user/.config/argocd/config")
    60        --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")
    61        --core                            If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server
    62        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    63        --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.
    64    -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)
    65        --http-retry-max int              Maximum number of retries to establish http connection to Argo CD server
    66        --insecure                        Skip server certificate and domain verification
    67        --kube-context string             Directs the command to the given kube-context
    68        --logformat string                Set the logging format. One of: text|json (default "text")
    69        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    70        --plaintext                       Disable TLS
    71        --port-forward                    Connect to a random argocd-server port using port forwarding
    72        --port-forward-namespace string   Namespace name which should be used for port forwarding
    73        --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")
    74        --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")
    75        --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")
    76        --server string                   Argo CD server address
    77        --server-crt string               Server certificate file
    78        --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")
    79  ```
    80  
    81  ### SEE ALSO
    82  
    83  * [argocd app](argocd_app.md)	 - Manage applications
    84