fchimpan / gpc

a cli tool to generate pages in confluence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A tool to generate pages in confluence(gpc)

install

brew

brew tap fchimpan/gpc
brew install fchimpan/gpc/gpc

go install

go install github.com/fchimpan/gpc

setup

  1. make $HOME/.gpc directiry
mkdir ~/.gpc
  1. create credentials file
vim ~/.gpc/credentials

[default]
confluence_api_token = <your api token>
confluence_email = <confluence user email>
  1. 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

usage

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

About

a cli tool to generate pages in confluence

License:Other


Languages

Language:Go 100.0%