Quickstart
Deploy your first static website to LeafCloud in three quick steps.
Step 1: Install the CLI
Section titled “Step 1: Install the CLI”Install leaf on your system:
# macOS and Linuxcurl -fsSL https://leafcloud.in/install.sh | shFor Windows PowerShell:
irm https://leafcloud.in/install.ps1 | iexVerify that the CLI is ready:
leaf --versionStep 2: Sign in
Section titled “Step 2: Sign in”Authenticate leaf with your account:
leaf loginFollow the prompt in your browser to approve the session. When finished, test your authentication:
leaf whoamiIf you have an invite code, run leaf invite <code>.
Step 3: Deploy your site
Section titled “Step 3: Deploy your site”Navigate to your web project directory (Astro, Vite, Next.js static export, Hugo, or plain HTML):
cd my-websitePreview with dry run (recommended)
Section titled “Preview with dry run (recommended)”Before uploading, you can inspect what leaf detects and builds:
leaf deploy --dry-runExpected output:
Framework: AstroPackage manager: npmBuild command: npm run buildOutput directory: distFiles: 3Total size: 1716 bytesDry run: nothing was uploaded.Deploy to LeafCloud
Section titled “Deploy to LeafCloud”When you are ready, deploy your site:
leaf deployCreate a site before deploying. leaf sites create suggests available names, or set site = "<name>" in a leaf.toml file in your project:
leaf sites createWith no site configured or available, leaf deploy prints Create a site or set site = "name" in leaf.toml before deploying. If multiple sites are available, it prints Set site = "name" in leaf.toml to choose a deployment target.
✓ Live at https://my-website.leafcloud.app (3 files, 1716 uploaded)Your site is instantly accessible across edge locations in Bengaluru and Delhi with automatic HTTPS.