botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
22 stars 21 forks source link

feat(cli): various cli improvements #144

Closed franklevasseur closed 2 years ago

franklevasseur commented 2 years ago

This PR includes:

  1. the download command is now a subcommand of lang: ./nlu lang download --dim 100 --lang fr
  2. all default config values were moved at a single location
  3. every cli parameter can be replaced by an env variable instead. Environment variables are generated from yargs schema builder
  4. json config file now has a schema that is generated from yargs schema builder
  5. subcommands init (./nlu init && ./nlu lang init) generate empty json configuration files with a schema in app data

Here's the priority order in case of conflict:

cli arg > config file > env variable