Flexmonster CLI is a command-line interface tool for Flexmonster.
The CLI can:
To install Flexmonster CLI, you will need Node.js and npm. Get it here if it’s not already installed on your machine.
Then install Flexmonster CLI globally to use its commands on your computer:
npm install -g flexmonster-cli
Now a new flexmonster
command is available in the console. If needed, see troubleshooting.
flexmonster
command syntax:
flexmonster commandNameOrAlias [args] [options]
For example:
flexmonster create react es6 --install
This command creates a simple React + ES6 project with Flexmonster and installs all the npm dependencies. The command consists of the following parts:
flexmonster
— the executable used to run all the CLI commands.create
— the command name.react
— the first argument.es6
— the second argument.--install
(or -i
) — the option.Option names have the --
prefix (e.g., --install
), and option aliases are prefixed with -
(e.g, -i
). Command arguments are not prefixed (e.g., react
).
Flexmonster CLI has the following commands:
This section will help you get started with the CLI. If you have any issues when running the CLI commands, visit our troubleshooting page.
To see the CLI version, run the following command:
flexmonster version
Get the list of all the available commands and options with the help
command:
flexmonster help
To see the description, options, and usage examples for a particular CLI command, run the following command:
flexmonster commandNameOrAlias --help
To create and run a sample JavaScript project with Flexmonster, use the following CLI command:
flexmonster create javascript -r
The create command also allows setting up sample projects based on TypeScript or different front-end frameworks. See more details about the create command.
Install Flexmonster Pivot from npm with the add
command. Run this command inside your project:
flexmonster add js-flexmonster
The add
command can also download Flexmonster Data Server, Flexmonster Accelerator, or framework wrappers. Learn more about the add
command in the documentation.
Update Flexmonster Pivot with the update
command:
flexmonster update js-flexmonster
Framework wrappers and our additional tools (the Data Server and the Accelerator) can also be updated with the update
command. See the full description of this command.
If you have any issues when running the CLI commands, visit our troubleshooting page.
You may be interested in the following articles: