1 | botonic
|
2 | =======
|
3 |
|
4 | Build chatbots using React
|
5 |
|
6 | [![Version](https://img.shields.io/npm/v/botonic.svg)](https://npmjs.org/package/botonic)
|
7 | [![CircleCI](https://circleci.com/gh/ericmarcos/botonic/tree/master.svg?style=shield)](https://circleci.com/gh/ericmarcos/botonic/tree/master)
|
8 | [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/ericmarcos/botonic?branch=master&svg=true)](https://ci.appveyor.com/project/ericmarcos/botonic/branch/master)
|
9 | [![Codecov](https://codecov.io/gh/ericmarcos/botonic/branch/master/graph/badge.svg)](https://codecov.io/gh/ericmarcos/botonic)
|
10 | [![Downloads/week](https://img.shields.io/npm/dw/botonic.svg)](https://npmjs.org/package/botonic)
|
11 | [![License](https://img.shields.io/npm/l/botonic.svg)](https://github.com/ericmarcos/botonic/blob/master/package.json)
|
12 |
|
13 |
|
14 | * [Usage](#usage)
|
15 | * [Commands](#commands)
|
16 |
|
17 | # Usage
|
18 |
|
19 | ```sh-session
|
20 | $ npm install -g botonic
|
21 | $ botonic COMMAND
|
22 | running command...
|
23 | $ botonic (-v|--version|version)
|
24 | botonic/0.1.12 darwin-x64 node-v9.9.0
|
25 | $ botonic --help [COMMAND]
|
26 | USAGE
|
27 | $ botonic COMMAND
|
28 | ...
|
29 | ```
|
30 |
|
31 | # Commands
|
32 |
|
33 | * [botonic deploy [BOT_NAME]](#botonic-deploy-bot-name)
|
34 | * [botonic help [COMMAND]](#botonic-help-command)
|
35 | * [botonic input INPUT](#botonic-input-input)
|
36 | * [botonic login](#botonic-login)
|
37 | * [botonic logout](#botonic-logout)
|
38 | * [botonic new NAME [TEMPLATENAME]](#botonic-new-name-templatename)
|
39 | * [botonic run [INPUT]](#botonic-run-input)
|
40 |
|
41 | ## botonic deploy [BOT_NAME]
|
42 |
|
43 | Deploy Botonic project to botonic.io cloud
|
44 |
|
45 | ```
|
46 | USAGE
|
47 | $ botonic deploy [BOT_NAME]
|
48 |
|
49 | EXAMPLE
|
50 | $ botonic deploy
|
51 | Building...
|
52 | Creating bundle...
|
53 | Uploading...
|
54 | 🚀 Bot deployed!
|
55 | ```
|
56 |
|
57 | _See code: [src/commands/deploy.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/deploy.ts)_
|
58 |
|
59 | ## botonic help [COMMAND]
|
60 |
|
61 | display help for botonic
|
62 |
|
63 | ```
|
64 | USAGE
|
65 | $ botonic help [COMMAND]
|
66 |
|
67 | ARGUMENTS
|
68 | COMMAND command to show help for
|
69 |
|
70 | OPTIONS
|
71 | --all see all commands in CLI
|
72 | ```
|
73 |
|
74 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v1.2.3/src/commands/help.ts)_
|
75 |
|
76 | ## botonic input INPUT
|
77 |
|
78 | Get response from a single input
|
79 |
|
80 | ```
|
81 | USAGE
|
82 | $ botonic input INPUT
|
83 |
|
84 | OPTIONS
|
85 | -c, --context=context Context of current session
|
86 | -p, --path=path Path to botonic project. Defaults to current dir.
|
87 |
|
88 | EXAMPLE
|
89 | $ botonic input "{\"type\": \"text\", \"data\": \"hi\"}"
|
90 | Hello!
|
91 | ```
|
92 |
|
93 | _See code: [src/commands/input.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/input.ts)_
|
94 |
|
95 | ## botonic login
|
96 |
|
97 | Log in to Botonic
|
98 |
|
99 | ```
|
100 | USAGE
|
101 | $ botonic login
|
102 |
|
103 | OPTIONS
|
104 | -p, --path=path Path to botonic project. Defaults to current dir.
|
105 | ```
|
106 |
|
107 | _See code: [src/commands/login.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/login.ts)_
|
108 |
|
109 | ## botonic logout
|
110 |
|
111 | Log out of Botonic
|
112 |
|
113 | ```
|
114 | USAGE
|
115 | $ botonic logout
|
116 |
|
117 | OPTIONS
|
118 | -p, --path=path Path to botonic project. Defaults to current dir.
|
119 | ```
|
120 |
|
121 | _See code: [src/commands/logout.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/logout.ts)_
|
122 |
|
123 | ## botonic new NAME [TEMPLATENAME]
|
124 |
|
125 | Create a new Botonic project
|
126 |
|
127 | ```
|
128 | USAGE
|
129 | $ botonic new NAME [TEMPLATENAME]
|
130 |
|
131 | ARGUMENTS
|
132 | NAME name of the bot folder
|
133 | TEMPLATENAME OPTIONAL name of the bot template
|
134 |
|
135 | EXAMPLE
|
136 | $ botonic new test_bot
|
137 | Creating...
|
138 | ✨ test_bot was successfully created!
|
139 | ```
|
140 |
|
141 | _See code: [src/commands/new.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/new.ts)_
|
142 |
|
143 | ## botonic run [INPUT]
|
144 |
|
145 | Start interactive session
|
146 |
|
147 | ```
|
148 | USAGE
|
149 | $ botonic run [INPUT]
|
150 |
|
151 | OPTIONS
|
152 | -p, --path=path Path to botonic project. Defaults to current dir.
|
153 |
|
154 | EXAMPLE
|
155 | $ botonic run
|
156 | Your bot is ready, start talking:
|
157 | [you] > Hi
|
158 | [bot] > Bye!
|
159 | ```
|
160 |
|
161 | _See code: [src/commands/run.ts](https://github.com/hubtype/botonic/blob/v0.1.12/src/commands/run.ts)_
|
162 |
|