Skip to content

Administration

Inspect account and workspace state, manage and verify domains, export and check audit events, read reports, request workspace data exports, map Slack and Discord channels, manage client portals, and call the API without writing a separate client.

Choose the right command

Identity and credentials
Use pf me to inspect the authenticated account, workspace memberships, personal API tokens, and push devices. Verify the active credential first with pf auth check.
Capacity and API version
Use pf limits before a batch job to read the API version and current quota.
Custom domains
Use pf domains add to get the DNS record to publish, check public DNS, and request verification only after the record matches.
Audit evidence
Use pf audit-logs with an explicit time range and output format. Store the export in an access-controlled location and record the workspace and filter used. Use pf audit-stats for counts and pf audit-verify to check the chain.
Slack and Discord channels
Use pf integrations list to find a connection, pf integrations map to link a channel to a project, and pf integrations events to see what was sent.
Reports and your own numbers
Use pf reports for workspace, activity, storage, agent access, delivery, time, review, agent, and attention figures, and pf me stats for your own. Add --json when you need the full data.
A complete copy of the workspace
Use pf exports request to start an export and pf exports view to follow it. The workspace owner downloads the archive from Settings, Data export in the app.
Client portals
Use pf portals to read and manage portals, their guests and shared posts and docs, client feedback, and the reports sent through a portal.
Uncovered API operation
Use pf api when the ordinary CLI has no command for the endpoint. Follow the API reference for method, body, pagination, and version behavior.

Identity and limits

pf me viewShow your account profile. This is the default for pf me.

alias: pf me show

Example

Shell
pf me view
pf me editUpdate your display name, username, or name preference. Provide at least one of them.

alias: pf me update

Options

  • --display-namestring

    Set your display name. An empty value removes your custom name.

  • --name-preferencestring

    Show your username or full name: username or fullname

  • --usernamestring

    Set your username

  • --expected-updated-atnumber

    Fail with 412 if your profile changed since this updatedAt

Example

Shell
pf me edit --display-name "Sam Rivera"
pf me edit --name-preference username
pf me edit --username sam
pf me orgsList the workspaces you belong to

alias: pf me organizations

Example

Shell
pf me orgs
pf me activityList what you did in the workspace, newest first. Needs the activity:read scope and a Pro or Enterprise workspace.

Options

  • --projectstring

    Only activity in this project, by ID or slug

  • --sincestring

    Only activity after this time, as Unix milliseconds or an ISO 8601 time with a timezone

  • --limitnumber

    Max results per page (1-100, default: 25)

  • --cursorstring

    Continue from nextCursor, including after a short page

  • --pageboolean

    Include activity, hasMore and nextCursor with --json; cannot be used with --jq

Example

Shell
pf me activity
pf me activity --project launch --since 2026-10-01T00:00:00Z
pf me feed-preferencesShow which activity appears in your feed in this workspace, or change it. With no options it prints the preferences and where they come from.

Options

  • --showstring

    Comma-separated preference names to turn on, such as showTaskComments

  • --hidestring

    Comma-separated preference names to turn off

  • --accountboolean

    Your account defaults, which every workspace starts from

  • --expected-updated-atnumber

    Fail if the preferences changed since this updatedAt

Example

Shell
pf me feed-preferences
pf me feed-preferences --hide showTaskMicroChanges,showMemberActivity
pf me feed-preferences --account --show showPostEdits
pf me time-preferencesShow or change your time tracking preferences. The weekly target and the daily reminder are set per workspace. Idle detection is an account preference, so change it with --account.

Options

  • --weekly-targetstring

    Hours you aim to log each week (1-100), or none to clear it

  • --daily-reminderstring

    on or off: remind you on days with no time logged

  • --weekend-reminderstring

    on or off: also remind you on weekends

  • --reminder-timezonestring

    IANA timezone for the reminder, such as Europe/Berlin

  • --idle-detectionstring

    on or off: pause the timer when you are away

  • --idle-minutesnumber

    Minutes away before the timer pauses: 5, 10, 15, or 30

  • --idle-actionstring

    What happens to idle time: keep, discard, or stop

  • --accountboolean

    Your account preferences, where idle detection lives

  • --expected-updated-atnumber

    Fail if the preferences changed since this updatedAt

Example

Shell
pf me time-preferences
pf me time-preferences --weekly-target 32 --daily-reminder on
pf me time-preferences --account --idle-detection on --idle-minutes 15
pf me avatar-removeRemove your profile photo. The photo from your sign-in provider does not come back.

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf me avatar-remove --confirm
pf me invitationsList pending invitations to other workspaces sent to your verified email addresses

Example

Shell
pf me invitations
pf me invitation-acceptJoin a workspace by accepting an invitation, by the ID from pf me invitations

Options

  • --idempotency-keystring

    Retry-safe request key

Example

Shell
pf me invitation-accept jh7c2v9x4kq8m1n5p3r6s0t2w8y4z6a1
pf me emailsList the email addresses on your account, with the primary one first and which are verified

Example

Shell
pf me emails
pf me email-addAdd an email address to your account and send it a verification link. It cannot be used to sign in until it is verified.

Options

  • --idempotency-keystring

    Retry-safe request key

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf me email-add dana@example.com
pf me email-resendSend a new verification link to an unverified email address, by the ID from pf me emails

Example

Shell
pf me email-resend j57a8x0c0ab0n2sdq4k7m3e1d97s8r2b
pf me email-removeRemove an unverified email address. Verified addresses are removed in the Project Feed app, which asks for an emailed code first.

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf me email-remove j57a8x0c0ab0n2sdq4k7m3e1d97s8r2b --confirm
pf me deletion-statusCheck whether your account can be deleted, and list the workspaces that need a new owner first. Deleting the account happens in the Project Feed app.

Example

Shell
pf me deletion-status
pf me sessionsList the devices and browsers signed in to your account, with IP address and last activity

