Skip to main content
Argo CD provides three methods for creating applications: through the web UI, using the CLI, or declaratively with Kubernetes manifests. Each method offers different advantages depending on your workflow.

Creating Applications via UI

The web UI provides an intuitive interface for creating applications with guided forms.

Steps

  1. Log in to the Argo CD UI
  2. Click the + New App button
  3. Fill in the application details:
    • Application Name: A unique name for your application
    • Project: The Argo CD project (default: default)
    • Sync Policy: Choose Manual or Automatic
  4. Configure the source repository:
    • Repository URL: Your Git repository URL
    • Revision: Branch, tag, or commit (e.g., HEAD, main, or a specific tag)
    • Path: Path within the repository containing manifests
  5. Set the destination:
    • Cluster URL: https://kubernetes.default.svc for in-cluster
    • Namespace: Target namespace for deployment
  6. Click Create
The UI automatically validates your inputs and provides helpful error messages if required fields are missing.

Creating Applications via CLI

The Argo CD CLI is ideal for automation, scripting, and quick application creation from the terminal.

Basic Application Creation

With Auto-Sync Enabled

Helm Application

Common CLI Options

string
required
Git repository URL or Helm chart repository
string
Path within the repository (for Git sources)
string
required
Kubernetes API server URL
string
required
Target namespace for resources
string
Set to automated for automatic sync
string
Argo CD project name (default: default)

Creating Applications Declaratively

Declarative application manifests provide version control, consistency, and enable GitOps workflows for managing applications themselves.

Basic Application Manifest

Application with Auto-Sync

Helm Application Manifest

Kustomize Application

Application with Finalizers

The resources-finalizer.argocd.argoproj.io finalizer enables cascade deletion. When you delete the Application, all deployed resources will also be deleted. Use resources-finalizer.argocd.argoproj.io/background for background deletion.

Multi-Source Applications

Argo CD supports applications with multiple sources, useful for combining Helm charts with external values files or mixing different repositories.

Application Info

You can add extra information to display in the Argo CD Application details tab:

Applying Declarative Manifests

Once you’ve created your Application manifest, apply it to the cluster:
Or using the Argo CD CLI:
Declarative application manifests should be stored in Git to follow GitOps principles. This enables the “App of Apps” pattern where Argo CD manages its own application definitions.

Verifying Application Creation

Using CLI

Using kubectl

Best Practices

Use Projects

Organize applications into projects for better access control and resource isolation.

Version Control

Store declarative manifests in Git to track changes and enable rollbacks.

Naming Conventions

Use consistent naming patterns: <team>-<app>-<env> helps with organization.

Start Manual

Begin with manual sync policy, then enable auto-sync once you’re confident.

Next Steps

Sync Options

Configure how applications sync to the cluster

Sync Waves

Control deployment order with sync waves

Resource Hooks

Run jobs before, during, or after sync

Tracking Strategies

Learn about Git tracking methods