Skip to content

Function: parseArgs()

parseArgs<TSchema>(command, schema, options?): ReturnType<TSchema["parse"]>

Merge CLI values over layered config, then validate and default through Zod.

TSchema extends CliObjectSchema<Readonly<Record<string, unknown>>>

Command

TSchema

ConfigOptions = ...

ReturnType<TSchema["parse"]>