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

https://www.npmjs.com/package/@opsera/opsera-cli