Skip to content

Instantly share code, notes, and snippets.

@nabsha
Created February 19, 2021 02:22
Show Gist options
  • Save nabsha/a98dc47fdfa2e2ba5ec6993aa6205201 to your computer and use it in GitHub Desktop.
Save nabsha/a98dc47fdfa2e2ba5ec6993aa6205201 to your computer and use it in GitHub Desktop.
#!/bin/sh
alias anypoint-cli='docker run --rm --name anypoint-cli -it integrational/anypoint-cli:3.0.0'
for env in TST SIT UAT PRD
do
echo "Environment is " $env
anypoint-cli --bearer $1 --organization $2 --environment $env --output text runtime-mgr cloudhub-application list
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment