Flexmonster CLI is a command-line interface tool for Flexmonster. The CLI can:
Install Flexmonster CLI globally using the following command:
npm install -g flexmonster-cli
Now the flexmonster
command is available in the console.
If you encounter any errors, see troubleshooting.
The flexmonster
command syntax is the following:
flexmonster { create | add | update | version | help } [args] [options]
Check out an example:
flexmonster create react es6 --run
This command creates and runs a sample React + ES6 project with Flexmonster. The command consists of the following:
flexmonster
— the executable used to run all the CLI commands.create
— the command name. See the list of available commands.react
— the first argument. Each command has its own list of arguments.es6
— the second argument.--run
(or -r
) — the option. Each command has its own list of options.Option names have the --
prefix (e.g., --run
), and option aliases are prefixed with -
(e.g., -r
). Command arguments are not prefixed (e.g., react
).
Command | Alias | Description |
---|---|---|
create | c | Creates a sample project with Flexmonster based on a chosen language and framework. |
add | a | Downloads Flexmonster Pivot, its framework wrappers, Flexmonster Data Server, theme builder, or Flexmonster Accelerator. |
update | u | Updates Flexmonster Pivot, its framework wrappers, Flexmonster Data Server, or Flexmonster Accelerator. |
version | v | Outputs the Flexmonster CLI version and notifies about CLI updates (if any). |
help | h | Provides help on the available commands and options. |
If you have any issues when running the CLI commands, visit our troubleshooting page.