Skip to content

Getting started

This page gets you from a clean checkout to a simulator print in the fewest steps.

cargo build --release -p reyin-cli
cargo build --release -p reyind

The CLI binary is target/release/reyin. The daemon is target/release/reyind.

./target/release/reyin --help

Expected output lists discover, status, print, jobs, job, settings, calibrate, identify and serve.

The simulator ships a virtual ZPL printer and needs no hardware. The —sim flag uses the built-in simulator provider.

./target/release/reyin --sim discover
./target/release/reyin --sim status
./target/release/reyin --sim print --wait --media 4x6 label.png

label.png can be any PNG the repo fixtures already contain, for example tests/fixtures/inputs/gradient_400x300.png. —media WIDTHxLENGTH inches is required when the document has no intrinsic media size. —wait blocks until the job reaches a terminal state.

./target/release/reyin --sim serve --bind 127.0.0.1:8631

This starts the print server with the simulator-backed manager. The IPP server exposes the simulator queue on the loopback address; it is for quick use and tests, not a public deployment.

The Rust facade example crates/reyin/examples/sim-print.rs shows the same flow through the reyin crate: build a Manager with a SimProvider, discover, print a raw ZPL document, and assert Completed. Run it with:

cargo run -p reyin --example sim-print --features "sim blocking drivers-zpl"
  • cli.md for every command, flag and exit code.
  • rust-library.md for the library API.
  • bindings.md for Node/Python/Dart.
  • daemon.md for reyind and services.md for IPP/sync/connector.

Source: docs/guides/getting-started.md at fe2ada6890.