Documentation menu
Docs › Get started
Getting started
Put your first site on the Cache.bz edge in about five minutes. You need access to your DNS and the address of your origin.
Before you begin
You need three things:
- A Cache.bz account. New accounts are opened by our onboarding team so each site gets a short configuration review.
- The hostname you want to serve, for example
www.example.com. - An origin: a server, load balancer or storage bucket that already answers for that hostname over HTTPS.
1. Install the CLI
The cachebz CLI deploys configuration, purges content and tails logs. It is a single static binary for Linux, macOS and Windows.
# macOS and Linux
curl -fsSL https://get.cache.bz/cli | sh
# or with a package manager
brew install cachebz/tap/cachebz
cachebz version
# cachebz 3.8.2 (linux/amd64, built 2026-11-24)Log in once. The CLI opens your browser and stores a scoped token in ~/.config/cachebz/credentials.
cachebz login2. Create the site
Create a site with your public hostname and origin. Cache.bz issues a TLS certificate for the hostname while you carry on.
cachebz sites create \
--hostname www.example.com \
--origin origin.example.com
# Site created: site_7Hq2xK
# Edge target: www.example.com.edge.cache.bz
# Certificate: pending DNS validation3. Point DNS at the edge
Add a CNAME record for your hostname that points at the edge target from the previous step. For an apex domain, use your DNS provider's ALIAS or ANAME record, or our anycast addresses from the dashboard.
www.example.com. 300 IN CNAME www.example.com.edge.cache.bz.If your current record has a long TTL, lower it to 300 seconds a day before the switch so you can roll back quickly if needed.
4. Check that responses are cached
Request a static asset twice. The second response should show a cache hit in the cache-status header and a non-zero age.
$ curl -sI https://www.example.com/logo.svg | grep -iE 'cache-status|age|x-cachebz-pop'
cache-status: cachebz; fwd=miss; stored
x-cachebz-pop: FRA
$ curl -sI https://www.example.com/logo.svg | grep -iE 'cache-status|age|x-cachebz-pop'
age: 4
cache-status: cachebz; hit; ttl=86396
x-cachebz-pop: FRA5. Add your own rules
Out of the box, Cache.bz caches responses your origin marks as cacheable and common static file types for one day. Most sites then add a cachebz.toml file to their repository to describe exactly what to cache. Continue with cache rules.