Last active
September 25, 2020 22:34
-
-
Save ccavazos/eb9a0bafc8a49e0b275515d9f2f9c8b2 to your computer and use it in GitHub Desktop.
Cloud Pak Alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System: MacOS | |
# Shell: Zsh | |
# Load the Admin Password for Common Services in macOS clipboard | |
alias cspw='oc get secret -n ibm-common-services platform-auth-idp-credentials -o jsonpath="{.data.admin_password}" | base64 -d | pbcopy | echo "Password copied to clipboard"' | |
# Get Console URL | |
alias csurl='oc get route -n ibm-common-services cp-console -o jsonpath='{.spec.host}' && echo ""' | |
# Load the Licensing Token in macOS clipboard | |
alias cslicense='oc get secret ibm-licensing-token -o jsonpath={.data.token} -n ibm-common-services | base64 -d | pbcopy | echo "Password copied to clipboard"' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment