5.5.2 • Published 8 months ago

@markdown-confluence/cli v5.5.2

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
8 months ago

@markdown-confluence/cli

@markdown-confluence/cli is a powerful tool that allows you to publish your markdown files as Confluence pages. It is designed to work seamlessly in various environments, including NPM CLI, Docker Container, and GitHub Actions, enabling you to use your docs wherever you need them. Comprehensive documentation for the tool can be found at https://markdown-confluence.com/.

Usage Examples

CLI

Example setup

.markdown-confluence.json:

{
  "confluenceBaseUrl": "https://markdown-confluence.atlassian.net",
  "confluenceParentId": "524353",
  "atlassianUserName": "andrew.mcclenaghan@gmail.com",
  "folderToPublish": "."
}

Environment Variables

macOS / Linux:

export ATLASSIAN_API_TOKEN="YOUR API TOKEN"

Windows:

set ATLASSIAN_API_TOKEN="YOUR API TOKEN"

Learn more about set command

CLI Command

npx @markdown-confluence/cli

Docker Container

Example setup

docker run -it --rm -v "$(pwd):/content" -e ATLASSIAN_API_TOKEN ghcr.io/markdown-confluence/publish:latest

GitHub Actions

Example setup

.github/workflows/publish.yml:

name: Publish to Confluence
on: [push]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Publish Markdown to Confluence
        uses: markdown-confluence/publish@v1
        with:
          atlassianApiToken: ${{ secrets.ATLASSIAN_API_TOKEN }}

Environment Variables

Add your API token as a secret in your GitHub repository settings:

  1. Go to your repository's Settings tab.
  2. Click on Secrets in the left sidebar.
  3. Click on New repository secret.
  4. Name it ATLASSIAN_API_TOKEN and enter your API token as the value.
  5. Click on Add secret.
5.5.1

8 months ago

5.5.2

8 months ago

5.5.0

10 months ago

5.2.4

12 months ago

5.2.3

1 year ago

5.4.0

12 months ago

5.2.2

1 year ago

5.3.0

12 months ago

5.2.1

1 year ago

5.2.0

1 year ago

5.1.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.7.5

1 year ago

4.9.0

1 year ago

4.8.0

1 year ago

5.2.6

12 months ago

5.2.5

12 months ago

4.7.4

1 year ago

4.7.3

1 year ago

4.7.2

1 year ago

4.7.1

1 year ago

4.7.0

1 year ago

4.6.4

1 year ago

4.6.3

1 year ago

4.6.2

1 year ago

4.6.1

1 year ago

4.6.0

1 year ago

4.5.0

1 year ago

4.4.0

1 year ago

4.3.0

1 year ago

4.2.8

1 year ago

4.2.7

1 year ago

4.2.6

1 year ago

4.2.5

1 year ago

4.2.4

1 year ago

4.2.3

1 year ago

4.2.2

1 year ago

4.1.1

1 year ago

4.1.0

1 year ago

4.0.4

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

3.7.0

1 year ago