Skip to main content
The jolt new command creates a new Jolt project with a pre-configured workspace structure, including both host and guest code.

Usage

Arguments

string
required
The name of the project to create. This will be used as:
  • The directory name
  • The package name in Cargo.toml
  • The binary name

Options

boolean
default:"false"
Generate WASM-compatible files and configuration.When enabled, modifies the generated Cargo.toml to include WASM-specific dependencies and build configuration.
boolean
Short form of --wasm.

Generated Project Structure

Running jolt new my-project creates the following structure:

Host Code (src/main.rs)

The generated host code demonstrates the complete prove/verify workflow:

Guest Code (guest/src/lib.rs)

The guest library contains provable functions:

Workspace Configuration

The generated Cargo.toml includes:

Examples

Create a Standard Project

Create a WASM Project

Welcome Screen

When creating a project in an interactive terminal, Jolt displays:

Next Steps

After creating a project:
  1. Navigate to the project directory:
  2. Build the guest program:
  3. Run the host to prove and verify:
  4. View logs (optional):

jolt build

Build the guest program

CLI Overview

Learn about all CLI commands