LinuxCommandLibrary

argocd-app

Command-line interface to manage applications by Argo CD.

TLDR

List applications

$ argocd app list --output [json|yaml|wide]
copy


Get application details
$ argocd app get [app_name] --output [json|yaml|wide]
copy


Deploy application internally (to the same cluster that Argo CD is running in)
$ argocd app create [app_name] --repo [git_repo_url] --path [path/to/repo] --dest-server https://kubernetes.default.svc --dest-namespace [ns]
copy


Delete an application
$ argocd app delete [app_name]
copy


Enable application auto-sync
$ argocd app set [app_name] --sync-policy auto --auto-prune --self-heal
copy


Preview app synchronization without affecting cluster
$ argocd app sync [app_name] --dry-run --prune
copy


Show application deployment history
$ argocd app history [app_name] --output [wide|id]
copy


Rollback application to a previous deployed version by history ID (deleting unexpected resources)
$ argocd app rollback [app_name] [history_id] --prune
copy

Copied to clipboard