---
name: "json5"
section: "1"
platform: "linux"
package: "node-json5"
version: "2.2.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/json5"
---

# json5(1)

Command line for the JSON5 Data Interchange Format (JSON5)

## NAME

cli.js - Command line for the JSON5 Data Interchange Format (JSON5)

## DESCRIPTION

-

  Usage: json5 \[options\] \<file\>

-

  If \<file\> is not provided, then STDIN is used.

-

  Options:

- **-s**, **--space**

  The number of spaces to indent or 't' for tabs

- **-o**, **--out-file** \[file\]

  Output to the specified file, otherwise STDOUT

- **-v**, **--validate**

  Validate JSON5 but do not output JSON

- **-V**, **--version**

  Output the version number

- **-h**, **--help**

  Output usage information
