Skip to content
Myr

README.md

This file

Path

README.md

80 lines · 2.5 KiB · Markdown

Last changed by

docs: clarify that prebuilt downloads are standalone executables (#3632)Hugohong258before adoption1b4109b

History of this file

Take it

The walk stopped after 200 commits: lines older than fa6a2ff point at it.

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 1–7why, one step back
1# jq
23`jq` is a lightweight and flexible command-line JSON processor akin to `sed`,`awk`,`grep`, and friends for JSON data. It's written in portable C and has zero runtime dependencies, allowing you to easily slice, filter, map, and transform structured data.45## Documentation67- **Official Documentation**: [jqlang.org](https://jqlang.org)

Replace jqplay.org with play.jqlang.org (#3265)Owen Oubefore adoption8ba03f7

line 8why, one step back
8- **Try jq Online**: [play.jqlang.org](https://play.jqlang.org)

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 9–14why, one step back
9
10## Installation1112### Prebuilt Binaries1314Download the latest releases from the [GitHub release page](https://github.com/jqlang/jq/releases).

docs: clarify that prebuilt downloads are standalone executables (#3632)Hugohong258before adoption1b4109b

lines 15–16why, one step back
15The platform-specific assets are standalone executables, not archives. On macOS and Linux,
16rename the downloaded file to `jq` and make it executable with `chmod +x jq`.

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 17–22why, one step back
17
18### Docker Image1920Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start quickly with Docker.2122#### Run with Docker

Replace jqplay.org with play.jqlang.org (#3265)Owen Oubefore adoption8ba03f7

line 23why, one step back
23

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 24why, one step back
24##### Example: Extracting the version from a `package.json` file

Replace jqplay.org with play.jqlang.org (#3265)Owen Oubefore adoption8ba03f7

line 25why, one step back
25

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 26–28why, one step back
26```bash
27docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'28```

Replace jqplay.org with play.jqlang.org (#3265)Owen Oubefore adoption8ba03f7

line 29why, one step back
29

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 30why, one step back
30##### Example: Extracting the version from a `package.json` file with a mounted volume

Replace jqplay.org with play.jqlang.org (#3265)Owen Oubefore adoption8ba03f7

line 31why, one step back
31

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 32–80why, one step back
32```bash
33docker run --rm -i -v "$PWD:$PWD" -w "$PWD" ghcr.io/jqlang/jq:latest '.version' package.json34```3536### Building from source3738#### Dependencies3940- libtool41- make42- automake43- autoconf4445#### Instructions4647```console48git submodule update --init # if building from git to get oniguruma49autoreconf -i # if building from git50./configure --with-oniguruma=builtin51make clean # if upgrading from a version previously built from source52make -j853make check54sudo make install55```5657Build a statically linked version:5859```console60make LDFLAGS=-all-static61```6263If you're not using the latest git version but instead building a released tarball (available on the release page), skip the `autoreconf` step, and flex or bison won't be needed.6465##### Cross-Compilation6667For details on cross-compilation, check out the [GitHub Actions file](.github/workflows/ci.yml) and the [cross-compilation wiki page](https://github.com/jqlang/jq/wiki/Cross-compilation).6869## Community & Support7071- Questions & Help: [Stack Overflow (jq tag)](https://stackoverflow.com/questions/tagged/jq)72- Chat & Community: [Join us on Discord](https://discord.gg/yg6yjNmgAC)73- Wiki & Advanced Topics: [Explore the Wiki](https://github.com/jqlang/jq/wiki)7475## License7677`jq` is released under the [MIT License](COPYING). `jq`'s documentation is78licensed under the [Creative Commons CC BY 3.0](COPYING).79`jq` uses parts of the open source C library "decNumber", which is distributed80under [ICU License](COPYING)