Skip to content

Botfuel/botfuel-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Botfuel CLI

Botfuel-dialog command line utility.

Features

Installation

npm install -g botfuel-cli

Usage

Create a new project

fuel new my-new-bot

Generate 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=prompt

Generate 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 webchat

Run tests

fuel test

About

Botfuel Command Line Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published