@opsera/opsera-cli
v0.1.4
Published
Command Line Processor (opsera-cli) helps customer to invoke OpsEra services through command line interface. This OpsEra CLI gives support for Creating, Executing OpsEra pipelines from customer’s local machine using YAML. Customers can download OpsEra CLI
Downloads
9
Readme
Opsera Command Line
Opsera Inc
Description
Opsera Command Line (opsera-cli) helps customer to invoke Opsera services through command line interface. This Opsera CLI provides support for Creating, Executing Opsera pipelines from customer’s local machine using YAML. Users can download Opsera CLI and able to install it in their local just by hitting simple npm command
Prerequisites
Node should be installed on the User's machine to pull Opsera CLI from NPM repository.
User has to run the below command to get this installation done.
npm i @opsera/opsera-cli -g
Commands
Commands that are available as part of opsera-cli listed below. Also, the user can hit help command to know all possible commands and its arguments.
opsera -h
opsera --help
Configure
opsera configure
Get Pipelines
opsera get pipelines
opsera get pipelines --out=<fileName>
opsera get pipelines --out <fileName>
opsera get pipelines -o=<fileName>
opsera get pipelines -o <fileName>
opsera get pipelines >> <fileName>
Get Tools
opsera get tools
opsera get tools --out=<fileName>
opsera get tools -o=<fileName>
opsera get tools >> <fileName>
Run Pipeline
opsera run pipeline --pipeline-id=<pipelineId>
opsera run pipeline -p=<pipelineId>
Stop Pipeline
opsera stop pipeline --pipeline-id=<pipelineId>
Status Pipeline
opsera status pipeline --pipeline-id=<pipelineId>
opsera status pipeline --pipeline-id=<pipelineId> --run-count=<runCount>
opsera status pipeline -p=<pipelineId>
opsera status pipeline -p=<pipelineId> -c=<runCount>
Reset Pipeline
opsera reset pipeline --pipeline-id=<pipelineId>
Summary
opsera summary pipeline --pipeline-id=<pipelineId>
opsera summary pipeline --pipeline-id=<pipelineId> --out=<fileName>
opsera summary tool --tool-id=<toolId>
opsera summary tool --tool-id=<toolId> --out=<fileName>
Logs
opsera logs pipeline --pipeline-id=<pipelineId>
opsera logs pipeline --pipeline-id=<pipelineId> --run-count=<runCount>
opsera logs pipeline --pipeline-id=<pipelineId> --run-count=<runCount> --out=<fileName>