# Trade Efficiently - Introducing The CLI Tool

### What Is The Prodigy.Fi CLI? <a href="#what-is-the-prodigy.fi-cli-tool" id="what-is-the-prodigy.fi-cli-tool"></a>

The Prodigy.Fi CLI is a programmatic interface that lets developers, traders, and protocols interact with Prodigy.Fi's structured yield vaults directly from the command line, without touching the UI.

Use it to deploy vaults at scale, subscribe to existing vaults, automate recurring strategies, and integrate Prodigy.Fi into your own systems.

#### What You Can Do <a href="#what-does-it-do" id="what-does-it-do"></a>

* **Create vaults:** Deploy structured yield vaults with custom parameters in bulk via a CSV configuration file.
* **Subscribe to vaults:** Subscribe to any active vault programmatically using a single terminal command.
* **Automate strategies:** Run batch vault creation and subscription logic inside trading bots or scheduled jobs.
* **Integrate with your stack:** Embed vault management into protocols, dashboards, or execution pipelines.

#### How It Works?

The CLI uses two configuration files:

| File                | Purpose                                                                          |
| ------------------- | -------------------------------------------------------------------------------- |
| `config.json`       | Wallet credentials, encrypted keystore, and network (RPC) settings               |
| `create-vaults.csv` | Vault parameters: token pair, direction, linked price, yield %, expiry, quantity |

Once configured, a single command deploys all vaults defined in your CSV, or subscribes you to a specified vault address on-chain.

#### Who Is It For? <a href="#who-is-it-for" id="who-is-it-for"></a>

* **Algorithmic traders & trading bots:** Automate vault creation or subscription as part of a broader execution strategy. Define your parameters in the CSV, trigger via cron or bot logic, and let the CLI handle on-chain interaction.
* **Market makers:** Deploy and refresh vaults frequently in response to market conditions, without manual UI interaction. Batch creation means you can update your entire position set in a single run.
* **Protocols integrating with Prodigy.Fi:** Embed vault management into your own platform. Use the CLI as a reference for how to interact with our contracts, or run it as a subprocess within your backend.
* **Power users:** If you trade frequently and manage multiple vaults, the CLI eliminates repetitive UI steps and lets you version-control your strategies.

***

### Quick Start <a href="#why-use-the-cli" id="why-use-the-cli"></a>

{% columns fullWidth="false" %}
{% column %}
{% content-ref url="trade-efficiently-introducing-the-cli-tool/vault-creation-cli-guide" %}
[vault-creation-cli-guide](https://prodigyfi.gitbook.io/structured-yields/build-with-prodigy.fi/trade-efficiently-introducing-the-cli-tool/vault-creation-cli-guide)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
{% content-ref url="trade-efficiently-introducing-the-cli-tool/vault-subscription-cli-guide" %}
[vault-subscription-cli-guide](https://prodigyfi.gitbook.io/structured-yields/build-with-prodigy.fi/trade-efficiently-introducing-the-cli-tool/vault-subscription-cli-guide)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

**Repository:** [github.com/prodigyfi/dci-cli](https://github.com/prodigyfi/dci-cli)
