1 | @botonic/cli
|
2 | ============
|
3 |
|
4 | Build Chatbots Using React
|
5 |
|
6 | [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
|
7 | [![Version](https://img.shields.io/npm/v/@botonic/cli.svg)](https://npmjs.org/package/@botonic/cli)
|
8 | [![Downloads/week](https://img.shields.io/npm/dw/@botonic/cli.svg)](https://npmjs.org/package/@botonic/cli)
|
9 | [![License](https://img.shields.io/npm/l/@botonic/cli.svg)](https://github.com/hubtype/botonic/blob/master/package.json)
|
10 |
|
11 |
|
12 | * [Usage](#usage)
|
13 | * [Commands](#commands)
|
14 |
|
15 | # Usage
|
16 |
|
17 | ```sh-session
|
18 | $ npm install -g @botonic/cli
|
19 | $ botonic COMMAND
|
20 | running command...
|
21 | $ botonic (-v|--version|version)
|
22 | @botonic/cli/0.9.0 darwin-x64 node-v10.15.0
|
23 | $ botonic --help [COMMAND]
|
24 | USAGE
|
25 | $ botonic COMMAND
|
26 | ...
|
27 | ```
|
28 |
|
29 | # Commands
|
30 |
|
31 | * [`botonic deploy [BOT_NAME]`](#botonic-deploy-bot-name)
|
32 | * [`botonic help [COMMAND]`](#botonic-help-command)
|
33 | * [`botonic login`](#botonic-login)
|
34 | * [`botonic logout`](#botonic-logout)
|
35 | * [`botonic new NAME [TEMPLATENAME]`](#botonic-new-name-templatename)
|
36 | * [`botonic serve`](#botonic-serve)
|
37 | * [`botonic test`](#botonic-test)
|
38 | * [`botonic train`](#botonic-train)
|
39 |
|
40 | ## `botonic deploy [BOT_NAME]`
|
41 |
|
42 | Deploy Botonic project to hubtype.com
|
43 |
|
44 | ```
|
45 | USAGE
|
46 | $ botonic deploy [BOT_NAME]
|
47 |
|
48 | OPTIONS
|
49 | -c, --command=command Command to execute from the package "scripts" object
|
50 | -f, --force Force deploy despite of no changes. Disabled by default
|
51 | --botName=botName
|
52 |
|
53 | EXAMPLE
|
54 | $ botonic deploy
|
55 | Building...
|
56 | Creating bundle...
|
57 | Uploading...
|
58 | π Bot deployed!
|
59 | ```
|
60 |
|
61 | _See code: [src/commands/deploy.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/deploy.ts)_
|
62 |
|
63 | ## `botonic help [COMMAND]`
|
64 |
|
65 | display help for botonic
|
66 |
|
67 | ```
|
68 | USAGE
|
69 | $ botonic help [COMMAND]
|
70 |
|
71 | ARGUMENTS
|
72 | COMMAND command to show help for
|
73 |
|
74 | OPTIONS
|
75 | --all see all commands in CLI
|
76 | ```
|
77 |
|
78 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.4/src/commands/help.ts)_
|
79 |
|
80 | ## `botonic login`
|
81 |
|
82 | Log in to Botonic
|
83 |
|
84 | ```
|
85 | USAGE
|
86 | $ botonic login
|
87 |
|
88 | OPTIONS
|
89 | -p, --path=path Path to botonic project. Defaults to current dir.
|
90 | ```
|
91 |
|
92 | _See code: [src/commands/login.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/login.ts)_
|
93 |
|
94 | ## `botonic logout`
|
95 |
|
96 | Log out of Botonic
|
97 |
|
98 | ```
|
99 | USAGE
|
100 | $ botonic logout
|
101 |
|
102 | OPTIONS
|
103 | -p, --path=path Path to botonic project. Defaults to current dir.
|
104 | ```
|
105 |
|
106 | _See code: [src/commands/logout.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/logout.ts)_
|
107 |
|
108 | ## `botonic new NAME [TEMPLATENAME]`
|
109 |
|
110 | Create a new Botonic project
|
111 |
|
112 | ```
|
113 | USAGE
|
114 | $ botonic new NAME [TEMPLATENAME]
|
115 |
|
116 | ARGUMENTS
|
117 | NAME name of the bot folder
|
118 | TEMPLATENAME OPTIONAL name of the bot template
|
119 |
|
120 | EXAMPLE
|
121 | $ botonic new test_bot
|
122 | Creating...
|
123 | β¨ test_bot was successfully created!
|
124 | ```
|
125 |
|
126 | _See code: [src/commands/new.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/new.ts)_
|
127 |
|
128 | ## `botonic serve`
|
129 |
|
130 | Serve your bot in your localhost
|
131 |
|
132 | ```
|
133 | USAGE
|
134 | $ botonic serve
|
135 |
|
136 | EXAMPLE
|
137 | $ botonic serve
|
138 | > Project is running at http://localhost:8080/
|
139 | ```
|
140 |
|
141 | _See code: [src/commands/serve.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/serve.ts)_
|
142 |
|
143 | ## `botonic test`
|
144 |
|
145 | Test your Botonic components
|
146 |
|
147 | ```
|
148 | USAGE
|
149 | $ botonic test
|
150 |
|
151 | EXAMPLE
|
152 | PASS tests/app.test.js
|
153 | β TEST: hi.js (10ms)
|
154 | β TEST: pizza.js (1ms)
|
155 | β TEST: sausage.js (1ms)
|
156 | β TEST: bacon.js
|
157 | β TEST: pasta.js (1ms)
|
158 | β TEST: cheese.js (1ms)
|
159 | β TEST: tomato.js
|
160 |
|
161 | Test Suites: 1 passed, 1 total
|
162 | Tests: 7 passed, 7 total
|
163 | Snapshots: 0 total
|
164 | Time: 1.223s
|
165 | Ran all test suites.
|
166 | ```
|
167 |
|
168 | _See code: [src/commands/test.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/test.ts)_
|
169 |
|
170 | ## `botonic train`
|
171 |
|
172 | Serve your bot in your localhost
|
173 |
|
174 | ```
|
175 | USAGE
|
176 | $ botonic train
|
177 |
|
178 | OPTIONS
|
179 | --lang=lang
|
180 |
|
181 | EXAMPLE
|
182 | $ botonic train
|
183 | TRAINING MODEL FORΒ {LANGUAGE}...
|
184 | ```
|
185 |
|
186 | _See code: [src/commands/train.ts](https://github.com/hubtype/botonic/blob/v0.9.0/src/commands/train.ts)_
|
187 |
|