- Download the Atlassian Confluence CLI at
- Unzip it in the streams/ directory so that ${ccli} finds it. Otherwise set ${ccli} accordingly.
- The ATLASSIAN_PASSWORD does not have to be set, and you will be prompted for it.
- If you using emacs/vim wrappers it’s not required.
- To checkout all documents in a project called “Operations” with the short name of “ops”
- We simply
mkdir $docroot/ops
streams/streams fetch-all
vim $docroot/$project/Some File in Confluence
ATLASSIAN_PASSWORD="t00manys3crets" streams/streams push $docroot/$project/Some File in Confluence
vim $docroot/$project/Some File in Confluence
ATLASSIAN_PASSWORD="t00manys3crets" streams/streams pull $docroot/$project/Some File in Confluence
- When pulling docs from Confluence you may end up with a giant line of xml.
- Tidy seems to handle the the xml fine without stripping unknown tags.
- An example tidyrc is provided that should be copied to ${HOME}/.tidyrc to use.
tidy $docroot/$project/Some File in Confluence
vim $docroot/$project/Some new file
ATLASSIAN_PASSWORD="t00manys3crets" streams/streams push $docroot/$project/Some new file