# Resolve DOIs

## Basic Usage

```bash
axm-bib doi 10.1145/363235.363259
```

Output:

```bibtex
@article{Hoare_1969,
  title   = {An axiomatic basis for computer programming},
  author  = {Hoare, C. A. R.},
  journal = {Communications of the ACM},
  year    = {1969},
  doi     = {10.1145/363235.363259},
}
```

## How It Works

DOI resolution uses the CrossRef API to fetch metadata and format it as BibTeX.

The BibTeX key is auto-generated from the first author's last name and year (e.g., `Hoare_1969`).

## Python API

```python
from axm_bib.pipeline import BibPipeline

pipeline = BibPipeline()
entry = pipeline.doi_to_bibtex("10.1145/363235.363259")

print(entry.key)     # "Hoare_1969"
print(entry.raw)     # Full BibTeX string
```
