Compatible with oclif 4.x, build debian packages from dist, create manpage from README.md and include prerm, postrm, preinst and postinst scripts for Debian package.
Add the package to your package.json as devDependencies
"perrisbrewery": "^9.7.11*,
and create a script deb:
"deb": "tsc -p . && pb deb",
then use the script deb with your favourite package manager, mine is pnpm:
pnpm deb
Display autocomplete installation instructions.
USAGE
$ pb autocomplete [SHELL] [-r]
ARGUMENTS
SHELL (zsh|bash|powershell) Shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
Display autocomplete installation instructions.
EXAMPLES
$ pb autocomplete
$ pb autocomplete bash
$ pb autocomplete zsh
$ pb autocomplete powershell
$ pb autocomplete --refresh-cache
See code: @oclif/plugin-autocomplete
Pack CLI into debian package.
USAGE
$ pb deb [PATHSOURCE] [-v] [-h] [-m]
ARGUMENTS
PATHSOURCE pathSource
FLAGS
-h, --help Show CLI help.
-m, --mantain
-v, --verbose verbose
DESCRIPTION
Pack CLI into debian package.
Create a deb package from your npm package
See code: src/commands/deb.ts
Display help for pb.
USAGE
$ pb help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for pb.
See code: @oclif/plugin-help
USAGE
$ pb version [--json] [--verbose]
FLAGS
--verbose Show additional information about the CLI.
GLOBAL FLAGS
--json Format output as json.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
See code: @oclif/plugin-version
You can contact me by mail or follow me on blog, facebook, github, jtsi, reddit, telegram, twitter.
Copyright (c) 2017, 2023 Piero Proietti, dual licensed under the MIT or GPL Version 2 licenses.