Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Command Line Processor helps customer user to invoke OpsEra services through command line interface. This OpsEra CLI gives support for Creating, Executing OpsEra pipelines from customer’s user's local machine using YAML. Customers Users can download OpsEra CLI and able to install it in their local machine just like Maven & Antby hitting a simple npm command.

Package Prerequisites

  • Node should be installed on the Customer user’s machine to pull OpsEra CLI from NPM repository.

  • Customer User has to run the below command to make it work.

Code Block
npm installi @opsera/opsera-cli -g

OpsEra CLI Commands

Code Block
opsera --help
opsera --version

Configure

Code Block
opsera configure

Get Pipelines

Code Block
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

Code Block
opsera get tools
opsera get tools --out=<fileName>
opsera get tools -o=<fileName>
opsera get tools >> <fileName>

Run Pipeline

Code Block
opsera run pipeline --pipeline-id=<pipelineId>
opsera run pipeline -p=<pipelineId>

Stop Pipeline

Code Block
opsera stop pipeline --pipeline-id=<pipelineId>

opsera reset pipeline --pipeline-id=<pipelineId>

Status Pipeline

Code Block
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

Code Block
opsera summaryreset pipeline --pipeline-id=<pipelineId>

Summary

Code Block
opsera summary pipeline --pipeline-id=<pipelineId>
--out=<fileName>

opsera summary toolpipeline --toolpipeline-id=<toolId>
opsera summary tool --tool-id=<toolId> --<pipelineId> --out=<fileName>

opsera summary tool --tool-id=<toolId>
opsera summary tool --tool-id=<toolId> --out=<fileName>

Logs

Code Block
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>

...