|
@@ -12,11 +12,11 @@
|
|
# Usage
|
|
# Usage
|
|
<!-- usage -->
|
|
<!-- usage -->
|
|
```sh-session
|
|
```sh-session
|
|
-$ yarn global add @jianyu/cli
|
|
|
|
|
|
+$ npm install -g @jianyu/cli
|
|
$ jianyu COMMAND
|
|
$ jianyu COMMAND
|
|
running command...
|
|
running command...
|
|
$ jianyu (--version)
|
|
$ jianyu (--version)
|
|
-@jianyu/cli/0.1.10 darwin-x64 node-v16.14.2
|
|
|
|
|
|
+@jianyu/cli/0.1.11 darwin-x64 node-v16.14.2
|
|
$ jianyu --help [COMMAND]
|
|
$ jianyu --help [COMMAND]
|
|
USAGE
|
|
USAGE
|
|
$ jianyu COMMAND
|
|
$ jianyu COMMAND
|
|
@@ -28,6 +28,15 @@ USAGE
|
|
* [`jianyu create`](#jianyu-create)
|
|
* [`jianyu create`](#jianyu-create)
|
|
* [`jianyu help [COMMAND]`](#jianyu-help-command)
|
|
* [`jianyu help [COMMAND]`](#jianyu-help-command)
|
|
* [`jianyu init DIR`](#jianyu-init-dir)
|
|
* [`jianyu init DIR`](#jianyu-init-dir)
|
|
|
|
+* [`jianyu plugins`](#jianyu-plugins)
|
|
|
|
+* [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin)
|
|
|
|
+* [`jianyu plugins:inspect PLUGIN...`](#jianyu-pluginsinspect-plugin)
|
|
|
|
+* [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin-1)
|
|
|
|
+* [`jianyu plugins:link PLUGIN`](#jianyu-pluginslink-plugin)
|
|
|
|
+* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin)
|
|
|
|
+* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-1)
|
|
|
|
+* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-2)
|
|
|
|
+* [`jianyu plugins:update`](#jianyu-pluginsupdate)
|
|
* [`jianyu sync`](#jianyu-sync)
|
|
* [`jianyu sync`](#jianyu-sync)
|
|
* [`jianyu update`](#jianyu-update)
|
|
* [`jianyu update`](#jianyu-update)
|
|
|
|
|
|
@@ -88,6 +97,246 @@ EXAMPLES
|
|
创建目录并拉取指定模版初始化项目
|
|
创建目录并拉取指定模版初始化项目
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+## `jianyu plugins`
|
|
|
|
+
|
|
|
|
+List installed plugins.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins [--core]
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ --core Show core plugins.
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ List installed plugins.
|
|
|
|
+
|
|
|
|
+EXAMPLES
|
|
|
|
+ $ jianyu plugins
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/index.ts)_
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:install PLUGIN...`
|
|
|
|
+
|
|
|
|
+Installs a plugin into the CLI.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:install PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN Plugin to install.
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -f, --force Run yarn install with force flag.
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Installs a plugin into the CLI.
|
|
|
|
+
|
|
|
|
+ Can be installed from npm or a git url.
|
|
|
|
+
|
|
|
|
+ Installation of a user-installed plugin will override a core plugin.
|
|
|
|
+
|
|
|
|
+ e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
|
|
|
|
+ will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
|
|
|
|
+ the CLI without the need to patch and update the whole CLI.
|
|
|
|
+
|
|
|
|
+ALIASES
|
|
|
|
+ $ jianyu plugins:add
|
|
|
|
+
|
|
|
|
+EXAMPLES
|
|
|
|
+ $ jianyu plugins:install myplugin
|
|
|
|
+
|
|
|
|
+ $ jianyu plugins:install https://github.com/someuser/someplugin
|
|
|
|
+
|
|
|
|
+ $ jianyu plugins:install someuser/someplugin
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:inspect PLUGIN...`
|
|
|
|
+
|
|
|
|
+Displays installation properties of a plugin.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:inspect PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN [default: .] Plugin to inspect.
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Displays installation properties of a plugin.
|
|
|
|
+
|
|
|
|
+EXAMPLES
|
|
|
|
+ $ jianyu plugins:inspect myplugin
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/inspect.ts)_
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:install PLUGIN...`
|
|
|
|
+
|
|
|
|
+Installs a plugin into the CLI.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:install PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN Plugin to install.
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -f, --force Run yarn install with force flag.
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Installs a plugin into the CLI.
|
|
|
|
+
|
|
|
|
+ Can be installed from npm or a git url.
|
|
|
|
+
|
|
|
|
+ Installation of a user-installed plugin will override a core plugin.
|
|
|
|
+
|
|
|
|
+ e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
|
|
|
|
+ will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
|
|
|
|
+ the CLI without the need to patch and update the whole CLI.
|
|
|
|
+
|
|
|
|
+ALIASES
|
|
|
|
+ $ jianyu plugins:add
|
|
|
|
+
|
|
|
|
+EXAMPLES
|
|
|
|
+ $ jianyu plugins:install myplugin
|
|
|
|
+
|
|
|
|
+ $ jianyu plugins:install https://github.com/someuser/someplugin
|
|
|
|
+
|
|
|
|
+ $ jianyu plugins:install someuser/someplugin
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/install.ts)_
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:link PLUGIN`
|
|
|
|
+
|
|
|
|
+Links a plugin into the CLI for development.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:link PLUGIN
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PATH [default: .] path to plugin
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Links a plugin into the CLI for development.
|
|
|
|
+
|
|
|
|
+ Installation of a linked plugin will override a user-installed or core plugin.
|
|
|
|
+
|
|
|
|
+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
|
|
+ command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
|
|
+
|
|
|
|
+EXAMPLES
|
|
|
|
+ $ jianyu plugins:link myplugin
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/link.ts)_
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:uninstall PLUGIN...`
|
|
|
|
+
|
|
|
|
+Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:uninstall PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN plugin to uninstall
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+ALIASES
|
|
|
|
+ $ jianyu plugins:unlink
|
|
|
|
+ $ jianyu plugins:remove
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:uninstall PLUGIN...`
|
|
|
|
+
|
|
|
|
+Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:uninstall PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN plugin to uninstall
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+ALIASES
|
|
|
|
+ $ jianyu plugins:unlink
|
|
|
|
+ $ jianyu plugins:remove
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/uninstall.ts)_
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:uninstall PLUGIN...`
|
|
|
|
+
|
|
|
|
+Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:uninstall PLUGIN...
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+ PLUGIN plugin to uninstall
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Removes a plugin from the CLI.
|
|
|
|
+
|
|
|
|
+ALIASES
|
|
|
|
+ $ jianyu plugins:unlink
|
|
|
|
+ $ jianyu plugins:remove
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+## `jianyu plugins:update`
|
|
|
|
+
|
|
|
|
+Update installed plugins.
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+USAGE
|
|
|
|
+ $ jianyu plugins:update [-h] [-v]
|
|
|
|
+
|
|
|
|
+FLAGS
|
|
|
|
+ -h, --help Show CLI help.
|
|
|
|
+ -v, --verbose
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+ Update installed plugins.
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/update.ts)_
|
|
|
|
+
|
|
## `jianyu sync`
|
|
## `jianyu sync`
|
|
|
|
|
|
同步到物料平台(内网注册表)
|
|
同步到物料平台(内网注册表)
|