AptLynx

Command-line tool

xmlstarlet

brew/xmlstarlet

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

XML command-line utilities

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

scoop install xmlstarlet

macOS

brew install xmlstarlet

Linux

brew install xmlstarlet

Format an XML document and print to `stdout`

xmlstarlet format path/to/file.xml

Format an XML document piped from `stdin`

cat path/to/file.xml | xmlstarlet format

Print all nodes that match a given XPath

xmlstarlet select --template --copy-of xpath path/to/file.xml

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents