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

     1  # `argocd proj windows add` Command Reference
     2  
     3  ## argocd proj windows add
     4  
     5  Add a sync window to a project
     6  
     7  ```
     8  argocd proj windows add PROJECT [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14  
    15  #Add a 1 hour allow sync window
    16  argocd proj windows add PROJECT \
    17      --kind allow \
    18      --schedule "0 22 * * *" \
    19      --duration 1h \
    20      --applications "*" \
    21      --description "Ticket 123"
    22  
    23  #Add a deny sync window with the ability to manually sync.
    24  argocd proj windows add PROJECT \
    25      --kind deny \
    26      --schedule "30 10 * * *" \
    27      --duration 30m \
    28      --applications "prod-\\*,website" \
    29      --namespaces "default,\\*-prod" \
    30      --clusters "prod,staging" \
    31      --manual-sync \
    32      --description "Ticket 123"
    33  	
    34  ```
    35  
    36  ### Options
    37  
    38  ```
    39        --applications strings   Applications that the schedule will be applied to. Comma separated, wildcards supported (e.g. --applications prod-\*,website)
    40        --clusters strings       Clusters that the schedule will be applied to. Comma separated, wildcards supported (e.g. --clusters prod,staging)
    41        --description string     Sync window description
    42        --duration string        Sync window duration. (e.g. --duration 1h)
    43    -h, --help                   help for add
    44    -k, --kind string            Sync window kind, either allow or deny
    45        --manual-sync            Allow manual syncs for both deny and allow windows
    46        --namespaces strings     Namespaces that the schedule will be applied to. Comma separated, wildcards supported (e.g. --namespaces default,\*-prod)
    47        --schedule string        Sync window schedule in cron format. (e.g. --schedule "0 22 * * *")
    48        --time-zone string       Time zone of the sync window (default "UTC")
    49        --use-and-operator       Use AND operator for matching applications, namespaces and clusters instead of the default OR operator
    50  ```
    51  
    52  ### Options inherited from parent commands
    53  
    54  ```
    55        --argocd-context string           The name of the Argo-CD server context to use
    56        --auth-token string               Authentication token; set this or the ARGOCD_AUTH_TOKEN environment variable
    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: json|text (default "json")
    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        --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.
    74        --redis-compress string           Enable this if the application controller is configured with redis compression enabled. (possible values: gzip, none) (default "gzip")
    75        --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")
    76        --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")
    77        --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")
    78        --server string                   Argo CD server address
    79        --server-crt string               Server certificate file
    80        --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")
    81  ```
    82  
    83  ### SEE ALSO
    84  
    85  * [argocd proj windows](argocd_proj_windows.md)	 - Manage a project's sync windows
    86