Example

Shell
pf me sessions
pf me session-revokeSign out one device or browser, by the ID from pf me sessions

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf me session-revoke session_01JBX9K3T6Q2V8W4M7N5R1C0ZD --confirm
pf me security-activityList your latest 50 sign-in and security events across every workspace

Example

Shell
pf me security-activity
pf me statsShow your tasks, tracked time, contributions, and active days in this workspace

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

Example

Shell
pf me stats
pf me stats --from 2026-09-01 --to 2026-09-30 --json
pf me api-keys listList your personal API tokens. This is read-only. Create and revoke tokens under Account > Tools & tokens.

alias: pf me keys ls

Example

Shell
pf me api-keys list
pf me push-subscriptions listList your registered push-notification devices

alias: pf me devices ls

Example

Shell
pf me push-subscriptions list
pf me push-subscriptions delete <id>Remove a registered push-notification device

alias: pf me devices rm

Options

  • --dry-runboolean

    Preview the removal without deleting the device

Example

Shell
pf me push-subscriptions delete <id> --dry-run
pf me push-subscriptions delete <id>
pf limitsShow the API version and the current rate-limit quota. The request does not consume quota.

Example

Shell
pf limits --json

Custom domains

Checking DNS records needs a Pro plan or higher. Adding a domain and verifying it need an Enterprise plan and a workspace owner or admin. Listing and removing domains are for owners and admins.

pf domains listList the workspace's custom domains with their verification method, record name, and status. Owners and admins only. The DNS value is not listed.

alias: pf domains ls

Options

  • --limitnumber

    Domains per page, 1 to 100 (default 50)

  • --cursorstring

    Continue from a previous page

  • --allboolean

    Follow every cursor and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor alongside the rows

Example

Shell
pf domains list
pf domains list --json id,domain,isVerified
pf domains list --all --json id,domain
pf domains add <domain>Add a custom domain and print the DNS record to publish: its type, name, value, and instructions. The value is shown only once. To get a new one, remove the domain and add it again. Owners and admins on an Enterprise plan only.

Options

  • --methodstring

    dns_txt (default) or dns_cname

  • --idempotency-keystring

    Retry-safe request key

Example

Shell
pf domains add example.com
pf domains add docs.example.com --method dns_cname
pf domains remove <domainId>Remove a custom domain. Owners and admins only, and it works after a plan downgrade.

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf domains remove <domainId> --dry-run
pf domains remove <domainId> --confirm
pf domains check-dns <domain>Look up the public DNS records for a domain

Options

  • --typestring

    Record type: TXT, CNAME, A, or MX (default TXT)

Example

Shell
pf domains check-dns example.com
pf domains check-dns example.com --type CNAME
pf domains verify <domainId>Trigger verification for a configured domain. Run it after the DNS record matches. Requires an owner or admin on an Enterprise plan.

Example

Shell
pf domains verify <domainId>

Export audit events

Audit export needs an Enterprise plan and an owner or admin in the workspace. Events are workspace-scoped.

pf audit-logsExport workspace audit events. The export stops at the limit, so narrow the range or raise --limit when more records exist.

alias: pf audit

Options

  • --sincestringrequired

    Start time as an ISO date or Unix milliseconds

  • --untilstring

    End time as an ISO date or Unix milliseconds (default now)

  • --limitnumber

    Maximum records, from 1 to 1000 (default 100)

  • --categoriesstring

    Comma-separated categories to include

  • --event-typestring

    Comma-separated event types to include, up to 20

  • --actorstring

    Only events by this user ID

  • --resource-typestring

    Only events on this kind of resource

  • --resource-idstring

    Only events on this resource

  • --statusstring

    success or failure

  • --cursorstring

    Continue from the next cursor of the previous page. JSON output prints it.

  • --formatstring

    json, csv, or cef (default json)

  • --outputstring

    Write the export to a file instead of standard output

Example

Shell
pf audit-logs --since 2026-07-01 --format csv --output audit.csv
pf audit --since 2026-07-01 --until 2026-07-15 --limit 500
pf audit-logs --since 2026-07-01 --event-type api_key.revoked --status success
pf audit-statsCount audit events by category, status, and retention. Owners and admins on an Enterprise plan only.

Options

  • --sincestring

    Start time as an ISO date or Unix milliseconds (default 30 days ago)

  • --untilstring

    End time as an ISO date or Unix milliseconds (default now)

Example

Shell
pf audit-stats --since 2026-09-01
pf audit-verifyCheck the audit log hash chain for edited or missing records. Exits with code 1 when the chain is not valid. Owners and admins on an Enterprise plan only.

Options

  • --start-sequencenumber

    First sequence number to check

  • --end-sequencenumber

    Last sequence number to check

  • --max-logsnumber

    Most records to check, 1 to 10000 (default 1000)

Example

Shell
pf audit-verify
pf audit-verify --max-logs 5000 --json
  1. 1.

    Confirm the workspace

    Run pf workspace current and confirm you are an owner or admin there.

  2. 2.

    Choose a range and format

    Use the smallest useful date range and the JSON, CSV, or CEF format you need.

  3. 3.

    Write to a file

    Use --output so a large evidence set does not print into shared terminal logs.

  4. 4.

    Check the result

    Inspect the first and last event timestamps, the filter, and the record count before handing off the file.

  5. 5.

    Protect the export

    Follow the workspace's security process. The file may contain member, identity, and setting activity.

Shell
pf workspace current
pf audit-logs --since 2026-07-01 --format json --output audit.json
pf audit-logs --since 2026-07-01 --format cef --output audit.cef

Client portals

The list and view commands need a credential with portals:read. Every command that changes a portal, its feedback, or its reports needs portals:write. A portal is an ID or, for a public portal, its slug. Lists print one page and the cursor for the next. Add --json to get the full records. The Client Portals API lists who can use each route, and guest email addresses show only to owners and admins.

