Current availability
The CLI source lives in this repository underpackages/create-roll-codes. Build it locally before using it.
Primary command
Example
Useful flags
| Flag | Purpose |
|---|---|
--yes | Run non-interactively for scripts or agents. |
--dir <path> | Write the generated project to a custom directory. |
--git-ref <ref> | Pin the roll.codes dependency to a specific ref. |
--skip-install | Generate files without running forge install. |
--force | Allow generation in a non-empty directory. |
Generated starter files
src/DiceDuelConsumer.soltest/DiceDuelConsumer.t.solscript/DeployDiceDuelConsumer.s.solfoundry.tomlremappings.txt
IVRFSystem surface:
requestRandomNumberWithTraceId(uint256)requestFee()randomNumberCallback(uint256,uint256)
When to use the CLI
Choose the CLI when you want:- the fastest path to a working sample
- a known-good test and deploy scaffold
- a reproducible non-interactive setup flow
Related pages
Quickstart
Follow the end-to-end starter flow after scaffolding.
Install and setup
Wire an existing project manually if you do not want a generated starter.
Troubleshooting
Debug install failures, remapping issues, and callback problems.