OPT CLI Tools
Usage
$ npm install -g @ones-open/cli-tools
$ opt COMMAND
running command...
$ opt (--version)
@ones-open/cli-tools/2.1.2 darwin-arm64 node-v18.12.1
$ opt --help [COMMAND]
USAGE
$ opt COMMAND
...
Commands
opt check OPKS
check if OPK packages contain incompatible ONES APIs, modules or abilities by configuration in op.config.mjs
USAGE
$ opt check OPKS [--ones-version <value>] [--scan-apis <value>] [--enable-api-hijack] [--json]
[--output-path <value>] [-h]
ARGUMENTS
OPKS the OPK files or directories to check
FLAGS
-h, --help Show CLI help.
--enable-api-hijack enable API hijack which will override `enableApiHijack` in `op.config.mjs`
--json output the result with JSON format
--ones-version=<value> the target ONES version which will override `onesVersion` in `op.config.mjs`
--output-path=<value> the file path to save the result
--scan-apis=<value> the ONES APIs to scan which will override `scan.apis` in `op.config.mjs`, multiple apis
should be separated by comma
DESCRIPTION
check if OPK packages contain incompatible ONES APIs, modules or abilities by configuration in `op.config.mjs`
EXAMPLES
$ opt check demo.opk
$ opt check /path/to/opk/dirs
$ opt check /path/to/opk/dirs,demo.opk
$ opt check demo.opk --ones-version="3.15.0" --scan-apis="/project/api/1,/project/api/2"
opt help [COMMANDS]
Display help for opt.
USAGE
$ opt help [COMMANDS...] [-n]
ARGUMENTS
COMMANDS... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for opt.
See code: @oclif/plugin-help