The CLI for secure secret sharing that teams actually use
Encrypt client-side, share links, or deliver one-time secrets — all from your terminal. Built for devs, audited for security, priced for teams.
Install & Get Started
npm i -g envshareapp
envshareapp command for immediate use.npx envshareapp upload .env
docker run -p 3000:3000 yocyber/envshareapp
Prerequisites & Environment
Required tools
- Node.js (recommended ≥ 16)
- npm / npx (bundled with Node.js)
- Docker (for self-hosting)
- git (optional, for development)
Environment variables
Set these when running the CLI in production or pointing to a custom instance.
export ENVSHARE_API_KEY="env_your_key_here" export ENVSHARE_API_URL="https://envshare.app/api/secrets" export ENVSHARE_BASE_URL="https://envshare.app"
$Env:ENVSHARE_API_KEY = 'env_your_key_here' $Env:ENVSHARE_API_URL = 'https://envshare.app/api/secrets' $Env:ENVSHARE_BASE_URL = 'https://envshare.app'
Quick examples
Pipe a secret (one-time link)
echo "MY_SUPER_SECRET" | npx envshareapp upload --expires 1 --views 1
Common for sharing tokens or keys quickly. The CLI outputs a share URL and copies it to your clipboard.
One-liner (curl) — optional
Zero-install convenience for one-off shares. We recommend using the NPX CLI when you need zero-knowledge client-side encryption.
echo "MY_SUPER_SECRET" | bash -c "$(curl -fsSL https://envshare.app/share.sh)"
Download and review the script, then execute locally:
curl -fsSL https://envshare.app/share.sh | sed -n '1,200p' curl -fsSL https://envshare.app/share.sh -o share.sh && less share.sh # then run: bash share.sh
Tip: For self-hosted/staging set ENVSHARE_HOST to your instance so the script posts to the right API.
Upload a file (Pro / Team)
envshareapp upload credentials.json --expires 24 --views 3
Binary/file attachments require a paid plan. The CLI detects non-text uploads and will prompt to upgrade if needed.
Password-protect a secret (Pro)
envshareapp upload .env --password "S3cretPass"
The recipient must enter the password to decrypt the secret locally.
CI example (GitHub Actions)
# .github/workflows/share.yml
env:
ENVSHARE_API_KEY: ${{ secrets.ENVSHARE_API_KEY }}
steps:
- run: npx envshareapp upload ./build/credentials.json --expires 24 --views 1Use repository secrets to keep your API key safe.
Docs & Support
- CLI Guide — full usage, options, and examples.
- SDKs — Node, Python, Go clients and examples.
- Pricing — plan limits for file attachments and team features.
- Self-hosting — deployment, Docker images, and configuration.
Security-first
Client-side AES‑GCM encryption; keys stay in the URL fragment. Zero-knowledge by design.
Developer friendly
Pipe support, CI integration, and programmatic SDKs for automation.