Quickstart
Publish a folder to a live address from your terminal, first without an account, then with one.
On this page
Publish without an account
You need Node.js 22 or later. Point the CLI at your site's output folder:
Perafly opens a project with no owner and prints its live address, a claim link and when it expires. The project key (pfc_…) is saved in .perafly/state.json, which the CLI adds to .gitignore; publishing again from the same folder updates the same project. Anyone with the claim link can take the project, so keep it private.
Prefer the browser? Drag the folder onto Drop; it follows the same rules.
Install and sign in
Install the CLI once. It gives you two commands, perafly and its short name pf:
perafly login prints a code and opens your browser at perafly.com/authorize. Check that the code matches, pick the team and approve. The CLI stores an API key (pfa_…) in your system keychain, or in ~/.perafly/credentials/ with owner-only permissions when there is no keychain. The key lasts 30 days and lapses after 7 days without use.
PERAFLY_TOKEN, or pipe it to perafly login --token-stdin. Keys are never passed as arguments.Publish your first project
From the folder you want to publish, signed in:
The first publish opens a project in your team and writes .perafly/project.json, the link between the folder and the project. Commit that file; it holds no secret. The CLI prints something like:
Only files Perafly doesn't already have are uploaded. Files that are never published, such as .env* and node_modules/, are skipped; perafly publish --dry-run lists them without uploading anything.
Keep a project you published without an account
Sign in, then run claim from the same folder. The project moves into your team; its addresses don't change and the expiry goes away.
Add --keep-publishing if an agent published the project and should keep publishing it: Perafly gives it an API key that works only for this project, limited by your role. You can also open the claim link in a browser.
Next steps
- Publishing explains versions, live, previews and rollback.
- Agents and MCP connects Claude Code, Cursor or Codex.
- Git and CI publishes on every push.