Chio is a command-line tool designed to make it easy to set up and manage Pinocchio projects on Solana. It automates common development tasks including project initialization, building, testing, and deployment with simple commands.
- 🚀 Fast project scaffolding with best practices
- 📁 Proper directory structure for Solana/Pinocchio development
- 🔨 Simple build, test, and deployment commands
- 💻 Comprehensive testing environment setup
cargo install --git https://github.com/4rjunc/solana-chio --force-
Clone the repository
git clone https://github.com/4rjunc/solana-chio.git cd solana-chio -
Build the tool
cargo build --release
-
Install globally
cargo install --path .
# Initialize a new project
chio init <project-name>
# Build your project
chio build
# Run tests
chio test
# Deploy your program
chio deploy
# Get help
chio --helpCreate a new Pinocchio project and get started:
# Create a new project
chio init my-pinocchio-app
# Navigate to your project
cd my-pinocchio-app
# Build your project
chio build
# Run tests
chio test
When you initialize a project with chio init, it creates the following structure:
my-project/
├── Cargo.toml
├── src/
│ ├── lib.rs # Library crate using no_std
│ ├── entrypoint.rs # Program entrypoint
│ ├── errors.rs # Error definitions
│ ├── instructions/ # Program instructions
│ │ ├── mod.rs
│ │ ├── deposit.rs
│ │ └── withdraw.rs
│ └── states/ # Account state definitions
│ ├── mod.rs
│ └── utils.rs
└── tests/ # Test files
└── tests.rs
Contributions are welcome! Here's how you can contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests to ensure everything works
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Ensure you have Rust and Cargo installed
- Install Solana CLI tools
- Clone the repository
- Build with
cargo build --release - To install too
cargo install --path .
