Skip to content

Installation

  • Rust 1.85+ (install via rustup)
  • A Rust project with a Cargo.toml in the repository root

Clone the repository and install the CLI:

Terminal window
git clone https://github.com/your-org/lexicon.git
cd lexicon
cargo install --path crates/cli

This installs the lexicon binary into your Cargo bin directory (typically ~/.cargo/bin/).

Terminal window
lexicon --version

Lexicon uses clap for argument parsing. You can generate shell completions for your shell if needed by consulting the clap documentation.

Once installed, initialize lexicon in your project:

Terminal window
cd /path/to/your/rust/project
lexicon init

See the Quickstart for a full walkthrough.