Skip to content

Import and run locally

From my-org, in the terminal where you set the Google variables, install the matching public CLI and runtime:

Terminal window
bun add --exact @processfocus/cli@0.1.0-next.4 @processfocus/runtime-local@0.1.0-next.4

Add this scripts property to the generated package.json, keeping its existing dependencies:

"scripts": {
"build": "pf-runtime-local --build --org .",
"start": "pf-runtime-local --org ."
}
Terminal window
bun run build
bun run start

The build imports your organisation and compiles its Dashboard. Startup imports again, starts authentication, GraphQL and the background worker, then serves the built Dashboard. When the terminal reports that the runtime is ready, open the local sign-in page. You should see Sign in with Google for the MO workspace. With a configured OAuth client, use the address you invited; placeholders only take you as far as the sign-in page.

If another runtime uses the default ports (Dashboard 3000, GraphQL 4000, authentication 4020), append the same three options to both scripts before building, for example --dashboard-port 3104 --graphql-port 4104 --auth-port 4124. Open http://localhost:3104/login and use the new authentication port in Google’s redirect URI.

Press Ctrl+C in the runtime terminal to stop it. Keep bun.lock for repeat installs. Exclude node_modules/, db/, dist/, files/, .processfocus/ and any local credentials from version control.

If you chose passkeys, the login page offers passkey sign-in instead of Google. To register your first passkey, run this from my-org in a second terminal while the runtime is running, using the email from your invitation:

Terminal window
bun run pfcli invitation registration-link . --email admin@example.com

Open the private, single-use link on the device where you want to register the passkey. A localhost passkey won’t sign you in on a hosted domain. After deploying, register a hosted passkey.

To run the same organisation in the cloud, deploy your project with pfcli.