Still just TypeScript and Commander
Uptask fills in the boring parts and gets out of the way. Your functions and your Commander setup stay yours.
Plain exported functions
No decorators, no wrappers, no DSL to learn. Task files stay ordinary modules you can import and test like any other code.
A real Commander program
Every command is a Commander command. The
setupProgramhook hands you the program to rename, add help text or register custom commands. See Configuration.Groups when you need them
Each
config.groups[]entry collects matching files under one parent command; files that match no group stay flat. See Groups.
uptask.config.ts
@build.ts
scripts/
├─ @release.ts
└─ @db.ts
$ uptask db migrate prod
$ uptask build web --watchDiscovery matches file basenames anywhere in the repo and honors .gitignore.
Everything a task runner needs
Sensible defaults, no setup to start, fully customizable when you need it.
Zero boilerplate
Plain exported functions become commands. No config required: the defaults come from package.json.
Type-driven CLI
Argument types come straight from TypeScript. Defaults, optionality and nested objects map themselves; JSDoc fills in --help.
Runtime validation
Inputs are validated against zod schemas built from your function's signature. Bad input gets a clean one-line error.
Subcommand groups
Opt into nesting via config.groups[]. Carve the top level into named areas without compound function names.
Honors .gitignore
Discovery walks .gitignore up to the repo root, not above. Predictable across machines.
Powered by Commander
Generated commands are real Commander.js commands. Customize with the setupProgram hook when you need to.
Write a function. Get a command.
Your .ts files stay as they are; uptask does the rest.
/**
* Build the project.
*
* @param target Build target name
* @param watch Enable watch mode
* @param concurrency Number of parallel builds
*/
export function build(
target: string,
watch: boolean = false,
concurrency: number = 4,
) {
console.log({ target, watch, concurrency })
}$ uptask build --help
USAGE uptask build [options] <target>
Build the project.
ARGUMENTS
target Build target name
OPTIONS
--watch Enable watch mode (default: false)
--concurrency <value> Number of parallel builds (default: 4)
-h, --help display help for command
$ uptask build web --concurrency abc
error: invalid argument 'concurrency': expected number, received nan
JSDoc descriptions surface in --help, next to the defaults.
Required string and number parameters become arguments; optional and boolean ones become --flags.
Every value is checked by zod before your function runs.
Stop writing CLI glue. Just export a function.
Install, write a function, run it. That's the whole setup.