Move docs and manage comments
Move a doc to another space or parent, and add, edit, resolve, react to, or delete doc comments from pf.
Move docs
Moving a doc into or out of a private or project space changes who can see it, so it needs manage access to the doc. Without --parent, the doc goes to the top level of the target space.
pf docs move <id>Move a doc and all of its subpages
Options
--spacestringTarget space (default: the current space)
--parentstringParent doc in the target space (default: top level)
--positionnumber0-based position among the new siblings (default: last)
Example
pf docs move <doc-id> --parent <parent-doc-id>
pf docs move <doc-id> --space <space-id> --position 0 --jsonDoc comments
Add, list, edit, resolve, react to, and delete comments on a doc. Pass text with --content, or read it from a file or stdin with --content-file.
pf docs comments list <docId>List comments on a doc
alias: pf docs comments ls
Options
--resolvedbooleanOnly resolved threads
--unresolvedbooleanOnly unresolved threads
--authorstringOnly comments by this user ID, or me
--assigneestringOnly comments assigned to this user ID, or me
--parentstringroot for top-level comments, or a comment ID for its replies
--limitnumberMaximum results, 1 to 100 (default 50)
--cursorstringCursor from the previous page
Example
pf docs comments list <doc-id> --limit 20
pf docs comments list <doc-id> --unresolved --assignee mepf docs comments add <docId>Add a comment, or reply to one with --parent
Options
--contentstringComment text. Use this or --content-file.
--content-filestringRead the comment from a file, or - for stdin
--formatstringplaintext, markdown, or platejs (default markdown)
--parentstringComment ID to reply to
Example
pf docs comments add <doc-id> --content "**Ready** for review"
pf docs comments add <doc-id> --parent <comment-id> --content "Fixed in the latest version."pf docs comments edit <docId> <commentId>Edit a comment
Options
--contentstringComment text. Use this or --content-file.
--content-filestringRead the comment from a file, or - for stdin
--formatstringplaintext, markdown, or platejs (default markdown)
--expected-updated-atnumberFail with 412 if the comment changed since this updatedAt
Example
pf docs comments edit <doc-id> <comment-id> --content-file note.md --format markdownpf docs comments resolve <docId> <commentId>Resolve a comment thread, or reopen it with --reopen
Options
--reopenbooleanReopen a resolved thread instead
Example
pf docs comments resolve <doc-id> <comment-id>
pf docs comments resolve <doc-id> <comment-id> --reopenpf docs comments react <docId> <commentId> <emoji>Toggle your reaction on a comment
Example
pf docs comments react <doc-id> <comment-id> 👍pf docs comments reactions <docId> <commentId>List reaction counts on a comment
Example
pf docs comments reactions <doc-id> <comment-id>pf docs comments delete <docId> <commentId>Delete a comment
alias: pf docs comments rm
Options
--confirmbooleanSkip the confirmation prompt
--dry-runbooleanPreview without making changes
Example
pf docs comments delete <doc-id> <comment-id> --dry-run- Running react again with the same emoji removes your reaction. Reactions need a key with reactions scopes as well as docs scopes.
- Only the comment author or a workspace owner or admin can delete a comment. Replies stay in the thread after a delete.
- Use --cursor with the cursor from the previous page to read more comments.
Fix move and comment problems
- A move is refused
- Moves that change a doc's audience need manage access to the doc. The parent must be an active doc that you can edit, and a doc cannot move under one of its own subpages.
- A comment command is refused
- Comment deletes need the comment author or an owner or admin. Reactions also need a reactions scope on the key.