0.2.0 • Published 9 months ago
@revong/cli v0.2.0
npm i -g @revong/cli
For usage use:
revong -h
-V, --version output the version number
-config, --config [details...] Create configuration for given details <instance> <api-key> <api-secret>.
-instance, --instance <instance> Set default instance for calls.
-logic-create, --logic-create [details...] Create logic to remote from given <path> with syntax: "prefix/category/name/suffix compiler
active|inactive type", ideally it shuld be created using UI or modfied in UI after creation.
-logic-pull, --logic-pull [logicId...] Pull one or more logics by their unique logicId [logicId...].
-logic-pull-all, --logic-pull-all Pull all logics from instance.
-logic-push, --logic-push <path> Push logic to remote from given <path>.
-logic-push-all, --logic-push-all Push logics to remote.
-logic-debug, --logic-debug [config...] Debug logic from [config...].
-logic-validate, --logic-validate <path> Validate elements for given <path> (use it after modifying logic.json).
-logic-sync, --logic-sync <path> Sync elements for given <path> (use it after modifying logic.json), it will re-create element"s and
flag deleted/unused ones.
-logic-sync-all, --logic-sync-all Sync elements for all presented logics.
-h, --help display help for command display help for command
Sample config:
{
"f1703c23-5e47-4e7a-******-*********": {
"key": "******-******-******-******",
"url": "https://api.revong.com/api",
"secret": "*********************************************",
"default": true
}
}
Can also define env variables if you don't want to use config.json:
export INSTANCE=f1703c23-5e47-4e7a-******-*********
export API_KEY=******-******-******-******
export API_SECRET=*********************************************
export REVO_URL= *********************************************
revong.com