jolt new command creates a new Jolt project with a pre-configured workspace structure, including both host and guest code.
Usage
Arguments
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
Generate WASM-compatible files and configuration.When enabled, modifies the generated
Cargo.toml to include WASM-specific dependencies and build configuration.Short form of
--wasm.Generated Project Structure
Runningjolt 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 generatedCargo.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:-
Navigate to the project directory:
-
Build the guest program:
-
Run the host to prove and verify:
-
View logs (optional):
Related Commands
jolt build
Build the guest program
CLI Overview
Learn about all CLI commands