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

     1  # `argocd admin` Command Reference
     2  
     3  ## argocd admin
     4  
     5  Contains a set of commands useful for Argo CD administrators and requires direct Kubernetes access
     6  
     7  ```
     8  argocd admin [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14  # List all clusters
    15  $ argocd admin cluster list
    16  
    17  # Add a new cluster
    18  $ argocd admin cluster add my-cluster --name my-cluster --in-cluster-context
    19  
    20  # Remove a cluster
    21  argocd admin cluster remove my-cluster
    22  
    23  # List all projects
    24  $ argocd admin project list
    25  
    26  # Create a new project
    27  $argocd admin project create my-project --src-namespace my-source-namespace --dest-namespace my-dest-namespace
    28  
    29  # Update a project
    30  $ argocd admin project update my-project --src-namespace my-updated-source-namespace --dest-namespace my-updated-dest-namespace
    31  
    32  # Delete a project
    33  $ argocd admin project delete my-project
    34  
    35  # List all settings
    36  $ argocd admin settings list
    37  
    38  # Get the current settings
    39  $ argocd admin settings get
    40  
    41  # Update settings
    42  $ argocd admin settings update --repository.resync --value 15
    43  
    44  # List all applications
    45  $ argocd admin app list
    46  
    47  # Get application details
    48  $ argocd admin app get my-app
    49  
    50  # Sync an application
    51  $ argocd admin app sync my-app
    52  
    53  # Pause an application
    54  $ argocd admin app pause my-app
    55  
    56  # Resume an application
    57  $ argocd admin app resume my-app
    58  
    59  # List all repositories
    60  $ argocd admin repo list
    61  
    62  # Add a repository
    63  $ argocd admin repo add https://github.com/argoproj/my-repo.git
    64  
    65  # Remove a repository
    66  $ argocd admin repo remove https://github.com/argoproj/my-repo.git
    67  
    68  # Import an application from a YAML file
    69  $ argocd admin app import -f my-app.yaml
    70  
    71  # Export an application to a YAML file
    72  $ argocd admin app export my-app -o my-exported-app.yaml
    73  
    74  # Access the Argo CD web UI
    75  $ argocd admin dashboard
    76  
    77  # List notifications
    78  $ argocd admin notification list
    79  
    80  # Get notification details
    81  $ argocd admin notification get my-notification
    82  
    83  # Create a new notification
    84  $ argocd admin notification create my-notification -f notification-config.yaml
    85  
    86  # Update a notification
    87  $ argocd admin notification update my-notification -f updated-notification-config.yaml
    88  
    89  # Delete a notification
    90  $ argocd admin notification delete my-notification
    91  
    92  # Reset the initial admin password
    93  $ argocd admin initial-password reset
    94  
    95  ```
    96  
    97  ### Options
    98  
    99  ```
   100    -h, --help               help for admin
   101        --logformat string   Set the logging format. One of: text|json (default "text")
   102        --loglevel string    Set the logging level. One of: debug|info|warn|error (default "info")
   103  ```
   104  
   105  ### Options inherited from parent commands
   106  
   107  ```
   108        --auth-token string               Authentication token
   109        --client-crt string               Client certificate file
   110        --client-crt-key string           Client certificate key file
   111        --config string                   Path to Argo CD config (default "/home/user/.config/argocd/config")
   112        --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")
   113        --core                            If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server
   114        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
   115        --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.
   116    -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)
   117        --http-retry-max int              Maximum number of retries to establish http connection to Argo CD server
   118        --insecure                        Skip server certificate and domain verification
   119        --kube-context string             Directs the command to the given kube-context
   120        --plaintext                       Disable TLS
   121        --port-forward                    Connect to a random argocd-server port using port forwarding
   122        --port-forward-namespace string   Namespace name which should be used for port forwarding
   123        --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")
   124        --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")
   125        --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")
   126        --server string                   Argo CD server address
   127        --server-crt string               Server certificate file
   128        --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")
   129  ```
   130  
   131  ### SEE ALSO
   132  
   133  * [argocd](argocd.md)	 - argocd controls a Argo CD server
   134  * [argocd admin app](argocd_admin_app.md)	 - Manage applications configuration
   135  * [argocd admin cluster](argocd_admin_cluster.md)	 - Manage clusters configuration
   136  * [argocd admin dashboard](argocd_admin_dashboard.md)	 - Starts Argo CD Web UI locally
   137  * [argocd admin export](argocd_admin_export.md)	 - Export all Argo CD data to stdout (default) or a file
   138  * [argocd admin import](argocd_admin_import.md)	 - Import Argo CD data from stdin (specify `-') or a file
   139  * [argocd admin initial-password](argocd_admin_initial-password.md)	 - Prints initial password to log in to Argo CD for the first time
   140  * [argocd admin notifications](argocd_admin_notifications.md)	 - Set of CLI commands that helps manage notifications settings
   141  * [argocd admin proj](argocd_admin_proj.md)	 - Manage projects configuration
   142  * [argocd admin repo](argocd_admin_repo.md)	 - Manage repositories configuration
   143  * [argocd admin settings](argocd_admin_settings.md)	 - Provides set of commands for settings validation and troubleshooting
   144