Skip to content

How do I move Confluence pages from a command line?

Shell for Confluence is a free bash-like console in the space. The mapping is site root (/), then spaces (including personal spaces), then pages.

Yes, with multiple sources in one mv command, in the same space:

$ mv pageA pageB pageC destParent

Successful moves are kept if another source fails. There is no glob / wildcard bulk mv, and no multi-select for 50–100 filtered pages. Native “move entire tree” and REST ancestor updates are separate from this app.

Yes. Root ls and Tab completion list personal spaces as well as global spaces. Archived spaces are omitted. cd into a personal space by name, the same as any other space.

Can I list, delete, or rename attachments?

Section titled “Can I list, delete, or rename attachments?”

No. Attachment commands are not available.

Navigation: ls, ls -l, cd, pwd. Organize: mv, cp, rm / del, touch / mkdir. Inspect and process text: cat, open, echo, head, tail, grep. Help: help, help <command>. Pipes: ls | grep …, cat path | head. Themes: theme.

User guide: /shell-for-confluence-cloud/guide-for-users/