> 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

Using Fida from the Command Line

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.
