CLI tool to create persistent environment variables for shell scripts
deno install -A -f -n shenv --location=https://github.com/kstdx/shenv https://raw.githubusercontent.com/kstdx/shenv/main/main.js
1. Get value from key
shenv KEY_NAME
2. Set value with key
shenv --set --key=KEY_NAME --value="[value]"
3. Delete value from key
shenv --delete --key=KEY_NAME
4. List all items
shenv --list
Use with deployctl
Set token:
shenv --set --key=DEPLOY_TOKEN --value="[token value]"
Deploy:
deployctl deploy --token=$(shenv DEPLOY_TOKEN) --project main.ts