pf portals listList portals, newest first. Needs an owner or admin.

alias: pf portals ls

Options

  • --statusstring

    Only active or revoked portals

  • --limitnumber

    Results per page, from 1 to 100 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals list --status active
pf portals view <portal>Show a portal's settings, guest and item counts, and links. The portal is an ID or the slug of a public portal.

alias: pf portals show

Example

Shell
pf portals view acme-updates
pf portals create <name>Create a portal. Needs an owner or admin and portals:write. The portal link token is not printed. Use pf portals rotate-token to get one.

Options

  • --descriptionstring

    Short description

  • --projectsstringrequired

    Comma-separated project IDs or slugs the portal can share from. A portal always has at least one project

  • --templatestring

    client_review (default), public_updates_feedback, or private_updates

  • --slugstring

    Public address. Required for public_updates_feedback

  • --downloadsstring

    on or off. Whether guests can download shared files

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals create "Northwind review" --projects launch,brand
pf portals update <portal>Change a portal's settings. Pass at least one flag. An empty --description, --welcome-note, or --home-doc clears it.

Options

  • --namestring

    New name

  • --descriptionstring

    New description

  • --welcome-notestring

    Note guests see first

  • --home-docstring

    ID or identifier of a shared doc the portal opens on while Updates is off

  • --projectsstring

    Comma-separated project IDs or slugs. Replaces the current list, and the list needs at least one project

  • --replace-all-projectsboolean

    Needed with --projects on a portal that covers more than 100 projects, because view shows only the first 100

  • --downloadsstring

    on or off. Whether guests can download shared files

  • --discussionstring

    on or off. The portal discussion

  • --brandingstring

    on or off. Show Project Feed branding to guests

  • --name-displaystring

    fullname or username

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals update ptl_abc123 --name "Northwind launch review" --discussion off
pf portals revoke <portal>Close a portal. Guests lose access. Asks for confirmation in a terminal.

Options

  • --confirmboolean

    Skip the confirmation prompt

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals revoke ptl_abc123 --confirm
pf portals rotate-token <portal>Reset the portal's private link and print the new token once. The old token stops working at once. Do not paste the output into logs, tasks, or posts.

Options

  • --confirmboolean

    Skip the confirmation prompt

Example

Shell
pf portals rotate-token ptl_abc123
pf portals events <portal>List what guests and the team did on a portal, newest first. Needs an owner or admin.

Options

  • --typestring

    Only events of this type, such as client_feed.feedback_created

  • --sincestring

    Only events after this time: Unix milliseconds, YYYY-MM-DD, or an ISO timestamp with a timezone

  • --limitnumber

    Results per page, from 1 to 100 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals events ptl_abc123 --type client_feed.feedback_created --since 2026-10-01
pf portals insights <portal>Show visits and feedback, the median time to a first open, and who opened each shared item. Needs an owner or admin.

Options

  • --weeksnumber

    Weeks to cover: 4, 12, or 26 (default 12)

Example

Shell
pf portals insights ptl_abc123 --weeks 4
pf portals check-slug <slug>Check that a public portal address is valid and free. Needs an owner or admin.

Example

Shell
pf portals check-slug acme-updates
pf portals branding <portal>Change a portal's theme or accent color, or remove its logo or banner. Needs an owner or admin and a portal that is not read-only. Upload a logo with a portalLogo destination in pf media upload.

Options

  • --themestring

    system, light, or dark

  • --accent-colorstring

    Accent color such as #10B981

  • --clear-accent-colorboolean

    Remove the accent color

  • --clear-logoboolean

    Remove the portal logo

  • --clear-bannerboolean

    Remove the portal banner

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals branding ptl_abc123 --theme light --accent-color "#10B981"
pf portals sections <portal>Choose which sections guests see. Sections you leave out keep their setting. Needs an owner or admin and a portal that is not read-only.

Options

  • --updatesstring

    on or off. The Updates section

  • --feedbackstring

    on or off. The Feedback section

  • --filesstring

    on or off. The Files section

  • --docsstring

    on or off. The Docs section

  • --commentsstring

    on or off. Guest comments on a public portal

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms). Settings that merge default it to the updatedAt the command read

Example

Shell
pf portals sections ptl_abc123 --feedback on --comments off
pf portals links <portal>Replace the links shown on a portal. Links must be https addresses. Needs an owner or admin and a portal that is not read-only.

Options

  • --linkstring

    A link as label=url. Repeat for each link

  • --featured-linkstring

    A link as label=url, shown as a large button at the top of a public portal. Up to 3

  • --clearboolean

    Remove every link

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals links ptl_abc123 --link "Status=https://status.example.com" --link "Docs=https://docs.example.com"
pf portals launch <portal>Set the release date, release text and trailer shown at the top of a public portal. Details you don't pass keep their value. Needs an owner or admin and a portal that is not read-only.

Options

  • --release-datestring

    Release day as YYYY-MM-DD. Empty text clears it

  • --release-labelstring

    Short text such as Coming spring 2027. Empty text clears it

  • --trailerstring

    https YouTube or Vimeo link. Empty text clears it

  • --clearboolean

    Remove every launch detail

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals launch ptl_abc123 --release-date 2027-03-14 --trailer "https://youtu.be/dQw4w9WgXcQ"
pf portals subscribers list <portal>List the confirmed addresses on a public portal's mailing list, newest first. Needs an owner or admin.

Options

  • --limitnumber

    Max results, 1 to 50. Default 50

  • --cursorstring

    Cursor from a previous page

Example

Shell
pf portals subscribers list ptl_abc123
pf portals subscribers remove <portal> <subscriber>Remove an address from a public portal's mailing list. Needs an owner or admin.

Example

