Command Line Processor Via local CLI
Â
Command Line Processor helps user to invoke OpsEra services through command line interface. This OpsEra CLI gives support for Creating, Executing OpsEra pipelines from user's local machine using YAML. Users can download OpsEra CLI and able to install it in their local machine just by hitting a simple npm command.
Â
Package Prerequisites
Node should be installed on user’s machine to pull OpsEra CLI from NPM repository.
User has to run the below command to make it work.
npm i @opsera/opsera-cli -g
Commands
opsera --help
opsera --version
Configure
opsera configure
Get Pipelines
Get Tools
Run Pipeline
Stop Pipeline
Status Pipeline
Reset Pipeline
Summary
Logs
Â
OpsEra Help Command
This command helps to see the list of available options and its usage
Â
OpsEra Version Command
Helps to see the current version of CLI
Â
OpsEra Configure Command
This command helps to set Access token in users machine and it will be used for Authentication during command executions similar to AWS CLI. We can also set workspace as YAML files location by default it takes current working directory as workspace.
Also, we can update by executing the same command.
OpsEra config file created under users and we manually also can make an entry instead of calling configure Command.
Â
OpsEra Create Command
This command helps to create pipelines by reading pipeline.yaml file from the workspace. Just like set config command here also YAML parser service has to be called before making node call for field validation and YAML conversion.
Headers
Authorization: <OpsEra Access Token>
Payload
Â
Other Pipeline Commands
These commands will make corresponding call to node to get, run, reset, stop, summary & logs of a pipeline.
Â
Related Links