Like Next.js, but for CLI apps

pok is a file-based CLI framework and task runner.
Use it to build CLI apps, or your internal development platform.

File-based Routing

Commands are discovered from the filesystem. Just create a file and it becomes a command. Supports nested commands with dot notation.

Type-safe

Full TypeScript support with Zod schema validation for arguments, flags, and context. Get autocompletion and type checking.

Interactive Prompts

Automatically prompts for missing values with beautiful terminal UI. Supports text, select, multiselect, confirm, and more.

Composable Tasks

Define reusable tasks with environment management. Compose complex workflows from simple building blocks.

Pre-flight Checks

Validate requirements before running commands. Check dependencies, environment variables, or custom conditions.

Modular Architecture

Choose only the adapters you need. Swap prompters, reporters, and UI components to match your requirements.