# Creating indexes

Once the radiance tooling has been used to prepare a car file (or if you have downloaded a car file externally), you can generate indexes from this car file by using the `faithful-cli`:

```
NAME:
   faithful CLI index - Create various kinds of indexes for CAR files.

USAGE:
   faithful CLI index command [command options] [arguments...]

DESCRIPTION:
   Create various kinds of indexes for CAR files.

COMMANDS:
   cid-to-offset  
   slot-to-cid    
   sig-to-cid     
   all            Create all the necessary indexes for a Solana epoch.
   gsfa           
   sig-exists     
   help, h        Shows a list of commands or help for one command

OPTIONS:
   --help, -h  show help
```

### Examples

* `faithful-cli index all <car-file> <output-dir>`: Generate all **required** indexes for a CAR file.
* `faithful-cli index gsfa <epoch-number> <car-file> <output-dir>`: Generate the gsfa index for a CAR file.

NOTES:

* You need to have the CAR file available locally.
* The `cid_to_offset_and_size` index has an older version, which you can specify with `cid_to_offset`instead of `cid_to_offset_and_size`.

### Flags:

* `--tmp-dir=/path/to/tmp/dir`: Where to store temporary files. Defaults to the system temp dir. (optional)
* `--verify`: Verify the indexes after generation. (optional)
* `--network=<network>`: Network to use for the gsfa index. Defaults to `mainnet` (other options: `testnet`, `devnet`). (optional)


---

# Agent Instructions: 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.old-faithful.net/running-old-faithful/sourcing-data/generating-from-rocksdb/creating-indexes.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.
