Use cases
These recipes show how to combine Shell commands for common Confluence work. Each page walks through a scenario, the commands to run, and the limits that apply.
-
Reorganize pages — rename, copy, and move pages in the same space, including
find -namepipes intomv/cp -
Search and audit content — list a page tree, count pages, and search titles or page bodies
-
Manage page restrictions — list and change explicit view / edit restrictions with
chmod -
Recover previous versions — list history and restore a prior version with
checkout/restore -
Work faster — aliases,
^old^new, tab completion, and quoting -
Export page list as CSV — machine-readable children with
ls --format csv(RFC 4180); richerls -lfor human columns -
Find pages not updated recently — stale pages by last update with
find -mtime; optional-prunebefore same-spacemv -n(max 100) -
Find pages by name —
find -namedemo: youtu.be/pSerR_MbejE -
List page attachments —
attach lsdemo: youtu.be/DetSU-Tl2Dc -
List with details (
ls -l) — demo: youtu.be/jq0H0iubnDQ -
Page output with
less— demo: youtu.be/RlaeiJ2-kNc -
Shell theme —
themedemo: youtu.be/ML2gzbiiHQ0 -
Move selected Confluence pages to another parent — find by name or last update, then same-space
mvto another parent (max 100) -
Show a space as a page tree — hierarchy with
tree/tree -L 2(visual listing only) -
Space hygiene ops — see
tree, find stale withfind -mtime/-prune, export withls --format csv, then same-spacemv(max 100)
For command syntax, see the command reference. For boundaries, see Limitations.