--- description: Get the program ID (Image ID) for a LEZ program. Use when the user asks for a program's ID, image ID, or program address (e.g. "what's the token program id", "get the amm program id"). --- # program-id The program ID is the RISC Zero Image ID derived from the compiled guest ELF binary. The program name corresponds to a top-level workspace directory. If none is specified, discover available programs by looking for `/methods/guest/Cargo.toml` and ask the user to pick one. ## Steps 1. **Check if the binary exists** at `/methods/guest/target/riscv32im-risc0-zkvm-elf/docker/.bin`. 2. **If missing, build it first** using `cargo risczero build --manifest-path /methods/guest/Cargo.toml`. - Docker must be running for this step. Fail fast if not. 3. **Inspect the binary** with `lez-cli inspect ` and report the program ID to the user.