Provide a CLI tool for devops
balupton opened this issue · comments
Benjamin Lupton commented
Would be nice if there was a cli tool for this, so I could easily swap things out like:
env GOOGLE_OAUTH="$(cat ./.env/google-oauth.json | jq -c . | base64)" GOOGLE_SERVICE="$(cat ./.env/google-service.json | jq -c . | base64)" ts-node ./api/google.ts
now secret rm google-service && now secret add google-service "$(cat ./.env/google-service.json | jq -c . | base64)"
to
env GOOGLE_OAUTH="$(cat ./.env/google-oauth.json | jq -c . | base85 -e z85)" GOOGLE_SERVICE="$(cat ./.env/google-service.json | jq -c . | base85 -e z85)" ts-node ./api/google.ts
now secret rm google-service && now secret add google-service "$(cat ./.env/google-service.json | jq -c . | base85 -e z85)"