...
Create a new page under --parent_id
:
Code Block | ||
---|---|---|
| ||
$ confluence.md --user user@name.net \ # Atlassian username --token 9a8dsadsh \ # API token or --password --url https://your-domain.atlassian.net \ # Confluence instance URL create \ # create or update --file README.md \ # markdown file --parent_id 182371 \ # parent page --title "new title" # title for a new page --add_meta # adds meta to source.md file |
...
The page is created and the file is decorated with metadata:
Code Block | ||
---|---|---|
| ||
$ head -n 3 markdown.md --- confluence-url: https://your-domain.atlassian.net/wiki/spaces/SP/pages/18237182/new+title --- |
...
Performing an update does not require providing --page_id
and --url
:
Code Block | ||
---|---|---|
| ||
$ confluence.md --user user@name.net --token 9a8dsadsh update --file README.md |
...
--page_id
PAGE_ID
define (or override) page id while updating a page
How to use it in a Python script?
ConfluenceMD wasn't designed to be used this way, but it's fairly simple to embed it in a Python script. See this example:
...