Prerequisites
Make sure you have Sher installed. If not, see the installation guide.Deploy Your First Project
Navigate to your project
Open your terminal and navigate to any frontend project directory:Sher works with Vite, Next.js, Astro, Create React App, and any project that produces static output.
Run sher link
Run the deploy command:Sher will automatically:
- Detect your framework (e.g., Vite, Next.js)
- Detect your package manager (npm, yarn, pnpm, bun)
- Run your build script (
npm run build) - Collect and upload your build output
- Return a shareable URL
Understanding the Output
When you runsher link, you’ll see:
- framework - Auto-detected framework (Vite, Next.js, Astro, etc.)
- building - The build command that’s running (e.g.,
npm run build) - files - Number of files and total size uploaded
- URL - Your shareable preview URL (copied to clipboard)
- expires - When the link will stop working
If you’re not logged in, you’ll see a tip recommending
sher login for longer links and higher rate limits.Authenticate for Higher Limits
Without authentication, you’re limited to 1 link per day with a 6-hour expiration. To unlock the Starter tier (free):- 25 links per day (up from 1)
- 24-hour expiration (up from 6 hours)
- 50 MB max upload size (up from 10 MB)
- Ability to list and delete deployments
Common Options
Skip the Build Step
If your project is already built, skip the build step:dist/ or build/ directory without rebuilding.
Share a Specific Directory
Upload a specific directory instead of auto-detecting the output folder:Set Link Expiration
Control how long your link stays active (in hours):- Free: 6 hours
- Starter: 24 hours
- Pro: 168 hours (7 days)
Password Protection (Pro)
Protect your preview with a password:Managing Deployments
List Active Deployments
See all your active preview links:The 🔒 icon indicates password-protected links.
Delete a Deployment
Remove a deployment before it expires:a8xk2m1p from https://a8xk2m1p.sher.sh).
Example Workflow
Here’s a typical workflow for sharing work in progress:Troubleshooting
”Rate limit reached”
You’ve hit your daily deployment limit. Runsher login to increase it to 25/day, or sher upgrade for 200/day.
”Build output is too large”
Your build exceeds the size limit for your tier:- Free: 10 MB
- Starter: 50 MB
- Pro: 100 MB
sher upgrade to increase your limit, or optimize your build output (remove source maps, compress assets).
”Command not found: sher”
Sher is not installed or not in your PATH. Reinstall with:Next Steps
Commands Reference
Explore all available commands and options
Configuration
Learn how to customize Sher for your project
Self-Hosting
Deploy your own Sher instance on Cloudflare
GitHub
View the source code and contribute