powerbot-cli
v2.0.2
Published
CLI tool for Powerbot CMS projects
Downloads
4
Readme
powerbot-cli
CLI tool for Powerbot CMS projects
Usage
$ npm install -g powerbot-cli
$ powerbot COMMAND
running command...
$ powerbot (-v|--version|version)
powerbot-cli/2.0.1 darwin-x64 node-v10.15.1
$ powerbot --help [COMMAND]
USAGE
$ powerbot COMMAND
...
Commands
powerbot dev [MODULE]
powerbot env:list
powerbot env:set [NAME]
powerbot env:unset [NAME]
powerbot help [COMMAND]
powerbot info
powerbot init [NAME] [VERSION]
powerbot language:add [NAME] [LOCALE]
powerbot language:change [NAMEORLOCALETOCHANGE] [NEWLANGNAME] [NEWLANGLOCALE]
powerbot language:default [LANGORLOCALE]
powerbot language:remove [NAMEORLOCALE]
powerbot module [TYPE] [NAME]
powerbot setup
powerbot sync:attachments [SOURCE] [TARGET]
powerbot sync:elements [SOURCE] [TARGET]
powerbot sync:messages [SOURCE] [TARGET]
powerbot dev [MODULE]
Starts commands set for project development.
USAGE
$ powerbot dev [MODULE]
DESCRIPTION
As module accepts `cms` or `chatbot`
See code: src/commands/dev.ts
powerbot env:list
Lists environments configured for current project directory.
USAGE
$ powerbot env:list
See code: src/commands/env/list.ts
powerbot env:set [NAME]
Manages environments (database connection params) used for sync module.
USAGE
$ powerbot env:set [NAME]
See code: src/commands/env/set.ts
powerbot env:unset [NAME]
Removes selected environment data from system.
USAGE
$ powerbot env:unset [NAME]
See code: src/commands/env/unset.ts
powerbot help [COMMAND]
display help for powerbot
USAGE
$ powerbot help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
powerbot info
Shows informations about CLI and Powerbot CMS versions.
USAGE
$ powerbot info
See code: src/commands/info.ts
powerbot init [NAME] [VERSION]
Creates directory and initializes Powerbot CMS inside.
USAGE
$ powerbot init [NAME] [VERSION]
DESCRIPTION
As version you can use any release available on https://github.com/maxtomczyk/powerbot-cms/releases
ALIASES
$ powerbot create
See code: src/commands/init.ts
powerbot language:add [NAME] [LOCALE]
Creates new language and messages variants for new locale.
USAGE
$ powerbot language:add [NAME] [LOCALE]
DESCRIPTION
As locale you have to provide valid Facebook locale like en_US
See code: src/commands/language/add.ts
powerbot language:change [NAMEORLOCALETOCHANGE] [NEWLANGNAME] [NEWLANGLOCALE]
Changes languege into another.
USAGE
$ powerbot language:change [NAMEORLOCALETOCHANGE] [NEWLANGNAME] [NEWLANGLOCALE]
See code: src/commands/language/change.ts
powerbot language:default [LANGORLOCALE]
Sets passed language or locale as default.
USAGE
$ powerbot language:default [LANGORLOCALE]
See code: src/commands/language/default.ts
powerbot language:remove [NAMEORLOCALE]
Removes language support from your chatbot.
USAGE
$ powerbot language:remove [NAMEORLOCALE]
See code: src/commands/language/remove.ts
powerbot module [TYPE] [NAME]
Creates new component for CMS. Type paramter is view
or component
.
USAGE
$ powerbot module [TYPE] [NAME]
See code: src/commands/module.ts
powerbot setup
Runs setup procedure like database import etc.
USAGE
$ powerbot setup
See code: src/commands/setup.ts
powerbot sync:attachments [SOURCE] [TARGET]
Sync attachments table between two environments.
USAGE
$ powerbot sync:attachments [SOURCE] [TARGET]
See code: src/commands/sync/attachments.ts
powerbot sync:elements [SOURCE] [TARGET]
Sync static elements between two environments.
USAGE
$ powerbot sync:elements [SOURCE] [TARGET]
See code: src/commands/sync/elements.ts
powerbot sync:messages [SOURCE] [TARGET]
Sync messsages and related data between environments.
USAGE
$ powerbot sync:messages [SOURCE] [TARGET]
See code: src/commands/sync/messages.ts