github.com/argoproj/argo-cd/v2@v2.10.5/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 22 #Add a deny sync window with the ability to manually sync. 23 argocd proj windows add PROJECT \ 24 --kind deny \ 25 --schedule "30 10 * * *" \ 26 --duration 30m \ 27 --applications "prod-\\*,website" \ 28 --namespaces "default,\\*-prod" \ 29 --clusters "prod,staging" \ 30 --manual-sync 31 32 ``` 33 34 ### Options 35 36 ``` 37 --applications strings Applications that the schedule will be applied to. Comma separated, wildcards supported (e.g. --applications prod-\*,website) 38 --clusters strings Clusters that the schedule will be applied to. Comma separated, wildcards supported (e.g. --clusters prod,staging) 39 --duration string Sync window duration. (e.g. --duration 1h) 40 -h, --help help for add 41 -k, --kind string Sync window kind, either allow or deny 42 --manual-sync Allow manual syncs for both deny and allow windows 43 --namespaces strings Namespaces that the schedule will be applied to. Comma separated, wildcards supported (e.g. --namespaces default,\*-prod) 44 --schedule string Sync window schedule in cron format. (e.g. --schedule "0 22 * * *") 45 --time-zone string Time zone of the sync window (default "UTC") 46 ``` 47 48 ### Options inherited from parent commands 49 50 ``` 51 --auth-token string Authentication token 52 --client-crt string Client certificate file 53 --client-crt-key string Client certificate key file 54 --config string Path to Argo CD config (default "/home/user/.config/argocd/config") 55 --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") 56 --core If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server 57 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 58 --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. 59 -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) 60 --http-retry-max int Maximum number of retries to establish http connection to Argo CD server 61 --insecure Skip server certificate and domain verification 62 --kube-context string Directs the command to the given kube-context 63 --logformat string Set the logging format. One of: text|json (default "text") 64 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 65 --plaintext Disable TLS 66 --port-forward Connect to a random argocd-server port using port forwarding 67 --port-forward-namespace string Namespace name which should be used for port forwarding 68 --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") 69 --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") 70 --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") 71 --server string Argo CD server address 72 --server-crt string Server certificate file 73 --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") 74 ``` 75 76 ### SEE ALSO 77 78 * [argocd proj windows](argocd_proj_windows.md) - Manage a project's sync windows 79