<- All updates

CLI

Flat CLI is here

Publish a folder or file from your terminal and get an immutable onflat.page URL.

Released
Area
CLI

Flat now has a CLI. Give it your build folder and it returns a public HTTPS URL:

npx @getflat/cli deploy ./dist

The CLI walks the folder, uploads each regular file, and keeps its relative path. It works with Vite, Astro, Hugo, plain HTML, or anything else that produces static files.

Each deployment gets a new immutable URL. Launch limits are 1,000 files and 5 MB per deployment.

The npm package includes native binaries for macOS, Linux, and Windows on x64 and arm64. Use it through npx, or install it globally if you deploy often:

npm install --global @getflat/cli
getflat deploy ./dist

flat works as a shorter command name. The package moved from getflat to @getflat/cli on July 21.