Skip to content

Example: TypeScript CLI

Source: examples/ts-cli/

A fully typed TypeScript CLI. Showcases:

  • Writing the entry file and handlers in TypeScript
  • Using Cli.defineCommand and Cli.CommandOptions<T> for typed handler options
  • tsconfig.json setup to compile the project

See also Typed command options in the API reference.

Released under the MIT License.