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
- spacer
Small command-line utility for adding spacers to command output - istioctl
Istio configuration command-line utility - linkerd
Command-line utility to interact with linkerd - pk
Field extractor command-line utility - gistit
Command-line utility for creating Gists - aggligator-util
Aggligator command line utilities - shodan
Python library and command-line utility for Shodan - egctl
Command-line utility for operating Envoy Gateway
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents