# @pintora/cli

> A node.js version of pintora

Latest version **0.8.1** (published 2025-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pintora/cli
pnpm add @pintora/cli
yarn add @pintora/cli
bun add @pintora/cli
```

Provides the command `pintora`.

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.8.1 |
| Published | 2025-12-03 |
| First published | 2021-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18.12.0 |
| Dependencies | 8 |
| Unpacked size | 51.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1282 |
| Author | hikerpig |
| Maintainers | hikerpig |
| Keywords | pintora |

## Links

- npm: https://www.npmjs.com/package/@pintora/cli
- Repository: https://github.com/hikerpig/pintora
- Homepage: https://github.com/hikerpig/pintora#readme
- Issues: https://github.com/hikerpig/pintora/issues
- npm.io page: https://npm.io/package/@pintora/cli

## Dependencies (8)

- [jsdom](https://npm.io/package/jsdom.md) ^26.0.0
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [canvas](https://npm.io/package/canvas.md) ^3.0.1
- [consola](https://npm.io/package/consola.md) ^3.0.0
- [mime-types](https://npm.io/package/mime-types.md) ^3.0.0
- [@pintora/core](https://npm.io/package/@pintora/core.md) ^0.8.1
- [@pintora/renderer](https://npm.io/package/@pintora/renderer.md) ^0.8.1
- [@pintora/standalone](https://npm.io/package/@pintora/standalone.md) ^0.8.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.8.1 (latest) — 2025-12-03
- 0.8.0-alpha.1 (alpha) — 2025-01-30
- 0.0.0-test-20250127071202 (test) — 2025-01-27
- 0.0.0-test-20250110150743 (test-cli) — 2025-01-10
- 0.0.0-dev-20220521112651 (dev) — 2022-05-21
- 0.1.2-beta.0 (beta) — 2022-02-13
- 0.8.0 — 2025-06-07
- 0.8.0-alpha.0 — 2024-12-21
- 0.7.6 — 2024-06-19
- 0.7.5 — 2024-06-16
- 0.7.4 — 2024-04-09
- 0.0.0-test-cli-20240401155010 — 2024-04-01
- 0.7.3 — 2024-03-15
- 0.7.2 — 2024-02-28
- 0.7.1 — 2024-02-28
- … 63 more at https://npm.io/package/@pintora/cli/versions

## README

# `@pintora/cli`


@pintora/cli is a simple multi-command command-line Node.js application that transform the pintora DSL into diagram images.

You can install it globally with:

```sh
npm i -g @pintora/cli
```

Get some help with `pintora --help`:

## Usage

Pelease refer to the online [documentation and demo](http://pintorajs.vercel.app/docs/intro/) for more details.

```sh
pintora [command]

Commands:
  pintora render  Render DSL to diagram image

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
```

### pintora render

```sh
pintora render

Render DSL to diagram image

Options:
      --version           Show version number                          [boolean]
      --help              Show help                                    [boolean]
  -i, --input             Input file path                             [required]
  -o, --output            Output file path
  -p, --pixel-ratio       Pixel ratio                               [default: 2]
  -b, --background-color  Background color
  -t, --theme             Pintora theme                     [default: "default"]
  -w, --width             Canvas width
```

examples:

```sh
pintora render -i ../test-shared/example-files/sequence.pintora -o sequence.png

# Set image background color
pintora render -i ../test-shared/example-files/sequence-2.pintora -b "#FAFAFA" -o sequence-2.jpg

# Preview with theme 'dark'
pintora render -i ../test-shared/example-files/sequence-2.pintora --theme dark -o sequence-2.jpg

# Set canvas width to 1000, and set `core.useMaxWidth` to true by default
pintora render -i ../test-shared/example-files/sequence.pintora --width 1000 -o sequence-w-1000.jpg
```

---
_Source: https://npm.io/package/@pintora/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
