Add private repo with credentials

Register HTTPS repo with creds; modern: --ssh-private-key-path for SSH-based access

argocd repo add https://git.example.com/repo.git --username <id> --password $TOKEN

tool
argocd27 commands
tags
argocdgitopssecretssecurity

More argocd commands

  • argocd app patch <name> --patch '{"spec":{"source":{"targetRevision":"v2.1"}}}' --type merge

    Merge-patch app spec without editing the CR; useful to bump targetRevision fast

  • argocd app terminate-op <name>

    Cancel an in-progress sync stuck on a hook or pending resource

  • argocd app actions run <name> restart --kind Deployment --resource-name <id>

    Trigger a Deployment rollout restart through Argo's resource actions

  • argocd proj windows add <name> --kind deny --schedule '0 0 * * *' --duration 8h --applications '*'

    Create a deny sync window to freeze deploys during off-hours; cron-based schedule

  • argocd app set <name> --sync-option Prune=true --sync-option ServerSideApply=true

    Set sync options for safe prune and SSA; note: SSA fixes large-CRD apply conflicts

all 27 argocd commands