2 releases
Uses new Rust 2024
0.1.1 | May 19, 2025 |
---|---|
0.1.0 | May 19, 2025 |
#4 in #pinocchio
27KB
574 lines
pinocchio-init
pinocchio-init
is a CLI tool for initializing new Solana programs using Pinocchio.
Templates
There are two templates available:
-
basic - A basic program with a single
lib.rs
file that logs "Hello, Solana!". -
full - A complete counter program with structured state, instructions, and tests.
Select the template that suits your use case and customize it as needed.
Installation
You can install pinocchio-init
using Cargo:
cargo install pinocchio-init
Usage
pinocchio-init <PROGRAM_NAME> [--template=basic|full]
<PROGRAM_NAME>
: The name of your new program.--template
: (Optional) Choosebasic
orfull
template. Defaults tobasic
.
Example:
pinocchio-init my-awesome-program --template=full
License
MIT
Dependencies
~16–28MB
~431K SLoC