Forrest logo
back to the argocd tool

argocd-app:tldr:c1b98

argocd-app: Rollback application to a previous deployed version by history ID (deleting unexpected resources).
$ argocd app rollback ${app_name} ${history_id} --prune
try on your machine

The command you mentioned is related to the Argo CD tool. Let's break it down into its components:

  • argocd is the command-line interface (CLI) tool for Argo CD.
  • app is a subcommand used for interacting with applications in Argo CD.
  • rollback is a specific action to perform a rollback on an application.
  • ${app_name} is a placeholder for the name of the application you want to rollback. You need to replace ${app_name} with the actual name of the application you wish to rollback.
  • ${history_id} is another placeholder representing the specific version or history of the application you want to rollback to. Similarly, it should be replaced with the desired history ID.
  • --prune is an option that can be added to the command to remove any resources that were created by the newer version of the application, but are not present in the rolled-back version.

To summarize, the command argocd app rollback ${app_name} ${history_id} --prune is used with Argo CD to roll back a specific application to a previous version identified by its history ID, and optionally remove any resources that were introduced in newer versions.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the argocd tool