Shell
pf portals subscribers remove ptl_abc123 sub_abc123
pf portals access <portal> <access>Open a portal to anyone with its address (public), or limit it to invited guests. A portal needs a slug the first time it goes public, and public portals need a plan that allows them. Needs an owner or admin and a portal that is not read-only.

Options

  • --slugstring

    Public address. Check it first with pf portals check-slug

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals access ptl_abc123 public --slug acme-updates
pf portals indexing <portal> <switch>Let search engines index a public portal (on), or keep them out (off). Invited portals are never indexed. Needs an owner or admin and a portal that is not read-only.

Options

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals indexing ptl_abc123 on
pf portals feedback-config <portal>Change a portal's feedback form. Settings you leave out keep their value. Needs an owner or admin and a portal that is not read-only.

Options

  • --introstring

    Text above the form. Empty text clears it

  • --pausedstring

    on or off. Stop taking new feedback

  • --allow-emailstring

    on or off. Let reporters leave an email address

  • --allow-screenshotsstring

    on or off. Let reporters attach screenshots

  • --destination-projectstring

    Project ID that receives tasks from reports. Empty text clears it

  • --categoriesstring

    The whole category list as JSON, or @path to a JSON file. Each category has key, label, and fields

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms). Settings that merge default it to the updatedAt the command read

Example

Shell
pf portals feedback-config ptl_abc123 --paused on
pf portals updates-config <portal>Change a portal's updates layout and auto-publish rules. Settings you leave out keep their value. Needs an owner or admin and a portal that is not read-only.

Options

  • --layoutstring

    inbox or timeline. A timeline makes it an Updates portal

  • --review-actionsstring

    on or off. Let invited guests approve or request changes

  • --auto-publishstring

    on or off. Publish matching posts without a manual share

  • --auto-publish-projectsstring

    Comma-separated project IDs auto-publish draws from. They must be in the portal

  • --auto-publish-tagsstring

    Comma-separated tag IDs a post needs. Empty text clears them

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms). Settings that merge default it to the updatedAt the command read

Example

Shell
pf portals updates-config ptl_abc123 --layout timeline --auto-publish on --auto-publish-projects prj_abc123
pf portals moderation-config <portal>Choose how new member comments are held on a public portal. Needs an owner or admin.

Options

  • --hold-new-membersstring

    on or off. Hold a new member's first comments for approval

  • --approvals-to-trustnumber

    Approved comments that make a member trusted, from 0 to 20

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms). Settings that merge default it to the updatedAt the command read

Example

Shell
pf portals moderation-config ptl_abc123 --hold-new-members on --approvals-to-trust 3
pf portals apply-template <portal> <template>Reset a portal's kind, sections, updates settings, and discussion switch to a preset: client_review, public_updates_feedback, or private_updates. The preset must match whether the portal is public. Asks for confirmation in a terminal. Needs an owner or admin.

Options

  • --confirmboolean

    Skip the confirmation prompt

  • --expected-updated-atnumber

    Fail with 412 if the portal changed since this updatedAt (Unix ms)

Example

Shell
pf portals apply-template ptl_abc123 private_updates --confirm
pf portals members list <portal>List the people who joined a public portal, newest first, with their block state. Needs an owner or admin.

alias: pf portals members ls

Options

  • --limitnumber

    Results per page, from 1 to 50 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals members list ptl_abc123
pf portals members block <portal> <member>Block a member so they can no longer comment. Needs an owner or admin.

Options

  • --hide-allboolean

    Also hide what the member already posted

Example

Shell
pf portals members block ptl_abc123 pmb_abc123 --hide-all
pf portals members unblock <portal> <member>Lift a member's block. Needs an owner or admin.

Example

Shell
pf portals members unblock ptl_abc123 pmb_abc123
pf portals comments list <portal>List the comments waiting for approval on a public portal, or one shared post's comments with --item. Needs an owner or admin.

alias: pf portals comments ls

Options

  • --itemstring

    List the comments on this shared item instead

  • --statestring

    With --item: visible, pending, or hidden (default visible)

  • --limitnumber

    Results per page, from 1 to 50 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals comments list ptl_abc123
pf portals comments list ptl_abc123 --item itm_abc123 --state hidden
pf portals comments reply <portal> <item>Comment on a shared post as the team, or reply to a visible top-level comment. The comment shows at once. Needs access to the post, and the portal must be public with comments on.

Options

  • --contentstringrequired

    Comment text, 1 to 4000 characters

  • --parentstring

    ID of the comment to reply to

  • --idempotency-keystring

    Retry-safe request key

Example

Shell
pf portals comments reply ptl_abc123 itm_abc123 --content "Thanks, a new version is coming Friday."
pf portals comments approve <portal> <comment>Approve a comment that waits for approval. Needs an owner or admin.

Options

  • --expected-edited-atstring

    Approve only if the comment's editedAt is this value (Unix ms), or none if it was never edited

Example

Shell
pf portals comments approve ptl_abc123 cmt_abc123 --expected-edited-at none
pf portals comments reject <portal> <comment>Reject a comment that waits for approval. Needs an owner or admin.

Options

  • --expected-edited-atstring

    Reject only if the comment's editedAt is this value (Unix ms), or none if it was never edited

Example

Shell
pf portals comments reject ptl_abc123 cmt_abc123
pf portals comments hide <portal> <comment>Hide a visible comment. Needs an owner or admin.

Example

Shell
pf portals comments hide ptl_abc123 cmt_abc123
pf portals comments unhide <portal> <comment>Show a hidden comment again. Needs an owner or admin.

Example

Shell
pf portals comments unhide ptl_abc123 cmt_abc123
pf portals contacts list <portal>List the guests invited to a portal. Needs an owner or admin.

alias: pf portals contacts ls

Options

  • --statusstring

    Only active or revoked guests

  • --limitnumber

    Results per page, from 1 to 100 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals contacts list ptl_abc123 --status active
