cix index
Builds or updates the symbol index for the current repository.
bash
$ cix indexWith the GitHub App connected you rarely need this. cix keeps the index up to
date as you push, so it reflects your latest pushed commit automatically. Reach
for cix index to force a refresh — after a large change, or when
cix doctor reports the index is stale.
Flags
| Flag | What it does |
|---|---|
--push | Build the index from your local working tree and upload it as your private index. No GitHub App needed; git is only read. |
--full | With --push, rebuild from scratch instead of sending what changed |
--github-token | Supply a GitHub credential for a repo no App installation covers. Takes no value — read from your environment or a hidden prompt, used once, never stored. |
--file PATH | Reindex specific files rather than walking the repo. Repeatable. |
--rebuild | Request a full rebuild |
--retire | Retire your duplicate index of a repo whose owner already has one, so reads fall through to theirs. Previews and asks first. |
--yes | With --retire, skip the confirmation prompt |
Indexing without the GitHub App
If the App isn't installed — or the code isn't on GitHub — build and upload the index yourself:
shell
$ cix index --pushNothing reindexes on its own in this mode; run it again when you want the index to catch up. See Index without GitHub.
Related
- Keep your index fresh — when a refresh matters.
- Understanding index state — what "stale" means and how cix tells you.
- Index issues — troubleshooting.