fix(core): Point users to the official documentation when they use n8n --help (#8440)

This commit is contained in:
Danny Martini
2024-01-26 15:16:53 +01:00
committed by GitHub
parent 70af67e744
commit 9f11eba0a4
2 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
"types": "dist/index.d.ts",
"oclif": {
"commands": "./dist/commands",
"helpClass": "./dist/help",
"bin": "n8n"
},
"scripts": {

11
packages/cli/src/help.ts Normal file
View File

@@ -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/',
);
}
}