pf portals contacts add <portal> <email>Invite a guest to an invited portal and email them. An email that already has access gets no new invite.

Options

  • --namestring

    Guest name

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals contacts add ptl_abc123 dana@example.com --name "Dana Guest"
pf portals contacts resend <portal> <contactId>Send a guest their invite again.

Example

Shell
pf portals contacts resend ptl_abc123 ctc_abc123
pf portals contacts remove <portal> <contactId>Remove a guest's access to a portal. Asks for confirmation in a terminal.

alias: pf portals contacts rm

Options

  • --confirmboolean

    Skip the confirmation prompt

Example

Shell
pf portals contacts remove ptl_abc123 ctc_abc123
pf portals items list <portal>List the posts shared on a portal with each client's latest verdict. Needs an owner or admin.

alias: pf portals items ls

Options

  • --include-revokedboolean

    Include items taken off the portal

  • --limitnumber

    Results per page, from 1 to 100 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals items list ptl_abc123
pf portals items share <portal> <post>Share a published post version on a portal. The post is an ID or an identifier. Needs the same permission as sharing in the app.

Options

  • --versionnumber

    Version to share (default: the current version)

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals items share ptl_abc123 LAUNCH-4 --version 3
pf portals items revoke <portal> <itemId>Take a shared post off a portal. Needs an owner or admin. Asks for confirmation in a terminal.

Options

  • --confirmboolean

    Skip the confirmation prompt

Example

Shell
pf portals items revoke ptl_abc123 itm_abc123
pf portals items decision <portal> <itemId>Ask the client to approve or request changes on a shared post. The portal needs review actions turned on.

Options

  • --cancelboolean

    Withdraw the request instead

Example

Shell
pf portals items decision ptl_abc123 itm_abc123
pf portals discussion view <portal>Show a portal's discussion thread and room IDs without creating the thread. Use them with pf chat.

alias: pf portals discussion show

Example

Shell
pf portals discussion view ptl_abc123
pf portals discussion open <portal>Create the portal's discussion thread if it has none and print its thread and room IDs. Needs an owner or admin.

Example

Shell
pf portals discussion open ptl_abc123
pf portals docs list <portal>List the docs shared on a portal with each doc's access level, including shares guests can no longer see, which show no under Guests see it. Warns when the list stopped at its 100-share limit. Needs an owner or admin.

alias: pf portals docs ls

Options

  • --pageboolean

    With --json, keep the truncated field in the output

Example

Shell
pf portals docs list ptl_abc123
pf portals docs share <portal> <doc>Share a doc on a portal. The doc is an ID or an identifier. Needs an owner or admin.

Options

  • --accessstring

    view (default), comment, or edit

  • --subpagesstring

    on lets guests read the doc's subpages, view only. off turns it back off

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals docs share ptl_abc123 SCOPE-1 --access comment
pf portals docs access <portal> <doc> <level>Change how guests can use a shared doc: view, comment, or edit.

Example

Shell
pf portals docs access ptl_abc123 SCOPE-1 view
pf portals docs revoke <portal> <doc>Stop sharing a doc on a portal. Asks for confirmation in a terminal.

Options

  • --confirmboolean

    Skip the confirmation prompt

Example

Shell
pf portals docs revoke ptl_abc123 SCOPE-1
pf portals feedback listList open client feedback across every portal, or the feedback on one portal or one post. The inbox and a portal's feedback need an owner or admin.

alias: pf portals feedback ls

Options

  • --portalstring

    Feedback on this portal (ID or public slug)

  • --poststring

    Feedback on this post (ID or identifier). Cannot be combined with --portal

  • --statusstring

    With --portal: open (default) or all

  • --limitnumber

    Results per page, from 1 to 100 (default 50)

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals feedback list
pf portals feedback list --portal acme-updates --status all
pf portals feedback list --post LAUNCH-4
pf portals feedback countCount open client feedback threads across every portal. Needs an owner or admin.

Example

Shell
pf portals feedback count
pf portals feedback view <feedbackId>Show a feedback thread with every reply. Use the ID of the first message or of any reply.

alias: pf portals feedback show

Example

Shell
pf portals feedback view fbk_abc123
pf portals feedback create <itemId>Start a team message thread on a shared portal item. The guests see it. Needs portals:write and access to the post. If the message mentions workspace items the portal has not shared, nothing is sent and the command lists them.

Options

  • --contentstring

    Message text, up to 5000 characters

  • --formatstring

    plaintext or markdown

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without sending twice

Example

Shell
pf portals feedback create itm_abc123 --content "Thanks for the notes. A new version is coming Friday."
pf portals feedback reply <feedbackId>Reply in a feedback thread. A reply to the guests emails them, and a reply that mentions unshared workspace items is not sent.

Options

  • --contentstring

    Message text, up to 5000 characters

  • --formatstring

    plaintext or markdown

  • --audiencestring

    client (default) shows the reply to the guests. workspace is a team-only note

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without sending twice

Example

Shell
pf portals feedback reply fbk_abc123 --content "Fixed in version 3"
pf portals feedback reply fbk_abc123 --content "Check the logo spec first" --audience workspace
pf portals feedback resolve <feedbackId>Resolve a feedback thread. When the guest asked for changes, the fix goes to the guest for sign-off instead and the thread stays open until they verify it. With --no-changes-needed the thread closes with no task or new version, or without sign-off when the guest never checked the fix, and the guest can still reopen it.

Options

  • --no-changes-neededboolean

    Close a thread that needs no work, or end a round the guest never checked

  • --expected-updated-atnumber

    Fail with 412 if the thread changed since this updatedAt (Unix ms)

Example

Shell
pf portals feedback resolve fbk_abc123
pf portals feedback reopen <feedbackId>Reopen a resolved feedback thread. Only the guest can reopen a thread that waits on their sign-off.

