Skip to content

Neocryptoquant/pino-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pino-cli

Bootstrap Pinocchio Solana programs instantly. No more manual Cargo.toml headaches.

Installation

cargo install --path .

Quick Start

# Interactive mode
pino-cli init

# Non-interactive
pino-cli init my-program --token --ata --logging --test litesvm --no-interactive

Usage Examples

# Minimal token program
pino-cli init my-token --token --test litesvm --no-interactive

# Full-featured program
pino-cli init my-program --token --ata --logging --system --pubkey --test litesvm --no-interactive

# Workspace
pino-cli init my-workspace --workspace

Available Flags

--token                        # pinocchio-token
--ata                          # pinocchio-associated-token-account
--logging                      # pinocchio-log
--system                       # pinocchio-system
--pubkey                       # pinocchio-pubkey
--test <FRAMEWORK>             # litesvm, surfpool, solana-program-test
--solana-version <VERSION>     # Specify Solana version
--pinocchio-version <VERSION>  # Specify Pinocchio version
--edition <EDITION>            # 2021 or 2024 (auto-detected by default)
--workspace                    # Create workspace instead of single program
--no-interactive              # Skip prompts

What You Get

my-program/
├── Cargo.toml                 # All deps configured
├── Makefile                   # make build, make test, make deploy-devnet
├── src/lib.rs                 # Entrypoint with auto-generated program ID
├── tests/test_litesvm.rs      # Ready-to-run tests
└── target/deploy/my_program-keypair.json

Makefile Commands

make build          # cargo build-sbf
make test           # Run all tests
make deploy-devnet  # Deploy to devnet
make program-id     # Show program pubkey

Why pino-cli?

Pinocchio is the leanest Solana framework (zero deps, smallest binaries), but setting up Cargo.toml with all the versioned crates is tedious. This tool fixes that.

Troubleshooting

solana-keygen not found?

sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

build-sbf edition error?

pino-cli init my-program --edition 2021

// 0xAbim ++++++ // Built for Solana builders who value simplicity

Author: @eaabimbola | neocryptoquant License: MIT OR Apache-2.0

About

CLI tool to create Pinocchio Solana Programs with Ease.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages