diff --git a/cmd/task/task.go b/cmd/task/task.go index 939245db85..f862d6b633 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -312,6 +312,7 @@ func run() error { } globals.Set("CLI_ARGS", taskfile.Var{Value: cliArgs}) + globals.Set("CLI_FORCE", taskfile.Var{Value: flags.force || flags.forceAll}) e.Taskfile.Vars.Merge(globals) if !flags.watch {