Skip to content

Instantly share code, notes, and snippets.

@akrabat
Last active March 9, 2017 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akrabat/17aff266c7778b83f2bbd5acf2b28569 to your computer and use it in GitHub Desktop.
Save akrabat/17aff266c7778b83f2bbd5acf2b28569 to your computer and use it in GitHub Desktop.
Swap OpenWhisk credentials
# OpenWhisk
function owibm() {
wsk property set --apihost openwhisk.ng.bluemix.net --auth {auth key here}
wsk property unset --namespace
}
function owlocal() {
(
cd ~/Projects/openwhisk/openwhisk/tools/vagrant && \
wsk -i property set --apihost http://192.168.33.13:10001 --auth `vagrant ssh -- cat openwhisk/ansible/files/auth.guest` && \
wsk property unset --namespace
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment