kolony-cli v0.0.11
kolony-cli
Provides a command line interface to manage KolonyIO projects
Project Specific Commands
kolony envDisplayes infos about the current KolonyIO installkolony listProjects Inventory; Lists all KolonyIO projects defined and registered on your systemkolony create projectName /project/PathCreate a blank KolonyIO project at the desired path. where:projectName- name of the new projectprojectPath- target pathYou will be asked if you would like to use a git repository with the project. If yes, please specify a git repository in the following format:
git@github.com:[GitHubUser]/[projectName].gitkolony add /project/PathAdd Existing Project To Inventory Use this to add a KolonyIO project you created without using thekolony-cli
Module Specific Commands
Module Creation
kolony createModule moduleName [-p projectName]
- creates a new KolonyIO module in the specified project;
- if
-p | --projectis specified, the current working path will be used if a valid KolonyIO project as the target for the module
Module Instalation
kolony installModule moduleName moduleRepository [-p projectName]
- install a kolony module in the specified project.
if no
-p|--projectis specified the current working path will be used if it's a valid KolonyIO project.Usage Example:
kolony installModule git@github.com:KolonyIO/kolony-module-users.git -p testinstall a module by giving it's full git repository pathkolony installModule kolony-module-usersinstall a module by it's name; this will fetch allnpm,githubandbitbucketrepositories that match the module name; (forbitbucketfetching seebitbucket integrationsection bellow.kolony installModule kolonyinstall a module by searching though available npm packages / github / bitbucket repositories that contain the 'kolony' string; Please note that if you usekolony installModule kolony-moduleyou can narrow down the modules / repos listed to a more accurate list
Model Creation
kolony [-p projectName] -m moduleName createModel modelName(details in Archidecture section of wiki - TODO!!!)
Controller Creation
kolony [-p projectName] -m moduleName createController controllerName modelName
Custom API Endpoint Creation
kolony [-p projectName] -m moduleName createApi apiName controllerName modelName
Extending an Existing Module
kolony [-p projectName] newModuleName extendModule [sourceModuleName] [sourceModuleGitRepo]
TODO (future commands)
Project Commands
kolony remove projectNamekolony info projectNamekolony status projectNamekolony update projectName [-r|--recorsive]kolony start|stop|restart|logs projectName --kolony kolonyName --container containerName
Module Commands
kolony [-p projectName] -m moduleName extendModel modelNamekolony [-p projectName] -m moduleName extendController controllerNamekolony [-p projectName] -m moduleName extendApi apiName
Manager Commands
kolony manager status|start|stop|restart projectName [--port managerPort]kolony manager web projectName