← 返回命令列表

Linux command

argocd-app 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

argocd app list

Create

argocd app create [name] --repo [repo_url] --path [path] --dest-server [cluster_url] --dest-namespace [namespace]

Sync

argocd app sync [name]

Delete

argocd app delete [name]

Example

argocd app get [name]

Diff

argocd app diff [name]

说明

argocd app manages Argo CD applications, which represent deployed Kubernetes resources synced from Git repositories. Each application links a Git path to a Kubernetes destination. Applications can be synced manually or automatically, with Argo CD monitoring for drift between desired (Git) and live (cluster) state.

参数

create _name_
Create new application
list
List all applications
get _name_
Get application details
sync _name_
Sync application with Git
delete _name_
Delete application
diff _name_
Show diff with Git state
history _name_
Show deployment history
rollback _name_ _id_
Rollback to previous revision
set _name_
Modify application settings
--repo _url_
Git repository URL
--path _path_
Path within repository
--dest-server _url_
Kubernetes cluster URL
--dest-namespace _ns_
Target namespace
--sync-policy _policy_
Sync policy (manual, automated)

FAQ

What is the argocd-app command used for?

argocd app manages Argo CD applications, which represent deployed Kubernetes resources synced from Git repositories. Each application links a Git path to a Kubernetes destination. Applications can be synced manually or automatically, with Argo CD monitoring for drift between desired (Git) and live (cluster) state.

How do I run a basic argocd-app example?

Run `argocd app list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create _name_ do in argocd-app?

Create new application