Skip to content

Commit

Permalink
fix(core): Point users to the official documentation when they use `n…
Browse files Browse the repository at this point in the history
…8n --help` (#8440)
  • Loading branch information
despairblue authored Jan 26, 2024
1 parent 70af67e commit 9f11eba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"types": "dist/index.d.ts",
"oclif": {
"commands": "./dist/commands",
"helpClass": "./dist/help",
"bin": "n8n"
},
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions packages/cli/src/help.ts
Original file line number Diff line number Diff line change
@@ -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/',
);
}
}

0 comments on commit 9f11eba

Please sign in to comment.