The Fastest Way to Share Secrets: Master the Curl One-Liner
Sometimes, opening a browser is too slow. Sometimes, you're deep in a remote SSH session and need to send a log file or a password to a teammate.
That's why we built the EnvShareApp Curl One-Liner. It's a zero-installation, terminal-first way to share secrets instantly. And today, it just got a major upgrade.
What's New?
We've refactored the underlying script to be more than just a pipe—it's now a mini CLI that lives in one command.
Custom Expiry
Set TTL via flags. Use --expiry 1h or --expiry 168h for week-long shares.
View Limits
Control how many times a link can be opened. Just add --views 10 to your command.
Auto-Clipboard
On macOS and Linux, the generated link is automatically copied to your clipboard.
Positional Args
No need to pipe. You can now pass the secret directly: share.sh "hello".
Advanced Examples
1. Setting a View Limit
Need to share a secret with a small team? Give it 5 views so everyone can grab it once.
2. Long-term Document Sharing
If you need the link to stay alive for a week, use the expiry flag.
Security Note
While the One-Liner is designed for extreme convenience, we use server-side encryption for this specific flow to keep the script lightweight. For Zero-Knowledge client-side encryption, we always recommend using our NPX CLI.
Safety tip: download and inspect the script before piping it to bash.
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
Conclusion
The goal of EnvShareApp is to remove friction from security. By enhancing our Curl One-Liner, we're making it easier than ever to do the right thing—share secrets securely, even when you're in a rush or working purely in the CLI.