The cargo-stylus command-line interface (CLI) is a crucial tool for developing, verifying, and deploying Arbitrum Stylus smart contracts written in Rust. Below are some common commands and their usage:
Creating a New Stylus Project
To start a new Stylus project, use the following command. This clones a local copy of a starter project:
cargostylusnew<YOUR_PROJECT_NAME>
For a minimal setup, you can use:
cargostylusnew--minimal<YOUR_PROJECT_NAME>
Checking Your Project
To ensure your project is valid and can be deployed on the Arbitrum network, use: