# statice > statice turns a folder of static files into a live website with one command. There is no account, no project setup and no config file. Every deploy gets a permanent URL derived from the files, and a short name can sit on top of it. This file is for AI coding agents deploying a project on a person's behalf. The full reference is at https://statice.run/docs/. ## Before you start - The CLI is `npx @statice/cli` (Node 18 or newer, nothing to install). Below, `statice` is short for that. - An access key must already be stored on the machine, in `~/.statice/key`, or passed as the `STATICE_KEY` environment variable. Keys are issued by a person: if there is none, tell the user to email access@statice.run and then run `npx @statice/cli key`. You cannot obtain one yourself. - statice serves static files only. There is no server-side code, no build step and no environment variables at serve time. ## Deploying 1. If the project has a build step, run it, and work in the output folder (usually `dist`, sometimes `build` or `out`). Deploying the project root publishes the source instead of the site; the CLI warns when it sees a `package.json` beside a built `dist/`. 2. Run `statice --dry-run`. It lists exactly what would be published and sends nothing. Read the list. 3. Run `statice --name "project name"`. It prints the live URL on the last line, after `→`. 4. To update later, run plain `statice` in the same folder. The folder remembers its name in a `.statice` file. ## What you must know - **Links are permanent.** A deploy's hash URL cannot be edited or unpublished, and there is no delete command. Do not deploy anything that looks like a secret; if the dry-run list contains one, stop and ask the user. - **There is no confirmation without a terminal.** Run interactively, the first deploy from a folder asks before publishing. Run by an agent, it prints the list and proceeds. The dry run is your check. - **It does not read `.gitignore`.** Everything in the folder with a web file type goes up, except `.git`, `node_modules`, dot-directories and symlinks. A dot-file with an admitted extension, such as `.env.local.json`, is published like any other file. - **Unknown file types are left out**, and named in the output as "not an admitted type". If the site needs one of them, it will be missing. - **No fallback routing.** A path ending in `/` serves `index.html`; there is no `404.html` and no single-page-app fallback. Route in the browser from `index.html`. ## File types HTML, CSS, JavaScript, JSON, WebAssembly, sourcemaps, images, fonts, audio, video, PDF, text, XML, SVG and Markdown. For 3D scenes built with three.js, WebGPU or similar: `.glb` `.gltf` `.bin` `.obj` `.mtl` `.fbx` `.stl` `.ply` `.usdz` `.vrm` `.hdr` `.exr` `.ktx2` `.basis` `.dds` `.tga` `.drc` `.splat` `.ksplat` `.spz` `.wgsl` `.glsl` `.vert` `.frag`. Not admitted: `.ts` `.tsx` `.jsx` `.yml` `.toml` `.sql` `.sh` `.py` `.pem` `.key`, and files with no extension. ## Limits - 64 MB per file - 512 MB per deploy - 1,000 files per deploy ## Other commands - `statice --name` with no value names the site after the folder. - `statice --isolated` deploys with cross-origin isolation, which threaded WebAssembly and `SharedArrayBuffer` need (some physics engines, Godot and Unity exports). - `statice --verify` re-uploads every file; use it when a deployed site looks broken. - `statice names` lists the names held on this machine. - `statice retire` takes this folder's name out of service. The permanent hash URLs stay up. - `statice domain app.example.com` puts the site on a domain the user owns. ## Exit codes `0` when what was asked for happened, `1` otherwise. An unknown flag is refused, never treated as a deploy. ## Links - [Reference](https://statice.run/docs/): every command, file, limit and serving rule - [npm package](https://www.npmjs.com/package/@statice/cli)