CliQr is now part of Cisco Learn More About Cisco

Sample CLI Command Usage

Delete the Last three Stopped Jobs

Use this command to retrieve the last 3 jobs displaying the Stopped status and delete them.

$ rerun jobs-get --job-status Stopped --number 3 | rerun jobs-delete

Display the Service ID in Steps

Issue the first command to retrieve the Service ID of the service for which the images need to be listed.

Issue the second command to list the images for the specified service.

$ id=$(jq -r '.id' < (rerun cliqr: services-get --service-name tomcat7))
$ rerun cliqr: images-get --service-id $id

Display the Service ID using One Command

Issue a single command to retrieve the specified service.

$ rerun cliqr: images-get --service-id $(jq -r '.id' <(rerun cliqr: services-get --service-name tomcat7))

Export a Specific Application in Steps

Issue the first command to retrieve the Application ID of the latest running job

Issue the second command to exports the specified application.

$ id=$(jq -r '.appId' < (rerun cliqr: jobs-get --job-status Running --number 1)) 

$ rerun cliqr: apps-export --app-id $id

Export a Specific Application using One Command

Issue a single command to export the specified application.

$ rerun cliqr: apps-export --app-id $(jq -r '.appId' <(rerun cliqr: jobs-get --job-status Running --number 1))
  • No labels