UNPKG

3.83 kBMarkdownView Raw
1botonic
2=======
3
4Build 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<!-- toc -->
14* [Usage](#usage)
15* [Commands](#commands)
16<!-- tocstop -->
17# Usage
18<!-- usage -->
19```sh-session
20$ npm install -g botonic
21$ botonic COMMAND
22running command...
23$ botonic (-v|--version|version)
24botonic/0.1.12 darwin-x64 node-v9.9.0
25$ botonic --help [COMMAND]
26USAGE
27 $ botonic COMMAND
28...
29```
30<!-- usagestop -->
31# Commands
32<!-- commands -->
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
43Deploy Botonic project to botonic.io cloud
44
45```
46USAGE
47 $ botonic deploy [BOT_NAME]
48
49EXAMPLE
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
61display help for botonic
62
63```
64USAGE
65 $ botonic help [COMMAND]
66
67ARGUMENTS
68 COMMAND command to show help for
69
70OPTIONS
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
78Get response from a single input
79
80```
81USAGE
82 $ botonic input INPUT
83
84OPTIONS
85 -c, --context=context Context of current session
86 -p, --path=path Path to botonic project. Defaults to current dir.
87
88EXAMPLE
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
97Log in to Botonic
98
99```
100USAGE
101 $ botonic login
102
103OPTIONS
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
111Log out of Botonic
112
113```
114USAGE
115 $ botonic logout
116
117OPTIONS
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
125Create a new Botonic project
126
127```
128USAGE
129 $ botonic new NAME [TEMPLATENAME]
130
131ARGUMENTS
132 NAME name of the bot folder
133 TEMPLATENAME OPTIONAL name of the bot template
134
135EXAMPLE
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
145Start interactive session
146
147```
148USAGE
149 $ botonic run [INPUT]
150
151OPTIONS
152 -p, --path=path Path to botonic project. Defaults to current dir.
153
154EXAMPLE
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<!-- commandsstop -->