zhangyuhan 3 years ago
parent
commit
731354cca4
2 changed files with 87 additions and 40 deletions
  1. 86 39
      README.md
  2. 1 1
      package.json

+ 86 - 39
README.md

@@ -1,13 +1,9 @@
-oclif-hello-world
+@jianyu/cli
 =================
 =================
 
 
-oclif example Hello World CLI
+剑鱼内部脚手架
 
 
 [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
 [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
-[![Version](https://img.shields.io/npm/v/oclif-hello-world.svg)](https://npmjs.org/package/oclif-hello-world)
-[![CircleCI](https://circleci.com/gh/oclif/hello-world/tree/main.svg?style=shield)](https://circleci.com/gh/oclif/hello-world/tree/main)
-[![Downloads/week](https://img.shields.io/npm/dw/oclif-hello-world.svg)](https://npmjs.org/package/oclif-hello-world)
-[![License](https://img.shields.io/npm/l/oclif-hello-world.svg)](https://github.com/oclif/hello-world/blob/main/package.json)
 
 
 <!-- toc -->
 <!-- toc -->
 * [Usage](#usage)
 * [Usage](#usage)
@@ -20,7 +16,7 @@ $ npm install -g @jianyu/cli
 $ jianyu COMMAND
 $ jianyu COMMAND
 running command...
 running command...
 $ jianyu (--version)
 $ jianyu (--version)
-@jianyu/cli/0.0.0 darwin-x64 node-v16.14.2
+@jianyu/cli/0.1.0 darwin-x64 node-v16.14.2
 $ jianyu --help [COMMAND]
 $ jianyu --help [COMMAND]
 USAGE
 USAGE
   $ jianyu COMMAND
   $ jianyu COMMAND
@@ -29,9 +25,9 @@ USAGE
 <!-- usagestop -->
 <!-- usagestop -->
 # Commands
 # Commands
 <!-- commands -->
 <!-- commands -->
-* [`jianyu hello PERSON`](#jianyu-hello-person)
-* [`jianyu hello world`](#jianyu-hello-world)
+* [`jianyu create`](#jianyu-create)
 * [`jianyu help [COMMAND]`](#jianyu-help-command)
 * [`jianyu help [COMMAND]`](#jianyu-help-command)
+* [`jianyu init DIR`](#jianyu-init-dir)
 * [`jianyu plugins`](#jianyu-plugins)
 * [`jianyu plugins`](#jianyu-plugins)
 * [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin)
 * [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin)
 * [`jianyu plugins:inspect PLUGIN...`](#jianyu-pluginsinspect-plugin)
 * [`jianyu plugins:inspect PLUGIN...`](#jianyu-pluginsinspect-plugin)
@@ -41,45 +37,22 @@ USAGE
 * [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-1)
 * [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-1)
 * [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-2)
 * [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-2)
 * [`jianyu plugins update`](#jianyu-plugins-update)
 * [`jianyu plugins update`](#jianyu-plugins-update)
+* [`jianyu sync`](#jianyu-sync)
+* [`jianyu update [CHANNEL]`](#jianyu-update-channel)
 
 
-## `jianyu hello PERSON`
+## `jianyu create`
 
 
-Say hello
+创建项目-命令行交互式
 
 
 ```
 ```
 USAGE
 USAGE
-  $ jianyu hello [PERSON] -f <value>
-
-ARGUMENTS
-  PERSON  Person to say hello to
-
-FLAGS
-  -f, --from=<value>  (required) Whom is saying hello
-
-DESCRIPTION
-  Say hello
-
-EXAMPLES
-  $ oex hello friend --from oclif
-  hello friend from oclif! (./src/commands/hello/index.ts)
-```
-
-_See code: [dist/commands/hello/index.ts](https://github.com/zhangyuhan2016/jianyu-cli/blob/v0.0.0/dist/commands/hello/index.ts)_
-
-## `jianyu hello world`
-
-Say hello world
-
-```
-USAGE
-  $ jianyu hello world
+  $ jianyu create
 
 
 DESCRIPTION
 DESCRIPTION
-  Say hello world
+  创建项目-命令行交互式
 
 
 EXAMPLES
 EXAMPLES
-  $ oex hello world
-  hello world! (./src/commands/hello/world.ts)
+  $ jianyu create
 ```
 ```
 
 
 ## `jianyu help [COMMAND]`
 ## `jianyu help [COMMAND]`
@@ -102,6 +75,28 @@ DESCRIPTION
 
 
 _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.10/src/commands/help.ts)_
 _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.10/src/commands/help.ts)_
 
 
+## `jianyu init DIR`
+
+初始化项目
+
+```
+USAGE
+  $ jianyu init [DIR] -f <value>
+
+ARGUMENTS
+  DIR  目录名,同时用于项目名
+
+FLAGS
+  -f, --from=<value>  (required) 指定拉取模版的名称
+
+DESCRIPTION
+  初始化项目
+
+EXAMPLES
+  $ jianyu init new-dir --from component
+  创建目录并拉取指定模版初始化项目
+```
+
 ## `jianyu plugins`
 ## `jianyu plugins`
 
 
 List installed plugins.
 List installed plugins.
@@ -331,4 +326,56 @@ FLAGS
 DESCRIPTION
 DESCRIPTION
   Update installed plugins.
   Update installed plugins.
 ```
 ```
+
+## `jianyu sync`
+
+同步到物料平台(内网注册表)
+
+```
+USAGE
+  $ jianyu sync
+
+DESCRIPTION
+  同步到物料平台(内网注册表)
+
+EXAMPLES
+  $ jianyu sync
+```
+
+## `jianyu update [CHANNEL]`
+
+update the jianyu CLI
+
+```
+USAGE
+  $ jianyu update [CHANNEL] [-a] [-v <value> | -i] [--force]
+
+FLAGS
+  -a, --available        Install a specific version.
+  -i, --interactive      Interactively select version to install. This is ignored if a channel is provided.
+  -v, --version=<value>  Install a specific version.
+  --force                Force a re-download of the requested version.
+
+DESCRIPTION
+  update the jianyu CLI
+
+EXAMPLES
+  Update to the stable channel:
+
+    $ jianyu update stable
+
+  Update to a specific version:
+
+    $ jianyu update --version 1.0.0
+
+  Interactively select version:
+
+    $ jianyu update --interactive
+
+  See available versions:
+
+    $ jianyu update --available
+```
+
+_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.0.0/src/commands/update.ts)_
 <!-- commandsstop -->
 <!-- commandsstop -->

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@jianyu/cli",
   "name": "@jianyu/cli",
-  "version": "0.0.0",
+  "version": "0.1.0",
   "description": "剑鱼内部脚手架",
   "description": "剑鱼内部脚手架",
   "author": "zhangyuhan @zhangyuhan@topnet.net.cn",
   "author": "zhangyuhan @zhangyuhan@topnet.net.cn",
   "bin": {
   "bin": {