0.4.1 • Published 7 years ago
c6-cli v0.4.1
C6 CLI

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-cliWith Yarn:
yarn global add c6-cliThrought Github:
- Clone this repository,
masterbranch. - Open
Command Lineon source code folder root. - Run command
npm install -g ./. - Locate
C:\Users\{{USER}}\AppData\Roaming\npmand open filec6.cmd. - Replace content with:
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\c6-cli\index.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\node_modules\c6-cli\index.js" %*
)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 informationRunning 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: (Use arrow keys)
> white
blue
red
salmon
pink
purple
orange
(Move up and down to reveal more choices)Subgenerators can be executed directly using the -s or --subgenerator option:
c6 -s application/siteAlso create a configuration file using the option --create-config:
c6 --create-configthis will create a file named .c6-config.json in the execution path with the desired configuration.