github.com/argoproj/argo-cd/v3@v3.2.1/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    -N, --app-namespace string   Only wait for an application  in namespace
    42        --degraded               Wait for degraded
    43        --delete                 Wait for delete
    44        --health                 Wait for health
    45    -h, --help                   help for wait
    46        --hydrated               Wait for hydration operations
    47        --operation              Wait for pending operations
    48    -o, --output string          Output format. One of: json|yaml|wide|tree|tree=detailed (default "wide")
    49        --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
    50    -l, --selector string        Wait for apps by label. Supports '=', '==', '!=', in, notin, exists & not exists. Matching apps must satisfy all of the specified label constraints.
    51        --suspended              Wait for suspended
    52        --sync                   Wait for sync
    53        --timeout uint           Time out after this many seconds
    54  ```
    55  
    56  ### Options inherited from parent commands
    57  
    58  ```
    59        --argocd-context string           The name of the Argo-CD server context to use
    60        --auth-token string               Authentication token; set this or the ARGOCD_AUTH_TOKEN environment variable
    61        --client-crt string               Client certificate file
    62        --client-crt-key string           Client certificate key file
    63        --config string                   Path to Argo CD config (default "/home/user/.config/argocd/config")
    64        --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")
    65        --core                            If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server
    66        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    67        --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.
    68    -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)
    69        --http-retry-max int              Maximum number of retries to establish http connection to Argo CD server
    70        --insecure                        Skip server certificate and domain verification
    71        --kube-context string             Directs the command to the given kube-context
    72        --logformat string                Set the logging format. One of: json|text (default "json")
    73        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    74        --plaintext                       Disable TLS
    75        --port-forward                    Connect to a random argocd-server port using port forwarding
    76        --port-forward-namespace string   Namespace name which should be used for port forwarding
    77        --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.
    78        --redis-compress string           Enable this if the application controller is configured with redis compression enabled. (possible values: gzip, none) (default "gzip")
    79        --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")
    80        --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")
    81        --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")
    82        --server string                   Argo CD server address
    83        --server-crt string               Server certificate file
    84        --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")
    85  ```
    86  
    87  ### SEE ALSO
    88  
    89  * [argocd app](argocd_app.md)	 - Manage applications
    90