Skip to main content

Create a Package

leo new

To create a new package, run:

leo new {$NAME}

Valid package names are kebab-case: lowercase letters and numbers separated by hyphens. This command will create a new directory with the given package name. The new package will have a directory structure as follows:

├── Leo.toml # Your program manifest
├── # Your program description
├── inputs/
│ ├── # Your program inputs
│ └── hello-world.state # Record state information
└── src/
└── main.leo # Your program file