Skip to content

Instantly share code, notes, and snippets.

@nazt
Created April 15, 2026 09:34
Show Gist options
  • Select an option

  • Save nazt/4a9183760aedb5c6cfaeb6f976d6d5d1 to your computer and use it in GitHub Desktop.

Select an option

Save nazt/4a9183760aedb5c6cfaeb6f976d6d5d1 to your computer and use it in GitHub Desktop.
token-cli: one-line install for any machine
#!/bin/bash
# token-cli installer — run on any machine with ghq, pass, and GPG set up
#
# curl -fsSL https://gist.githubusercontent.com/nazt/GIST_ID/raw | bash
#
set -euo pipefail
echo "🔐 Installing token-cli..."
# Clone via ghq
ghq get -u laris-co/token-oracle
# Install symlink
GHQ_ROOT=$(ghq root)
make -C "$GHQ_ROOT/github.com/laris-co/token-oracle" install
echo "✅ token-cli installed to ~/.local/bin/token-cli"
echo ""
echo "Commands:"
echo " token-cli tokens # list available tokens"
echo " token-cli use <n> # switch active token"
echo " token-cli scan # see who uses what"
echo " token-cli save # save .envrc to vault"
echo " token-cli load # restore .envrc from vault"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment