SOLANA_KEYPAIR_PATH: Path to your Solana keypair file
SOLANA_CLUSTER: (Optional) Solana cluster to use (defaults to 'devnet')
Commands
Test Management
# Create a new chaos test
glitch test -p <program-id> -t FUZZ -d 300 -i 5
# Options:
# -p, --program <address> Target program address
# -t, --type <type> Test type (FUZZ, LOAD, EXPLOIT, CONCURRENCY)
# -d, --duration <seconds> Test duration in seconds (default: 300)
# -i, --intensity <level> Test intensity 1-10 (default: 5)
# View test results
glitch test results <test-id>
# Cancel a running test
glitch test cancel <test-id>
Governance
# Create a proposal
glitch governance propose \
-t "Test Title" \
-d "Description" \
-p <program-id> \
-s 1000
# Options:
# -t, --title <title> Proposal title
# -d, --description <desc> Proposal description
# -p, --program <address> Target program address
# -s, --stake <amount> Amount of GLITCH to stake
# Vote on a proposal
glitch governance vote -p <proposal-id> -v yes
# Execute a passed proposal
glitch governance execute <proposal-id>
# Run a 5-minute fuzz test with medium intensity
glitch test \
--program 11111111111111111111111111111111 \
--type FUZZ \
--duration 300 \
--intensity 5
Load Test
# Run a high-intensity load test
glitch test \
--program YOUR_PROGRAM_ID \
--type LOAD \
--duration 600 \
--intensity 8 \
--load-tps 5000