diff --git a/packages/cli/package.json b/packages/cli/package.json index c1fe1774c6..3255c3b7ca 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -16,6 +16,7 @@ "types": "dist/index.d.ts", "oclif": { "commands": "./dist/commands", + "helpClass": "./dist/help", "bin": "n8n" }, "scripts": { diff --git a/packages/cli/src/help.ts b/packages/cli/src/help.ts new file mode 100644 index 0000000000..a95a3381e0 --- /dev/null +++ b/packages/cli/src/help.ts @@ -0,0 +1,11 @@ +import { Help } from '@oclif/core'; + +// oclif expects a default export +// eslint-disable-next-line import/no-default-export +export default class CustomHelp extends Help { + async showRootHelp() { + console.log( + 'You can find up to date information about the CLI here:\nhttps://docs.n8n.io/hosting/cli-commands/', + ); + } +}