brew tap fchimpan/gpc
brew install fchimpan/gpc/gpc
go install github.com/fchimpan/gpc
- make
$HOME/.gpc
directiry
mkdir ~/.gpc
- create
credentials
file
vim ~/.gpc/credentials
[default]
confluence_api_token = <your api token>
confluence_email = <confluence user email>
- create
config
file
vim ~/.gpc/config
[<profile name>]
space_key = confluence space key to generate page
domain = confluence domain. e.g. https://`domain`.atlassian.net/wiki/home
parent = parent page ID # optional. If parent is not set, the page is generated directly under the space
param | type | value |
---|---|---|
-b, --body | bool | If this flag is set, page body can be entered |
-c, --credentials | string | chose credential. default: [default] |
--debug | bool | debug flag |
% gpc
✔ dev # select parent
Page title: page title # input page title
# page generation succeeded!!
# title: page title
# https://my-domain.atlassian.net/wiki/spaces/my-space/pages/xxxx