Skip to main content

Single Command CLI

Sometimes you may want your CLI's executable to also be the only command, similar to many bash utilities like ls or cat.

To support this, you will need to put your command logic into src/index.ts and add the following to the oclif section of your package.json:

oclif: {
default: ".",
commands: "./dist"