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

@lmoesle/camunda-cli

v0.1.0

Published

CLI for interacting with Camunda 8

Downloads

14

Readme

camunda-cli

camunda-cli is a TypeScript CLI for interacting with Camunda 8.

This initial setup provides:

  • A Commander-based CLI entrypoint (camunda-cli).
  • A hexagonal project structure with adapter, application, and domain layers.
  • Commands for downloading files from Camunda 8 Web Modeler.
  • TypeScript build with webpack.
  • npm scripts for build, lint, and test.

Setup

Use Node.js 24 or newer.

npm install

Build

npm run build

The bundled CLI is emitted to dist/bin/camunda-cli.js. The package library entrypoint is emitted to dist/index.js.

Run

Generate a Web Modeler JWT access token with file read permissions. Pass the token without the Bearer prefix. Provide it through CAMUNDA_MODELER_BEARER_TOKEN to keep it out of process listings. For example, read it without displaying or recording the value:

read -rsp 'Web Modeler bearer token: ' CAMUNDA_MODELER_BEARER_TOKEN
export CAMUNDA_MODELER_BEARER_TOKEN

Download the latest content of every Web Modeler file to the current directory:

camunda-cli download files

Download the latest content of one file to the current directory:

camunda-cli download file <file-id>

Download a specific saved version of one file:

camunda-cli download file <file-id> --version-id <version-id>

Both commands download to the current directory by default. Use --destination-directory <path> or -d <path> to choose another directory:

camunda-cli download files --destination-directory ./downloads
camunda-cli download file <file-id> -d ./downloads

Alternatively, pass the token directly to any download command with --bearer-token <token>.

The CLI targets Web Modeler REST API v1 at https://modeler.camunda.io/api/v1 by default. Use --modeler-api-url to target a self-hosted Camunda 8 instance:

camunda-cli download files --modeler-api-url http://localhost:8070/api/v1
camunda-cli download file <file-id> --modeler-api-url http://localhost:8070/api/v1

Library consumers can pass modelerApiBaseUrl to createDefaultCamundaCli to change the default URL. Web Modeler API v1 is deprecated; future releases will migrate to the Camunda Hub API v2.

Downloads replace regular files with the same output name through a same-directory temporary file. The CLI refuses to replace symbolic links.

For local development, place command arguments after --:

npm start -- hello-world
npm start -- hello-world Camunda
npm start -- download file <file-id> --bearer-token <token>

After installing the package globally or using it through npm, the command name is camunda-cli:

camunda-cli hello-world

Development

  • npm run lint lints source and test files.
  • npm test runs unit tests.

Structure

  • src/adapter/in contains inbound adapters such as the Commander CLI.
  • src/adapter/out contains outbound adapters such as console presenters.
  • src/application/ports contains inbound and outbound application ports.
  • src/application/usecases contains application use cases.
  • src/domain contains domain behavior.