Options

  • --expected-updated-atnumber

    Fail with 412 if the thread changed since this updatedAt (Unix ms)

Example

Shell
pf portals feedback reopen fbk_abc123
pf portals feedback address <feedbackId>Tell the guest a change request was fixed in a newer shared version so they can verify it. Every linked task must be done and a newer version must be shared on the portal.

Options

  • --itemstring

    Portal item that holds the fix (default: the current shared version)

  • --expected-updated-atnumber

    Fail with 412 if the thread changed since this updatedAt (Unix ms)

Example

Shell
pf portals feedback address fbk_abc123
pf portals feedback status <feedbackId> <status>Set a thread's team status: open, needs_changes, approved, or resolved. Only the guest can approve a change request.

Options

  • --expected-updated-atnumber

    Fail with 412 if the thread changed since this updatedAt (Unix ms)

Example

Shell
pf portals feedback status fbk_abc123 needs_changes
pf portals feedback react <feedbackId> <emoji>Add, remove, or toggle your emoji reaction on a feedback message.

Options

  • --actionstring

    add, remove, or toggle (default toggle). Use add or remove to retry safely

Example

Shell
pf portals feedback react fbk_abc123 👍 --action add
pf portals submissions listList bug reports and requests sent through portals, newest first. Needs an owner, an admin, or a portal publisher grant. With --task, anyone who can open the task can list its reports.

alias: pf portals submissions ls

Options

  • --portalstring

    Reports sent to this portal (ID or public slug)

  • --statusstring

    new, accepted, duplicate, dismissed, or spam

  • --categorystring

    Reports in this category key, such as bug

  • --needs-replyboolean

    Only reports waiting for a team reply. Cannot be combined with --status or --category

  • --taskstring

    Reports linked to this task (ID, identifier, or number). Cannot be combined with the other filters

  • --limitnumber

    Results per page, from 1 to 50 (default 50). With --task the most is 10

  • --cursorstring

    Continue from the cursor a previous page printed

  • --allboolean

    Follow every cursor, stopping after 10,000 rows, and print one list

  • --pageboolean

    With --json, keep hasMore and nextCursor in the output

Example

Shell
pf portals submissions list --status new
pf portals submissions list --task LAUNCH-12
pf portals submissions view <submissionId>Show a report with its replies.

alias: pf portals submissions show

Example

Shell
pf portals submissions view sub_abc123
pf portals submissions task <submissionId>Create a task from a report and link the two. The report must be new or dismissed. Needs an owner or admin and write access to the project.

