Perafly documentation
Perafly turns a folder, a build or your agent's work into a live address. These pages explain how to publish, connect agents and use data, storage, domains and logs.
What Perafly does
Perafly is a publishing platform. You give it files, it gives you a live address like https://<project>.perafly.app, and every publish becomes a version you can go back to. There are three ways to work:
- With your own agent. Claude Code, Cursor, Codex or any MCP client connects to Perafly, publishes what it built and answers with the live address. See Agents and MCP.
- With the built-in agent. Describe the site in the dashboard or with
perafly agent; Perafly's agent builds it and publishes a preview. See Built-in agent. - By hand.
perafly publish ./distfrom a terminal, drag and drop on Drop, or Git: connect GitHub or push straight to Perafly. See Quickstart and Git and CI.
A project can also keep data in collections, files in storage (reachable over SFTP too), use its own domain and stay private. Your plan decides how much of each is available.
Concepts
Addresses
Where to work
Where to go next
- Quickstart: publish a folder in a minute, with or without an account.
- Publishing: versions, live, rollback and previews.
- API reference and errors: every endpoint and every error code.
Browse the docs
Publish
- PublishingHow a publish becomes a version, how live moves between versions, and how previews and rollbacks work.
- CLIThe
peraflycommand (short namepf): publish folders, manage versions and projects, and reach every project feature from a terminal or CI. - perafly.jsoncThe project's configuration file: build settings, redirects, rewrites, headers, cron jobs and first access.
- Git and CIPublish from Git: connect a GitHub repository, push straight to Perafly, or publish from your CI. The production branch goes live; other branches get preview addresses.
Agents
Project features
- DataKeep records in collections and reach them with an API: a static site can collect sign-ups without server code, and a server app can read and write with its secret key.
- Storage and SFTPA file space for each project, separate from its versions: images, visitor uploads and large files that stay when you publish. Reach it from the API, the CLI, the dashboard or SFTP.
- Environment variables and cron jobsGive your project's code its settings and secrets, and run paths on a schedule.
- Domains and sharingServe a project on your own domain, keep it private, and share it with people, a link or a password.
- Logs and analyticsFollow a project's requests, its code's output and its builds, see traffic without adding a script to your pages, and get alerts when something breaks.