Make sure you have a wallet set up at
The CLI will use this wallet as the default fee payer and mint authority.
~/.config/solana/id.json. Get one here, if you don’t have one.The CLI will use this wallet as the default fee payer and mint authority.
Installation
1
Install the ZK Compression CLI
Ensure you have Node >= v20.9.0 installed on your machine. Windows users do not require WSL.
Building from source
Building from source
If you prefer to build the CLI from source, follow the steps below to install the necessary prerequisites.1. Activate the Development EnvironmentEnsure you are at the root of the monorepo.2. Install and build the monorepo from source. This also builds the CLI.3. Make your CLI available globally
2
Set Up Your Environment
By default, the CLI interacts with localnet. You can view the current config by running:1. Once globally installed, start the Light test validatorThis starts a Solana test-validator with the Light System programs and accounts, a prover server, and the Photon indexer as background processes against a clean ledger.2. Ensure you have sufficient localnet fundsNow you’re all set up to run CLI commands!
Note:The CLI currently runs the photon indexer and light-prover as background processes at port:
8784 and 3001 respectively.Alternative: Using Devnet
Alternative: Using Devnet
To switch to Devnet, point the URLs to an RPC supporting ZK Compression. For example, run:Also adjust your solana config:
Commands
Create a compressed token mintSupport
- Always feel free to join the Developer Discord for help!
- For more info about the canonical indexer implementation built and maintained by Helius Labs, refer to the Photon codebase.