Skip to main content
The argocd appset command manages ApplicationSets, which enable you to use templating to automatically generate multiple Argo CD applications.

Quick Examples

What are ApplicationSets?

ApplicationSets provide a way to automatically generate Argo CD applications using templates and generators. They’re useful for:
  • Deploying the same application to multiple clusters
  • Managing multi-tenant environments
  • Implementing monorepos with multiple applications
  • Automating application creation from Git repositories

Subcommands

create

Create one or more ApplicationSets from YAML files.
Example ApplicationSet:
applicationset.yaml
Key Flags:
boolean
Update the ApplicationSet if it already exists
boolean
default:"true"
Validate the ApplicationSet before creating

list

List all ApplicationSets.
Output:

get

Get ApplicationSet details.
Output:

delete

Delete one or more ApplicationSets.
Deleting an ApplicationSet will also delete all applications generated by it.
Key Flags:
boolean
Skip confirmation prompt

generate

Generate and render ApplicationSet templates without creating applications.
This is useful for testing and debugging ApplicationSet templates before creating them. Output:

ApplicationSet Generators

List Generator

Generate applications from a static list of parameters:

Git Generator

Generate applications from Git repository structure:

Cluster Generator

Generate applications for all registered clusters:

Matrix Generator

Combine multiple generators:

Common Workflows

Multi-Cluster Deployment

multi-cluster-appset.yaml
Create the ApplicationSet:

Monorepo with Multiple Apps

monorepo-appset.yaml

Testing ApplicationSet Templates

Update ApplicationSet

Monitoring ApplicationSets

Troubleshooting

Validate Template Rendering

Check ApplicationSet Status

Debug Generator Issues

Best Practices

  • Use descriptive names for generated applications with template variables
  • Test ApplicationSets with generate before creating them
  • Use labels to organize generated applications
  • Consider using sync waves for ordered deployment
  • Document generator parameters for team members

Next Steps

App Commands

Manage generated applications

Cluster Commands

Register clusters for multi-cluster deployment