Clementine CLI
A wallet-agnostic command-line tool for depositing 10 BTC from Bitcoin to Citrea and withdrawing 10 cBTC from Citrea to Bitcoin.
For more information about the Clementine bridge, visit Clementine: trust-minimized Bitcoin Bridge.
Clementine can also be used through the Clementine Web App: clementine.citrea.xyz for mainnet and clementine.testnet.citrea.xyz for testnet.
If you are looking for bridging smaller amounts, you can use third party bridges. Visit https://citrea.xyz/bridge for more information.
If you encounter any issues, email us at clementine-cli@citrea.xyz.
Installation
Choose one of the following installation paths.
Option A: Build from source
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shInstall Clementine CLI:
cargo install --git https://github.com/chainwayxyz/clementine-cli --tag v0.1.0 --locked --forceOption B: Download a pre-built binary and verify it
See Download & Verify for instructions on downloading pre-built binaries and verifying signatures.
Initialize and configure
Install the default configuration by running the CLI init command which creates the ~/.clementine/bridge_cli_config.toml file for you:
Show configuration:
Show help:
Quick Usage
By default, clementine-cli uses bitcoin (mainnet) network. If you wish to make deposits and withdrawals on testnet, please provide --network testnet flag every time you invoke clementine-cli. Throughout the docs, network aliases are used interchangeably: bitcoin/mainnet, testnet4/testnet, signet/devnet, and regtest.
Deposit
Withdrawal
Two-Device Security
We suggest using Clementine CLI with two devices for maximum security:
Airgapped device: All wallet creation, key generation, and signing operations
clementine-cli wallet createclementine-cli deposit create-signed-recovery-txclementine-cli withdraw generate-withdrawal-signaturesOnline device: Status monitoring, address generation, broadcasting
Documentation
Download & Verify - Download pre-built binaries and verify signatures
Wallet Guide - Wallet operations
Deposit Guide - Deposit Bitcoin to Citrea
Withdrawal Guide - Withdrawal from Citrea to Bitcoin
Advanced Usage - Advanced users only: signet/regtest config, API/RPC selection, hidden CLI commands
Reproducible Builds - Build and verify binaries reproducibly
Last updated
Was this helpful?