Start here

@hulla/args

Parse flags, positionals, and nested commands into typed values, with Zod validation and access to the raw input.

On this page

@hulla/args turns command-line input into typed values. Declare the options and commands your CLI accepts, then parse the arguments with Zod validation.

Your code decides what to do with the result, including printing help and reporting errors.

Type arguments for your preview command.

Ready to start storefront

Parsed argumentsGenerated output
{
  "project": "storefront",
  "port": 8080,
  "open": true
}

The supplied port is a number. Original input: --port 8080.

Runs @hulla/args + Zod. Space-separated tokens; no shell quoting or server startup.