Skip to content

rollout-run/cli

Rollout CLI

A powerful CLI tool for deploying static sites to rollout.run - the fastest way to deploy and host your static websites.

πŸš€ Features

  • One-Command Deployment: Deploy with just rollout (deploy is the default action)
  • Beautiful Status Dashboard: Visual project status with real-time information
  • Deployment History: Track all deployments in a clean table format
  • Project Management: Create and manage multiple projects
  • Automatic Subdomains: Each project gets a unique subdomain on rollout.run
  • Real-time Data: All data fetched from API - no local file management
  • Heroku-style Naming: Auto-generated project names with memorable slugs
  • Cloudflare Integration: Powered by Cloudflare R2 and Workers for global performance

πŸ“¦ Installation

npm install -g @rollout-run/cli

🎯 Quick Start

  1. Login to your account:

    rollout login
  2. Deploy your static site:

    rollout
    # or explicitly:
    rollout deploy
  3. Check your deployment status:

    rollout status
  4. View deployment history:

    rollout history

πŸ“‹ Commands

rollout / rollout deploy

Deploy your static site to rollout.run

# Deploy current directory (default action)
rollout

# Deploy specific folder
rollout deploy ./dist

# Deploy with project name
rollout deploy --project my-awesome-site

Options:

  • -p, --project <name> - Project name (auto-generated if not provided)

rollout status

Show current project status and latest deployment information

# Basic status
rollout status

# Detailed status with recent deployments
rollout status --verbose

Features:

  • πŸ“Š Beautiful card-based layout
  • 🎨 Color-coded status indicators
  • πŸ“ˆ Real-time deployment data
  • πŸš€ Quick action suggestions

rollout history

View deployment history in a clean table format

# Show last 10 deployments
rollout history

# Show more deployments
rollout history --limit 20

Features:

  • πŸ“œ Clean table format with status indicators
  • πŸ“Š File count and size information
  • πŸ”— Deployment URLs
  • ⏰ Deployment timestamps

rollout list

List all your projects

rollout list

rollout login

Authenticate with your rollout.run account

rollout login

rollout register

Create a new rollout.run account

rollout register

rollout logout

Sign out of your account

rollout logout

🎨 Visual Features

Status Command

The rollout status command provides a beautiful dashboard with:

  • Project Information Card: Clean bordered display of project details
  • Latest Deployment Card: Color-coded status with deployment metrics
  • Recent Deployments Table: (with --verbose) Shows recent deployments in a table
  • Quick Actions: Helpful command suggestions

History Command

The rollout history command displays deployments in a professional table format:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Versionβ”‚ Status     β”‚ Date               β”‚ Files  β”‚ Size       β”‚ URL                                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 3      β”‚ βœ… Success β”‚ 12/15/2024 2:30:15 β”‚ 12     β”‚ 1.2 MB     β”‚ https://my-project.rollout.run           β”‚
β”‚ 2      β”‚ βœ… Success β”‚ 12/15/2024 1:45:22 β”‚ 10     β”‚ 980 KB     β”‚ https://my-project.rollout.run           β”‚
β”‚ 1      β”‚ βœ… Success β”‚ 12/15/2024 1:20:10 β”‚ 8      β”‚ 756 KB     β”‚ https://my-project.rollout.run           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”§ Configuration

The CLI automatically creates a .rollout directory in your project with:

  • config.json - Project configuration and tracking

No local deployment files are stored - all data is fetched from the API in real-time.

🌐 Project URLs

Your deployed sites will be available at:

  • https://your-project-slug.rollout.run

πŸš€ Performance

Rollout is powered by:

  • Cloudflare R2: Global object storage
  • Cloudflare Workers: Edge computing for instant deployments
  • Cloudflare CDN: Global content delivery network

πŸ“ Examples

Deploy a React App

# Build your React app
npm run build

# Deploy the build folder
rollout deploy ./build

Deploy a Vue.js App

# Build your Vue app
npm run build

# Deploy with custom project name
rollout deploy ./dist --project my-vue-app

Check Deployment Status

# Quick status check
rollout status

# Detailed status with history
rollout status --verbose

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ†˜ Support


Made with ❀️ by the Rollout team

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published