ZeroHost CLI
Privacy-first sharing from your terminal
npm install -g zerohost-cli
Since launching ZeroHost, we've heard from countless developers who love the privacy-first approach to text sharing but wanted something that fit seamlessly into their terminal workflows. Whether you're sharing build logs, debugging output, configuration files, or code snippets, copying and pasting into a web interface breaks your flow.
Today, that changes. The ZeroHost CLI brings all the power of ephemeral, secure sharing directly to your command line.
Why We Built a CLI Tool
Developer workflows live in the terminal. When you need to share error logs with a teammate, show build output to a client, or pass configuration examples to a contractor, the last thing you want is to interrupt your flow by switching to a browser.
Traditional sharing platforms compound the problem:
- Pastebin: Cluttered with ads, no privacy guarantees
- GitHub Gist: Tied to GitHub, public by default
- Slack/Discord: Creates permanent searchable history
- Email: Leaves audit trails and forwarding chains
The ZeroHost CLI solves this with privacy-first sharing that integrates naturally into your existing terminal workflows.
Lightning Fast Terminal Integration
Share anything from your terminal in seconds:
# Share text directly
zerohost "Hello, world!"
# Share a file
zerohost --file config.json
# Share command output (the most powerful feature)
ls -la | zerohost --expires 1h
npm run build 2>&1 | zerohost --burn
git diff | zerohost --password review
# Interactive mode with your editor
zerohost --interactive
Privacy by Design
Just like our web service, the CLI follows our zero-data retention philosophy:
- Automatic Expiry: Content disappears after 1 hour to 30 days
- No Permanent Storage: No backups, no logs, no audit trails
- Burn After Reading: Self-destruct after first view
- Password Protection: Encrypt sensitive content
- No Analytics: We don't track what you share
Developer-Friendly Features
Built for developers, by developers:
Syntax Highlighting: Automatic detection of file types for proper syntax highlighting in the browser.
Flexible Expiry: Choose from 1 hour to 30 days (Developer plan includes extended options).
QR Codes: Generate QR codes for easy mobile sharing with --qr
.
Clipboard Integration: Auto-copy URLs to clipboard with --copy
.
Smart File Detection: Automatically detects file types for optimal display.
Real-World Use Cases
For Developers
- Debug Sharing:
npm run build 2>&1 | zerohost --expires 1d
- Code Reviews:
git diff | zerohost --password review --expires 2h
- Configuration:
zerohost --file .env.example --expires 1h
- Error Logs:
tail -100 error.log | zerohost --burn
For DevOps Engineers
- System Diagnostics:
uname -a | zerohost
- Container Logs:
docker logs container-name | zerohost --expires 6h
- Performance Data:
top -n 1 | zerohost --password ops
- Network Config:
ifconfig | zerohost --burn
For System Administrators
- Process Monitoring:
ps aux | grep nginx | zerohost
- Disk Usage:
df -h | zerohost --expires 1d
- Security Audits:
zerohost --file audit-report.txt --password security
Getting Started
Installation
Installing ZeroHost CLI is as simple as any npm package:
# Install globally
npm install -g zerohost-cli
# Or use without installing
npx zerohost-cli "Hello, world!"
# Verify installation
zerohost --version
Basic Usage
Start sharing immediately with the free tier (2 shares per day):
# Share simple text
zerohost "This message will self-destruct in 24 hours"
# Share with custom expiry
zerohost "Quick update" --expires 1h
# Share a file
zerohost --file README.md
# Pipe command output
echo "Hello from $(hostname)" | zerohost
Developer Features
Authenticate with your ZeroHost Developer account for API access and advanced features:
# Login with your API key
zerohost --login
# Check your status
zerohost --config
# Now use Developer features
zerohost --file secret.txt --password mypass --expires 7d --burn
Developer
For developers & automation workflows
- ✓ Everything in Pro
- ✓ Full API access (1000/day)
- ✓ CLI tool authentication
- ✓ Priority support
- ✓ CI/CD integrations
Integration Examples
CI/CD Pipelines
Share build artifacts and logs automatically:
# GitHub Actions
- name: Share Build Log on Failure
if: failure()
run: |
npm run build 2>&1 | zerohost --expires 24h --password "build-${{ github.run_number }}"
# GitLab CI
script:
- npm test 2>&1 | zerohost --expires 1d || true
Development Workflows
Integrate into your daily development routine:
# Share git patches
git format-patch HEAD~1 --stdout | zerohost --expires 2h
# Share database dumps (anonymized)
mysqldump --no-data mydb | zerohost --password schema
# Share performance profiles
node --prof app.js && node --prof-process *.log | zerohost --burn
Security and Compliance
ZeroHost CLI provides automatic compliance with data protection regulations:
- GDPR: No personal data retention beyond necessity
- SOX: Eliminates permanent audit trails of sensitive data
- HIPAA: Ensures healthcare data doesn't persist inappropriately
Unlike traditional sharing platforms, ZeroHost CLI enforces data minimization principles architecturally. Content is designed to disappear, not accumulate.
Try It Today
Ready to streamline your workflow with privacy-first sharing? Install ZeroHost CLI today:
Get Started with ZeroHost CLI
npm install -g zerohost-cli
Free tier: 2 shares/day • Developer plan: API access from $19/month
Sign Up for Developer Access