#solana #pinocchio #programs

app pinocchio-init

A CLI tool for initializing new Solana programs using Pinocchio

2 releases

Uses new Rust 2024

0.1.1 May 19, 2025
0.1.0 May 19, 2025

#4 in #pinocchio

MIT license

27KB
574 lines

pinocchio-init

pinocchio-init is a CLI tool for initializing new Solana programs using Pinocchio.

Templates

There are two templates available:

  1. basic - A basic program with a single lib.rs file that logs "Hello, Solana!".

  2. 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) Choose basic or full template. Defaults to basic.

Example:

pinocchio-init my-awesome-program --template=full

License

MIT

Dependencies

~16–28MB
~431K SLoC