Skip to main content
The argocd app command provides comprehensive application management capabilities including creation, synchronization, deletion, and monitoring.

Quick Examples

Subcommands

create

Create a new application.
Create from a Git repository:
Key Flags:
string
required
Repository URL
string
required
Path in repository to the app directory
string
required
Kubernetes target namespace
string
required
Kubernetes cluster URL (e.g., https://kubernetes.default.svc)
string
Set sync policy: manual, automated, auto, or automatic
boolean
Automatically prune resources no longer defined in Git
boolean
Automatically sync when cluster state deviates from Git

list

List all applications.
Output:

get

Get application details.
Output:

sync

Synchronize application to its target state.
Key Flags:
boolean
Allow deleting unexpected resources
boolean
Preview apply without affecting cluster
boolean
Use a force apply
boolean
Do not wait for application to sync before continuing
string[]
Sync only specific resources as GROUP:KIND:NAME
integer
Time out after this many seconds

diff

Perform a diff against the target and live state.
Output:

set

Set application parameters.

unset

Unset application parameters.

delete

Delete an application.
Using --cascade will delete all Kubernetes resources managed by the application.

wait

Wait for application to reach a synced and healthy state.

history

Show application deployment history.
Output:

rollback

Rollback application to a previous deployed version.

manifests

Print manifests of an application.

logs

Get logs of application pods.

resources

List resources of application.

patch

Patch application specifications.

edit

Edit application in default editor.
This opens the application manifest in your $EDITOR.

terminate-op

Terminate running operation of an application.

Advanced Features

Multi-Source Applications

Resource Actions

Resource Operations

Common Workflows

Deploy New Version

Emergency Rollback

Debug Application

Next Steps

ApplicationSets

Manage ApplicationSets for multiple apps

Projects

Organize apps with projects