// SPDX-License-Identifier: CC-BY-SA-4.0
= CLI Packaging (Prototype)

== Wrapper Script

The CLI is currently packaged as a wrapper script:

* `bin/a2ml`

It compiles the ReScript CLI and runs it via Deno or Node.

== Planned v1

* Standalone CLI artifact (GitHub Release)
* Checksums and reproducible build notes
* Media type registration draft (see `docs/IANA-MEDIA-TYPE.adoc`)

== Prototype Packaging (Current)

[source,bash]
----
just package-cli
ls dist/a2ml-cli.tar.gz dist/a2ml-cli.tar.gz.sha256
----

The archive includes `bin/a2ml`, `docs/a2ml.1`, `docs/CLI.adoc`, and `README.adoc`.

== Reproducibility Notes (Draft)

* Build the ReScript output with a clean `node_modules` tree.
* Run `just package-cli` from a clean git checkout.
* Record toolchain versions (`node`, `rescript`, `deno`).
