TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/blueshift-gg/quasar/llms.txt
Use this file to discover all available pages before exploring further.
quasar CLI is the primary tool for working with Quasar Solana programs. It wraps every stage of your development workflow — from scaffolding a new project to deploying a compiled binary on-chain — into a single, consistent interface. Every command is designed around the zero-copy, zero-allocation design philosophy of the framework: fast to run, minimal in output, and predictable in behavior.
Installation
Clone the repository and install from thecli crate with Cargo:
Available Commands
All commands follow the patternquasar <command> [options]. Run quasar <command> --help to see the full flag list for any individual command.
| Command | Description |
|---|---|
init | Scaffold a new Quasar project |
add | Add instructions, state accounts, or error enums |
build | Compile the on-chain program to a .so binary |
test | Run the test suite (Rust or TypeScript) |
deploy | Deploy the program to a Solana cluster |
clean | Remove build artifacts |
config | Read and write global CLI settings |
idl | Generate the program IDL from a crate |
client | Generate TypeScript, Python, or Go client code from IDL |
lint | Audit the program surface for upgrade-safety issues |
profile | Measure per-function compute-unit usage |
dump | Disassemble sBPF bytecode |
keys | Manage the program keypair |
completions | Generate shell completion scripts |
Global Options
| Flag | Description |
|---|---|
-h, --help | Print help for the CLI or any subcommand |
-V, --version | Print the installed version |
--help after the command name:
Shell Completions
Thecompletions subcommand generates shell completion scripts for bash, zsh, fish, and PowerShell. Pipe the output to the appropriate location for your shell:
Inspecting Global Settings
The CLI maintains a global configuration file at~/.quasar/config.toml that stores your default toolchain, test framework, template preferences, and UI settings. Print all current values with:
Settings saved by
quasar config become the defaults for quasar init prompts. You can override any value at the command line with the corresponding flag.CLI Sub-pages
init & add
Scaffold a new project, add instructions, state, and errors, manage keypairs and config.
Build, Test, Deploy
Compile your program, run tests, and deploy to devnet or mainnet.
Profile & Dump
Measure compute-unit usage and disassemble sBPF instructions.
IDL & Client
Extract the program IDL and generate TypeScript, Python, or Go client code.
