3.2. Global options


Global options are applicable to all the subcommands of the argocd.

表 3.1. Global options
OptionArgument typeDescription

--auth-token

string

Authentication token.

--client-crt

string

Client certificate file.

--client-crt-key

string

Client certificate key file.

--config

string

Path to Argo CD configuration file. Defaults to the /home/user/.config/argocd/config path.

--controller-name

string

Name of the Argo CD Application Controller component with argocd-application-controller as the default label.

If the label of this component’s name differs from the default, for example, when you are installing it through the Helm chart, set either the --controller-name option or the ARGOCD_APPLICATION_CONTROLLER_NAME environment variable to specify the name of the component.

--core

N/A

If set to true, the CLI communicates directly with the Kubernetes API server instead of using the Argo CD API server.

--grpc-web

N/A

Enable the gRPC-Web protocol for the Argo CD server. This is useful if, for example, the server is behind a proxy that does not support the HTTP/2 protocol.

--grpc-web-root-path

string

Enable the gRPC-Web protocol for the Argo CD server. This is useful if, for example, the server is behind a proxy that does not support the HTTP/2 protocol. Set web root.

-H, --header

string

Configure an additional header to all requests made by the GitOps argocd CLI. You can add multiple headers by setting this option multiple times. This option also supports comma-separated headers.

-h, --help

N/A

Help for the GitOps argocd CLI.

--http-retry-max

integer

Set the maximum number of retries to establish an HTTP connection to the Argo CD server.

--insecure

N/A

Skip server certificate and domain verification.

--kube-context

string

Direct the command to the given kube context.

--logformat

string

Set the logging format to either text or JSON. Defaults to text.

--loglevel

string

Set the logging level. Defaults to info. The debug, info, warn, and error levels are available. The logging levels are listed in decreasing order of verbosity.

--plaintext

N/A

Disable Transport Layer Security (TLS) protocols.

--port-forward

N/A

Connect to a random Argo CD server port using port forwarding.

--port-forward-namespace

string

Namespace name to be used for port forwarding.

--redis-haproxy-name

string

Name of the Redis HA Proxy deployment with argocd-redis-ha-haproxy as the default label.

If the label of this deployment’s name differs from the default, for example, when you are installing HAProxy through the Helm chart, set either the --redis-haproxy-name option or the ARGOCD_REDIS_HAPROXY_NAME environment variable to specify the name of the deployment.

--redis-name

string

Name of the Redis deployment with argocd-redis as the default label.

If the label of this deployment’s name differs from the default, for example, when you are installing it through the Helm chart, set either the --redis-name option or the ARGOCD_REDIS_NAME environment variable to specify the name of the deployment.

--repo-server-name

string

Name of the Argo CD Repo server with argocd-repo-server as the default label.

If the label of this Repo server’s name differs from the default, for example, when you are installing it through the Helm chart, set either the --repo-server-name option or the ARGOCD_REPO_SERVER_NAME environment variable to specify the name of the deployment.

--server

string

Argo CD server address.

--server-crt

string

Server certificate file.

--server-name

string

Name of the Argo CD API server with argocd-server as the default label.

If the label of this Argo CD API server’s name differs from the default, for example, when you are installing it through the Helm chart, set either the --server-name option or the ARGOCD_SERVER_NAME environment variable to specify the name of the deployment.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部