Skip to content

pfcli

pfcli builds and imports organisations and manages cloud projects. Run pfcli --help or pfcli <command> --help for the available commands and options.

Pass an organisation directory directly to local commands. For example:

Terminal window
pfcli import ./my-org --database-path ./data.db --issuer-url http://localhost:4020
pfcli invitation registration-link ./my-org --email alice@example.com --frontend-url http://localhost:3000
pfcli invitation registration-link --project "$PROJECT" --env dev --email alice@example.com

Use --database-path for a local database outside the organisation’s default db/pf.db. --issuer-url sets the Dashboard’s JWT issuer. --frontend-url sets the local registration link’s HTTP(S) origin, including its port if needed. For a different Console endpoint, use pfcli auth login --base-url <url>. Use each command’s help to check which options it accepts.

Some commands also accept environment variables as fallbacks. Explicit options take precedence: for example, --database-path overrides SQLITE_DATABASE_PATH, --issuer-url overrides OAUTH_ISSUER_URL, and --frontend-url overrides FRONTEND_BASE_URL, BASE_URL, and NEXT_PUBLIC_FRONTEND_URL. Without a Dashboard URL override, the local registration-link command discovers the Dashboard port or falls back to 3000.

For a stage secret, avoid putting its value in command arguments, which can be exposed in shell history or process listings. Instead, set an environment variable using your secret manager and pass its name as a bare key:

Terminal window
# Set GOOGLE_CLIENT_SECRET in your environment using your secret manager.
pfcli config set --project 0000-0000-0002 --stage Production --secret GOOGLE_CLIENT_SECRET

The command reads the exported variable and fails if it is unset. Handle environment variables carefully and keep secret values out of logs.