> For the complete documentation index, see [llms.txt](https://docs.fida.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fida.finance/usage/command-line-interface.md).

# Command Line Interface

For the purpose of deploying policy contracts on the network we plan to develop software in the form of a `cli` (command-line interface).  The fida `cli` has two parts: an `on-chain` component written in `Haskell` and an `off-chain` component written in `Purescript`.

Of the three main actors involved: the policy broker, policy owner, and investors;  the policy broker, possessing special permissions, can, for instance, trigger state transitions of the policy or mark it as discoverable on the chain. All actors, when using the `cli`, are required to provide access to their wallets in the form of script input parameters. The `cli` is capable of crafting a transaction, signing it using the provided key, and sending it to the chain.

Investors, utilizing the `cli`, can search the blockchain for a Fida Policy available for funding and contribute to the funding by purchasing a Fida Card Policy through the issuance of an appropriate transaction. On the other hand, the policy owner can monitor the progress of the funding phase using the `cli` by querying the blockchain for specific policy information or obtaining a list of all policies in which they are the owner. Once the policy is fully funded, the policy broker, upon contacting the client, triggers a Fida Policy state transition, and the policy becomes "on risk" from that point onward.

The commands on the `cli` match the labeled transition methods which would move the policy contracts and investor contracts. You can read more about [Policy Management](/usage/command-line-interface/policy-management.md) and [Claims Management](/usage/command-line-interface/claims-management.md) in their respective sections.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fida.finance/usage/command-line-interface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
