Skip to main content
bunny sites is in Public Preview and available only in the Bunny CLI. It’s in active development, so commands, flags, and behaviour may change. Share feedback on Discord. The storage zone and pull zone behind each site appear in the dashboard under Storage and CDN.
bunny sites deploys static sites and single-page apps. A site is a storage zone that holds your deploys and a pull zone that serves the live one. The CLI detects your framework, runs the build, and uploads the output. See the framework guides for per-framework setup. Most subcommands default to the site linked in .bunny/site.json. Pass a site name or storage zone ID, or --site <name>, to target another site.

bunny sites create

Create a site and link the current directory to it.
The storage zone, pull zone, and b-cdn.net subdomain are named sites-<name>-<suffix>. In a GitHub repository, the CLI offers to set up GitHub Actions deploys.

bunny sites deploy

Upload a directory and publish it as the live site.
The directory defaults to sites.dir in bunny.jsonc, then the detected framework’s output directory, then the current directory. Unchanged content is skipped. Each deploy is stored under its own ID (the git commit SHA or a content hash), so you can publish any earlier deploy again without uploading it. Each deploy is a full copy of your site in the storage zone, billed as storage until it’s deleted. After publishing, bunny sites deploy prunes older deploys and keeps the live and previous ones, so rollback stays instant. Set sites.keep in bunny.jsonc to keep the newest N deploys instead, or "all" to keep every deploy.
Prune deploys you no longer need. Sites created before automatic pruning keep every deploy until you opt in: run bunny sites deploy in a terminal and accept the prompt, or set sites.keep in bunny.jsonc. Deploys from CI don’t prune a site that hasn’t opted in. To clear old deploys right away, run bunny sites deployments prune.Large static assets, such as images and downloads, are stored again in every deploy. Keep them in a separate storage zone and link to them from your site, so each deploy stores only your build output. Host videos in Bunny Stream instead of your site.

bunny sites deployments

List, publish, prune, and delete deploys.
Without --keep, prune uses sites.keep from bunny.jsonc, then the site’s saved setting. It always keeps the live and previous deploys.

bunny sites ci init

Add a GitHub Actions workflow at .github/workflows/bunny-sites.yml that deploys the site on every push to main. The workflow can also be run by hand from the Actions tab.
The workflow reads your API key from a BUNNYNET_API_KEY repository secret. The CLI offers to add it with gh secret set BUNNYNET_API_KEY.

bunny sites domains

Manage custom domains for a site. The first custom domain you add becomes the site’s production URL.

bunny sites ssl

Redirect HTTP to HTTPS on the site’s b-cdn.net address.

Other commands

Configuration

bunny sites reads a sites block from bunny.jsonc. See Site configuration.
Last modified on November 24, 2026