Plain HTML
Deploy a static HTML site to LeafCloud.
Requirements
Section titled “Requirements”No build tools, runtimes, or package managers are required. Any folder containing a root index.html can be deployed directly.
-
Create a project directory with an
index.htmlfile:Terminal window mkdir <project>cd <project>cat << 'EOF' > index.html<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Plain HTML</title></head><body><h1>Hello, LeafCloud!</h1></body></html>EOF -
No build configuration or build step is needed.
-
Preview the deployment:
Terminal window leaf deploy --dry-runExpected output:
Framework: static HTMLPackage manager: noneBuild command: noneOutput directory: .Files: 1Total size: 153 bytesDry run: nothing was uploaded.A real deploy replaces the final dry-run line with:
✓ Live at <url> (<files> files, <uploaded> uploaded)
What LeafCloud detects
Section titled “What LeafCloud detects”static HTML; build command none; ..
Common problems
Section titled “Common problems”No supported static-site framework detected. Use --dir to select a built output directory.— ensureindex.htmlexists in the directory whereleaf deployis run, or specify the folder with--dir <path>.
For agents
Section titled “For agents”Run leaf deploy --dry-run --json first.
Check the exit code and stop if the JSON contains "error".
After a successful dry run, run leaf deploy --json --yes.
Never print credentials.
Validated on 2026-10-23 with static HTML.