# Install marcli with Homebrew

Parse MARC (ISO 2709) files. Version 1.3.1 via Homebrew; verified 2026-07-29.

## Install

```sh
sudo av install brew:marcli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install marcli
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:marcli
- **Package manager:** Homebrew
- **Version:** 1.3.1
- **Source summary:** Parse MARC (ISO 2709) files
- **Homepage:** <https://github.com/hectorcorrea/marcli>
- **Repository:** <https://github.com/hectorcorrea/marcli>
- **Last updated:** 2026-07-29T17:04:50+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- marcli (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.3.1
## Project history and usage

marcli is a small Go command-line parser for MARC records, focused on reading MARC binary and MARC XML files and extracting or converting bibliographic metadata from the shell.

### Project history

The marcli GitHub repository was created in July 2017. Its README defines the goal narrowly: parse large MARC files in either MARC binary or MARC XML form and provide basic functionality to find specific records within a file.

The project is intentionally modest, but it continued to receive releases over time: GitHub release metadata shows 1.0.1 in 2020, 1.1.0 in 2022, 1.2.0 in May 2025, and 1.3.x releases in August 2025.

### Adoption history

marcli's adoption is strongest in the library-technology niche where MARC files remain common exchange artifacts. The official README specifically recommends Homebrew as the easiest Mac or Linux installation path, and the Homebrew formula packages the Go-built cmd/marcli executable.

The repository topics and README connect it to code4lib and MARC21-style workflows, making it a practical package for cataloging-data automation rather than a general data-conversion suite.

### How it is used

Users run marcli with -file against .mrc or XML data. The README examples show printing records, matching records by string, selecting fields, counting records, and outputting Mnemonic MARC, MARC XML, MARC JSON, or MARC binary where supported.

For package users, the value is a single command that can inspect large library catalog exports without writing a parser or opening a heavyweight cataloging application.

### Why package nerds care

marcli is package-index significant because it packages a niche professional data format into a simple CLI. That is exactly the kind of tool Homebrew users reach for when a one-off shell pipeline meets an old institutional file format.

### Timeline

- 2017: Public GitHub repository created.
- 2020: 1.0.1 release published.
- 2022: 1.1.0 release published.
- 2025: 1.3.1 release published.

### Related projects

- The README links MARC background to the Library of Congress.
- Other MARC tooling includes library-specific parsers and converters, but marcli's official scope is command-line parsing and filtering.

### Sources

- <https://api.github.com/repos/hectorcorrea/marcli>
- <https://api.github.com/repos/hectorcorrea/marcli/releases?per_page=5>
- <https://formulae.brew.sh/formula/marcli>
- <https://github.com/hectorcorrea/marcli>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/marcli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/marcli.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