Options

  • --projectstring

    Project for the task (default: the portal's feedback destination project)

  • --titlestring

    Task title (default: the report title)

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals submissions task sub_abc123 --project launch
pf portals submissions link-task <submissionId> <task>Link a report to an existing task as a duplicate, or move a report that already has a task to a different one. To unlink a report, reopen it. A spam report must be unmarked first.

Options

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions link-task sub_abc123 LAUNCH-12
pf portals submissions reply <submissionId>Reply to a report. The reporter sees the reply and is emailed when they left an address.

Options

  • --bodystringrequired

    Reply text

  • --idempotency-keystring

    Retry-safe request key. Reuse it to retry without repeating the change

Example

Shell
pf portals submissions reply sub_abc123 --body "A fix ships Friday."
pf portals submissions dismiss <submissionId>Dismiss a new report without making a task. Needs an owner or admin.

Options

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions dismiss sub_abc123
pf portals submissions spam <submissionId>Mark a new report as spam. This also blocks that reporter and their network address on the portal. Needs an owner or admin.

Options

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions spam sub_abc123
pf portals submissions unspam <submissionId>Move a spam report back to new and lift the blocks. Needs an owner or admin.

Options

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions unspam sub_abc123
pf portals submissions reopen <submissionId>Move an accepted, duplicate, or dismissed report back to new and unlink its task. Needs an owner or admin.

Options

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions reopen sub_abc123
pf portals submissions board <submissionId> <state>Show a report on a public portal's voting board (on) or hide it (off). Needs an owner or admin.

Options

  • --public-titlestring

    Title visitors see on the board

  • --expected-updated-atnumber

    Fail with 412 if the report changed since this updatedAt (Unix ms)

Example

Shell
pf portals submissions board sub_abc123 on --public-title "CSV export times out"

Count and verify audit events

pf audit-stats counts events in a range by category, status, and retention. pf audit-verify checks the hash chain and exits with code 1 when a record fails, so a scheduled job can alert on it. Both need an Enterprise plan and an owner or admin. When a page of pf audit-logs output has more records, it prints a cursor. Pass it back as --cursor with the same filters. Only JSON output prints the cursor.

Reports

Reports show what the key's owner can open. Every report needs a Pro plan. The table view prints a few headline figures. Add --json for the full report. A note appears when the result stopped at a read or series limit. Narrow a report to one project with --in-project. The global --project option does the same, except for pf reports agent-access, which covers the whole workspace.

pf reports overviewPosts, comments, reactions, active members, new members, and the top contributor. Use --json for comparisons with the previous period and the full series. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports overview --from 2026-10-01
pf reports activityEverything people did, counted by category: posts, comments, reactions, task updates, task comments, docs, canvas, chat, and portal. Use --json for daily counts and the most active members and projects. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

Example

Shell
pf reports activity --in-project launch
pf reports storageFiles and storage added, the workspace total, the top file type, and the top uploader. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports storage
pf reports agent-accessRequests, writes, and errors made through the API, the CLI, and MCP. Use --json for daily counts and the busiest clients, operations, and members. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports agent-access --member me
pf reports deliveryTasks completed, created, open, and overdue, with cycle time. The table shows headline figures. Use --json for the full report. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports delivery
pf reports delivery --from 2026-09-15 --to 2026-10-15 --in-project launch
pf reports timeTracked time with the top project. Use --json for the daily, project, member, and source series. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports time --member me
pf reports reviewAnnotations, comments, resolution rate, and first response time on published posts. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports review --from 2026-10-01
pf reports agentsHandoffs to agents and connected tools, with accept rate. Use --json for wait times and per-tool activity. Needs a Pro plan.

Options

  • --fromstring

    Start of the range: Unix milliseconds, a date, or an ISO time (default 30 days ago)

  • --tostring

    End of the range (default now)

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports agents
pf reports attentionCounts of overdue, unassigned, stuck, stale, unanswered, and awaiting-review work as of now. Takes no range. Needs a Pro plan.

Options

  • --in-projectstring

    Only this project, by ID or slug

  • --memberstring

    Only this member's work: a user ID, or me

Example

Shell
pf reports attention --in-project launch

For one project, pf projects analytics and pf projects heatmap show task mix and activity by weekday and hour. Your own numbers are in pf me stats.

Workspace data exports

A complete workspace export is for the workspace owner on an Enterprise plan. The commands start and track the export. They do not download the archive. Download a finished archive from Settings, Data export in the app. One complete export is available every 30 days.

pf exports listList the latest exports and say whether a new one can be requested. Use --json for allowed, reason, and nextEligibleAt.

alias: pf exports ls

Example

Shell
pf exports list
pf exports requestStart a complete workspace export, or return the one already queued or running. One complete export is available every 30 days.

Options

  • --idempotency-keystring

    Retry key, so a repeated command does not start two exports

Example

Shell
pf exports request
pf exports view <id>Show one export with its status, progress, size, and the date its archive stays available

Example

Shell
pf exports view <export-id>
pf exports revoke <id>Revoke an export so its archive can no longer be downloaded

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf exports revoke <export-id> --dry-run

Chat integrations

These commands cover Slack and Discord connections. Connecting a workspace and removing a connection stay in Settings in the app. Viewers cannot use these commands. Steamworks, Perforce, GitHub and similar integrations, backfill imports, identity linking, and Figma are not in the CLI yet.

pf integrations listList the workspace's Slack and Discord connections with their status, mapping count, and linked users. A count followed by + is at least that number.

alias: pf integrations ls

Example

Shell
pf integrations list
pf integrations view <connectionId>Show one connection with its granted scopes, whether they match what was requested, and token health

Example

Shell
pf integrations view <connection-id>
pf integrations mappings <connectionId>List the channel mappings of a connection

Options

  • --limitnumber

    Max results per page

  • --cursorstring

    Continue from nextCursor

Example

Shell
pf integrations mappings <connection-id> --limit 20
pf integrations map <connectionId>Map a Slack or Discord channel to a project. The workspace's channel mapping policy decides who may do this. Owners and admins always can.

Options

  • --channelstringrequired

    Channel ID on the platform

  • --namestringrequired

    Channel name

  • --target-projectstring

    Project the channel maps to, by ID or slug. The global --project also works.

  • --directionstring

    outbound, inbound, or both

  • --eventsstring

    Comma-separated event names to send to the channel, up to 50

  • --public-linksboolean

    Include public links in messages (outbound or both)

  • --no-public-linksboolean

    Leave public links out of messages

  • --inbound-configstring

    Inbound settings as a JSON object, or @path to a JSON file

  • --idempotency-keystring

    Retry key, so a repeated command does not map twice

Example

Shell
pf integrations map <connection-id> --target-project launch --channel C0123456789 --name launch-updates --direction outbound --events task.completed,post.published
pf integrations map <connection-id> --target-project launch --channel C0123456789 --name launch-intake --direction inbound --inbound-config @inbound.json
pf integrations map-edit <connectionId> <mappingId>Change a channel mapping. Moving it to another project is for owners and admins. At least one change is required.

Options

  • --namestring

    New channel name

  • --target-projectstring

    Project the channel maps to, by ID or slug. The global --project also works.

  • --directionstring

    outbound, inbound, or both

  • --eventsstring

    Comma-separated event names to send to the channel, up to 50

  • --public-linksboolean

    Include public links in messages (outbound or both)

  • --no-public-linksboolean

    Leave public links out of messages

  • --inbound-configstring

    Inbound settings as a JSON object, or @path to a JSON file

  • --expected-updated-atnumber

    Fail with 412 if the mapping changed since this updatedAt

Example

Shell
pf integrations map-edit <connection-id> <mapping-id> --events task.completed --no-public-links
pf integrations map-edit <connection-id> <mapping-id> --target-project other-project
pf integrations unmap <connectionId> <mappingId>Remove a channel mapping and its digest settings. The channel itself is untouched.

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf integrations unmap <connection-id> <mapping-id> --dry-run
pf integrations eventsList recent integration events, newest first. Owners and admins see the whole workspace. Other members must pass a project.

Options

  • --in-projectstring

    Only events for this project, by ID or slug. The global --project also works.

  • --sincestring

    Only events after this time: Unix milliseconds, a date, or an ISO time

  • --limitnumber

    Max results per page

  • --cursorstring

    Continue from nextCursor

Example

Shell
pf integrations events
pf integrations events --in-project launch --since 2026-10-01
pf integrations betterstack statusShow the Better Stack connection and its task and write-back settings. Owners and admins only.

Example

Shell
pf integrations betterstack status
pf integrations betterstack connectConnect Better Stack with an Uptime API token. Project Feed checks the token and registers an incident webhook in Better Stack.

Options

  • --tokenstring

    Better Stack API token. BETTERSTACK_API_TOKEN also works.

  • --token-stdinboolean

    Read the API token from stdin

  • --teamstring

    Better Stack team, required for a global token

Example

Shell
printf %s "$BETTERSTACK_TOKEN" | pf integrations betterstack connect --token-stdin
pf integrations betterstack settingsTurn task creation or write-back on or off.

Options

  • --create-tasksstring

    on or off: new and reopened incidents become tasks

  • --write-backstring

    on or off: task status changes acknowledge, resolve, or reopen the incident

Example

Shell
pf integrations betterstack settings --write-back on
pf integrations betterstack disconnectDisconnect Better Stack. Removes its webhook in Better Stack, the stored token, and every mapping.

Options

  • --confirmboolean

    Skip confirmation prompt

Example

Shell
pf integrations betterstack disconnect --confirm
pf integrations betterstack status-page-urlPrint the secret URL to paste into a webhook subscription on each mapped status page. Needs integrations:write.

Example

Shell
pf integrations betterstack status-page-url
pf integrations betterstack sourcesList the Better Stack monitors, heartbeats, and status pages that can be mapped.

Options

  • --kindstring

    monitor, heartbeat, or status_page

Example

Shell
pf integrations betterstack sources --kind monitor
pf integrations betterstack mappingsList mapped Better Stack sources and their task setting.

Example

Shell
pf integrations betterstack mappings
pf integrations betterstack map <sourceId>Map a Better Stack monitor, heartbeat, or status page to a project.

Options

  • --kindstringrequired

    monitor, heartbeat, or status_page

  • --target-projectstring

    Project to map to. The global --project also works.

  • --create-tasksstring

    on or off: override the connection setting for this source

Example

Shell
pf integrations betterstack map 2049117 --kind monitor --target-project platform
pf integrations betterstack map-edit <mappingId>Move a Better Stack mapping to another project or change its task setting.

Options

  • --target-projectstring

    Move the mapping to this project

  • --create-tasksstring

    on, off, or default to follow the connection

Example

Shell
pf integrations betterstack map-edit <mapping-id> --create-tasks default
pf integrations betterstack unmap <mappingId>Remove a Better Stack mapping. Synced tasks and activity stay.

Options

  • --confirmboolean

    Skip confirmation prompt

Example

Shell
pf integrations betterstack unmap <mapping-id> --confirm

Raw API access

pf api uses your active profile and applies the same permissions and rate limits as other CLI commands. Run pf api --help for more examples.

pf api <method> <path>Call an API path with your credential injected. Supports GET, POST, PUT, PATCH, and DELETE, case-insensitive.

Options

  • --datastring

    Request body as a JSON string

  • --inputstring

    Read a JSON body from a UTF-8 file. Use - for piped standard input. Cannot be combined with --data.

  • --paramstring

    Query parameter as key=value. Repeatable. The last value for a key wins.

  • -f, --raw-fieldstring

    Add a string field as key=value. GET and DELETE send it as a query parameter; other methods put it in the JSON body. Repeatable. key[sub]=value nests an object and key[]=value appends to an array in a body.

  • -F, --fieldstring

    Add a typed field as key=value. true, false, null, and whole numbers are converted, and @path reads a file (@- reads standard input). Repeatable.

  • -i, --includeboolean

    Print the HTTP status and response headers before the body. With --json, --jq, or --template they go to standard error.

  • --paginateboolean

    On a GET, follow nextCursor and merge the pages into one response: every list field, such as tasks and removed, is joined across pages, and the other fields come from the last page. It stops after 100 pages or 10,000 rows.

  • --slurpboolean

    With --paginate, print an array of the raw pages instead of merging them.

Example

Shell
pf api GET /projects --param limit=10
pf api GET /tasks -f status=todo --paginate --jq '.tasks[].identifier'
pf api POST /tasks -f title="Fix login" -F projectId=abc123 -F priority=2
pf api POST /posts --data '{"title": "Sprint update", "content": "The login fix is ready for review.", "projectId": "abc123"}'
pf api PATCH /tasks/<id> --input task.json
cat task.json | pf api PATCH /tasks/<id> --input -
pf api GET /auth/check -i

Paths start with / and are relative to the API base. Full URLs and fragments are rejected. GET and DELETE do not accept bodies. --data, --input, and -f/-F fields are mutually exclusive. Valid JSON primitives such as false, 0, an empty string, and null are sent as written. Invalid input exits with code 2 before authentication or a request. An HTTP 204 response prints JSON null.

pf api routes [filter]List the API routes your credential can call, with their scopes and the matching CLI commands. The list comes from the route manifest bundled with your installed pf, so it matches that version.

Options

  • --methodstring

    Only routes for this HTTP method

  • --scopestring

    Only routes that need this scope

Example

Shell
pf api routes tasks
pf api routes --method POST --scope tasks:write
pf api routes --json

Administrative safety

  • Run a corresponding GET or list command before a mutation and save the exact resource ID.
  • Use JSON output for scripts. Do not parse the human table or infer identity from a display name.
  • Keep API keys, DNS provider credentials, audit files, and raw response bodies out of posts, tasks, screenshots, and shared logs.
  • Check rate limits before a batch, bound pagination, and make retried writes idempotent where the API supports an idempotency key.
  • Use a service account for owned automation instead of a personal token that disappears with one member.

Fix administrative CLI problems

An administrative command returns 403
Run pf auth check and verify the current workspace, member role, effective scopes, workspace access, and workspace policy. Owner-only and admin-only operations remain restricted through the CLI.
A domain remains unverified
Compare the exact record name, type, and value with public DNS. Wait for DNS propagation, check again, and trigger verification only after the public record matches.
An audit export is empty
Check the workspace and your role, then widen the date range or remove category filters one at a time. Save the query with the export.
An audit export is missing records
The export stops at --limit. Raise it up to 1000 or split the date range into smaller windows.
A raw request returns 400
Check the HTTP method, relative path, query parameter spelling, JSON body, and documented API version. Do not retry an unchanged invalid request.
A batch is rate limited
Read Retry-After or the rate-limit headers, stop parallel retries, and resume with bounded concurrency. Use pf limits to inspect current quota.

Next steps

Image preview
100%