> For the complete documentation index, see [llms.txt](https://corpus-core.gitbook.io/specification-colibri-stateless/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://corpus-core.gitbook.io/specification-colibri-stateless/developer-guide/bindings/cli/colibri-prover.md).

# colibri-prover

The colibri-prover command is used to create proofs for a given method and parameters. It works without any backend.

```sh
    # Create a proof for the eth_getBlockByNumber method
    colibri-prover -o block_proof.ssz eth_getBlockByNumber latest false
```

## Options

| Option     | Argument        | Description                                                   | Default       |
| ---------- | --------------- | ------------------------------------------------------------- | ------------- |
| `-c`       | `<chain_id>`    | Selected chain                                                | `MAINNET` (1) |
| `-t`       | `<testname>`    | Generates test files in `test/data/<testname>`                |               |
| `-x`       | `<cachedir>`    | Caches all requests in the cache directory                    |               |
| `-o`       | `<outputfile>`  | SSZ file with the proof                                       | `stdout`      |
| `-d`       | `<chain_store>` | Use `chain_data` from the `chain_store` found within the path |               |
| `-i`       |                 | Include code in the proof                                     |               |
| `<method>` |                 | The method to execute                                         |               |
| `<params>` |                 | Parameters for the method                                     |               |

## c4\_print\_version

[cli/prover.c](https://github.com/corpus-core/colibri-stateless/blob/v1.1.30/src/cli/prover.c#L97)

Main entry point for the colibri-prover CLI tool. Parses command-line arguments, creates a prover context, and executes the proof generation.

```c
int main(int argc, char* argv[]) {
  // Check for --version or -v flag
  if (argc >= 2 && (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0)) {
    c4_print_version(stdout, "colibri-prover");
```

**Parameters**

* **`argc`** : Number of command-line arguments
* **`argv`** : Array of command-line argument strings

**Returns**

EXIT\_SUCCESS on success, EXIT\_FAILURE on error


---

# 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, and the optional `goal` query parameter:

```
GET https://corpus-core.gitbook.io/specification-colibri-stateless/developer-guide/bindings/cli/colibri-prover.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
