npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

confluencedc-cli

v1.0.22

Published

Command-line interface for [Confluence Data Center](https://developer.atlassian.com/server/confluence/confluence-rest-api-summary/). 19 commands across 5 domains — pages, comments, attachments, labels, and search.

Downloads

4,165

Readme

confluencedc-cli

Command-line interface for Confluence Data Center. 19 commands across 5 domains — pages, comments, attachments, labels, and search.

Install

npm install -g confluencedc-cli

Setup

export CONFLUENCE_URL="https://confluence.example.com"   # Base URL of your Confluence instance
export CONFLUENCE_TOKEN="your-personal-access-token"      # HTTP Access Token from Confluence

Commands

All commands output JSON. Add --pretty to pretty-print.

page

| Command | Description | |---------|-------------| | confluencedc page get [pageId] | Get a page by ID, or by --title + --space | | confluencedc page children <pageId> | Get child pages | | confluencedc page history <pageId> | Get version history | | confluencedc page create | Create a page (--space, --title, --body, --parent, --format: storage/wiki) | | confluencedc page update <pageId> | Update a page (auto-fetches current version) | | confluencedc page delete <pageId> | Delete a page |

comment

| Command | Description | |---------|-------------| | confluencedc comment list <pageId> | List comments on a page | | confluencedc comment create <pageId> | Create a comment (wiki markup) | | confluencedc comment update <commentId> | Update a comment (auto-fetches version) | | confluencedc comment delete <commentId> | Delete a comment | | confluencedc comment reply <commentId> | Reply to a comment (threaded) |

attachment

| Command | Description | |---------|-------------| | confluencedc attachment list <pageId> | List attachments on a page | | confluencedc attachment download <pageId> <filename> | Download a single attachment | | confluencedc attachment download-all <pageId> | Download all attachments to a directory | | confluencedc attachment upload <pageId> <files...> | Upload one or more files | | confluencedc attachment delete <pageId> <attachmentId> | Delete an attachment |

label

| Command | Description | |---------|-------------| | confluencedc label list <pageId> | List labels on a page | | confluencedc label add <pageId> <labels...> | Add labels to a page |

search

| Command | Description | |---------|-------------| | confluencedc search <cql> | Search using CQL (--limit, --expand) |

Pagination

List commands accept --limit to control page size. Responses include a nextPage cursor — pass it back as --start to fetch the next page. When nextPage is null, there are no more results.

Examples

# Get a page by ID
confluencedc page get 12345

# Find a page by title in a space
confluencedc page get --title "Architecture Overview" --space AITF

# Get child pages
confluencedc page children 12345

# Create a page
confluencedc page create --space AITF --title "New Page" --body "<p>Hello</p>" --format storage

# Create a page under a parent
confluencedc page create --space AITF --title "Sub Page" --body "h1. Hello" --format wiki --parent 12345

# Update page content
confluencedc page update 12345 --body "<p>Updated content</p>"

# Create a comment (wiki markup)
confluencedc comment create 12345 --body "Looks good, ship it"

# Reply to a comment
confluencedc comment reply 67890 --body "Agreed"

# Search with CQL
confluencedc search 'space = "AITF" AND type = "page" AND text ~ "deployment"'

# Download all attachments from a page
confluencedc attachment download-all 12345 --output ./downloads

# Upload a file
confluencedc attachment upload 12345 ./diagram.png

Content Formats

Confluence supports two body formats:

  • storage — Confluence storage format (XHTML-like). Use for precise control.
  • wiki — Wiki markup. Simpler syntax, auto-converted to storage on save.

Comments always use wiki markup.