0.1.0 • Published 7 years ago
botfuel-cli v0.1.0
Botfuel CLI
Botfuel-dialog command line utility.
Features
Installation
npm install -g botfuel-cliUsage
Create a new project
fuel new my-new-botGenerate files
fuel generate <command>Generate view
fuel generate view <name>Generate Dialog
fuel generate dialog <name> [entities..] [--type=]
Generating dialog <name> of type [type] with [entities]
Options:
--type Dialog type (void, base, default, qna,
confirmation) [default: "default"]Example
fuel generate dialog travel destination:city pilot:forename --type=promptGenerate Intents
The intent generation with :
- generate the dialog file
- generate the view file
- call the botfuel API to create the intent in the trainer
fuel generate intent <name>Generate Config
fuel g config <name> [options]
Generate config <name>
Options:
--adapter Adapter to use (test, botfuel, shell, messenger ...)
[default: "shell"]
--brain Brain to use (memory, mongo)
--locale Locale to use (en, fr, en)
--logger Logger to use (debug, info, error)
--modules List of modules used (botfuel-module-facetedsearch, ...)Example
fuel g c botfuel --adapter=botfuel --brain=mongo --locale=en --logger=info --modules="foo bar"Run bot
fuel serve <config>Example
fuel generate config webchat --adapter=botfuel --loger=debug
fuel serve webchatRun tests
fuel test