Skip to Content
Last repository update 9/10/2025 🎉
DocsTaskfileForward CLI Arguments to Cmd

Forward CLI Arguments to a Command

You can forward CLI arguments to a command in Taskfile by using the -- syntax. This allows you to pass additional arguments directly to the command being executed.

Taskfile.yaml
version: '3' tasks: example: cmds: - npm {{.CLI_ARGS}}
task example -- install
Last updated on