Error: unknown command "run-all" for "terragrunt"
Fixes Terragrunt's 'unknown command run-all' after the 1.0 CLI redesign. Use when muscle memory or old scripts call terragrunt run-all on v1.0+. Not for genuinely unknown subcommands.
TL;DR: Terragrunt 1.0 redesigned the CLI: run-all became run --all. Your old command isn't forwarded anymore. Insert run -- between terragrunt and the subcommand.
Error: unknown command "run-all" for "terragrunt"Steps
- Rewrite the command:
terragrunt run-all planbecomesterragrunt run --all plan.
Expected: the command is recognized.
- Update scripts, aliases, CI workflows, and docs that use the old form. The other renames:
terragrunt run -- planfor a single unit,terragrunt find/terragrunt listfor discovery,terragrunt backendfor backend ops.
Expected: no run-all (or runall) invocations remain.
- Re-run.
Expected: normal output.
When this applies
unknown command "run-all"(or"runall") on Terragrunt 1.0+.- Any automation written against the pre-1.0 CLI.
When it doesn't apply
unknown command: "clear-cache": also removed in 1.0, but the fix is different (delete.terragrunt-cacheyourself; there is no replacement command).- A typo'd subcommand on current syntax: check
terragrunt --help.
Tool versions
Terragrunt 1.0+ (redesign shipped 2026-03-30 with stacks GA and the semver guarantee).
Why it happens
1.0 replaced the old flat command set (which forwarded unknown commands to terraform) with an explicit run verb: terragrunt run -- [tofu|terraform subcommand], terragrunt run --all [subcommand]. Unknown commands are no longer forwarded by default, so the old spellings hard-fail instead of passing through.
Edge cases
--terragrunt-*flags becamerun --[flag] --or top-level flags; check the 1.x flag reference when migrating scripts, not just the command name.- Pinning
terragrunt_version< 1.0 avoids the migration but forfeits stacks GA and later fixes; migrate instead.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.