Skip to content

Domains and sharing

Serve a project on your own domain, keep it private, and share it with people, a link or a password.

On this page

Custom domains

A custom domain serves the project's live version; the perafly.app address keeps working. Perafly doesn't sell domains or host DNS: you add the domain here and enter the DNS record at your own provider. HTTPS certificates are issued automatically.

Terminal
perafly domains add www.example.com   # shows the DNS record to set
perafly domains check www.example.com # check verification and DNS now
perafly domains ls
perafly domains rm www.example.com    # asks to confirm
RecordWhen
AFor a root domain such as example.com.
CNAMEFor a subdomain such as www.example.com.
TXTOnly when the domain is already used elsewhere and ownership must be verified; the record to add is shown.
  • The status is pending until verification and DNS are right, then active. A domain that isn't active within 7 days becomes failed; you can check it again. If an active domain's DNS breaks, it goes back to pending.
  • Perafly checks pending domains every 5 minutes and active ones every 6 hours, and notifies the team when a domain becomes active or fails.
  • Names are lower case (punycode for international names). perafly.app, perafly.com, vercel.app, IP addresses and localhost can't be added, and a domain can belong to only one project on Perafly.
  • The number of domains counts for the whole team and comes from your plan (plan_limit_domains). Projects published without an account can't have a custom domain.

Public and private projects

A project is either public or private. A private project can be opened only by people with access; knowing the address isn't enough. Its every address goes through the access gate: live, version and branch addresses and custom domains. A new project starts with the team's default access; access in perafly.jsonc sets it for a project's first publish. Projects published without an account are always public.

Who gets inHowSession
Team membersSign in with Perafly.1 hour
People you share withSign in with a Perafly account verified for the shared email.1 hour
Anyone with the share linkOpen https://<project>.perafly.app/__perafly/s/pfl_…. There's one active link; a new one replaces the old.12 hours
Anyone with the passwordEnter it on the gate page (8–72 characters).12 hours
Terminal
perafly share                   # current access
perafly share private
perafly share link              # shown once; replaces the earlier link
perafly share link --revoke
printf %s "$PASSWORD" | perafly share password   # --clear removes it
perafly share add ada@example.com
perafly share rm ada@example.com
perafly share public            # asks to confirm

People you share with get an email. Visitors without access can ask for it from the gate page; the request appears on the project's Sharing page for a teammate to approve or decline. Any change of access (mode, link, password, removing a person) signs out everyone who got in through the gate.

Files under public/ in project storage stay public even when the project is private. Changing access or domains is a person's decision: agent and read-only credentials can't.