CLI Tool for P6 development
Installation
We assume you have pre-installed v8.0.0 or latest node.js.
For installing this package run the command:
With NPM:
npm install -g c6-cli
With Yarn:
yarn global add c6-cli
Throught Github:
- Clone this repository,
master
branch. - Open
Command Line
on source code folder root. - Run command
npm install -g ./
. - Locate
C:\Users\{{USER}}\AppData\Roaming\npm
and open filec6.cmd
. - Replace content with:
@IF EXIST "%~dp0\node.exe" ELSE
and wait until installation finish.
Getting Started
Run the command c6 --help
to see the available options:
Options: -V, --version output the version number -c --config <config> configuration file name. -cc --create-config executes configuration file generator. -s --subgenerator <subgenerator> execute a subgenerator directly. -h, --help output usage information
Running the command c6
without options will search for configuration file .c6-config.json
or execute the generator wizard by default:
? Generator Type: Application? Aplication Type: Enrollment Application? [app]: Write application name: app? [app]: Select the primary color of your app: > white blue red salmon pink purple orange
Subgenerators can be executed directly using the -s
or --subgenerator
option:
c6 -s application/site
Also create a configuration file using the option --create-config
:
c6 --create-config
this will create a file named .c6-config.json
in the execution path with the desired configuration.