---
-name: Thunderbiscuit
+name: thunderbiscuit
photo:
twitter: thunderB__
mastodon: https://fosstodon.org/@thunderbiscuit
-github: https://github.com/thunderBiscuit
+github: https://github.com/thunderbiscuit
web: https://thunderbiscuit.com/
---
description: "Demonstrate how to use a descriptor wallet with different spending policies"
authors:
- Steve Myers
- - Thunderbiscuit
+ - thunderbiscuit
date: "2021-02-23"
tags: ["guide", "descriptor"]
permalink: "/blog/2021/02/spending-policy-demo/"
### Step 0: Install a recent version `bdk-cli`
```bash
-cargo install bdk-cli --features repl,electrum,esplora
+cargo install bdk-cli --features electrum
# confirm bdk-cli is installed
bdk-cli --version
-BDK CLI 0.2.0
+BDK CLI 0.4.0
# bdk-cli usage can be explored with the `help` sub-command
bdk-cli help
# all features with the async esplora client
cargo install --git https://github.com/bitcoindevkit/bdk-cli --features=esplora-reqwest,compiler
-# minimal install
+# minimal install (only repl feature is on by default)
cargo install --git https://github.com/bitcoindevkit/bdk-cli
```