Cardonnay is a command-line tool for setting up and managing local Cardano testnets.
It supports multiple preconfigured testnet types and makes it easy to inspect and control their lifecycle.
$ cardonnay create -t conway_fast
Starting the testnet cluster with `/var/tmp/cardonnay/cluster0_conway_fast/start-cluster`:
[...]
Cluster started 🚀ℹ️ Pro Tip: Add
-bto create the testnet in the background, or-c "comment"to add a comment.
$ cardonnay control ls
[
{
"instance": 0,
"type": "conway_fast",
"state": "started",
"comment": null
}
]$ cardonnay inspect faucet -i 0
{
"address": "addr_test1vpgm9cj9u3k63642vju9jqgeqy393upttt0qtwptlesy08gx620qd",
"vkey_file": "/var/tmp/cardonnay/state-cluster0/shelley/genesis-utxo.vkey",
"skey_file": "/var/tmp/cardonnay/state-cluster0/shelley/genesis-utxo.skey"
}source <(cardonnay control print-env -i 0)
cardano-cli query tip --testnet-magic 42$ cardonnay control stop-all
Stopping the testnet cluster with `/var/tmp/cardonnay/state-cluster0/stop-cluster`:
[...]
Cluster terminated!If you use Nix, you can spin up a development shell with all dependencies:
nix developThis will provide a fully set-up environment, including Python, Cardano binaries, and jq.
ℹ️ NOTE: To use the latest
masterbranch ofcardano-node, run
nix flake update --accept-flake-config --override-input cardano-node github:IntersectMBO/cardano-node/master
nix develop --accept-flake-configEnsure the following dependencies are installed and available in your PATH:
python3jqcardano-nodecardano-cli- optional:
cardano-submit-api
Then install Cardonnay in a virtual environment:
# Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install Cardonnay
pip install -U --require-virtualenv cardonnay
# (Optional) Enable shell completions for Bash
source completions/cardonnay.bash-completion