Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

fcs command line

Full help for the client and each subcommand, as printed by the binary. The narrative guide is Command-line client.

fcs --help

Search the code index kept by a running fast_code_search server.

`fcs QUERY` is `fcs search QUERY`. The query is the web UI's: literal text, like rg -F (several words are one phrase; quotes and a leading - are text), plus file:PATTERN, -file:PATTERN, lang:rust, case:yes, word:yes. Put a query starting with - after --.

Exit status: 0 = matches found, 1 = no matches, 2 = error.

Usage: fcs [OPTIONS] <COMMAND>

Commands:
  search    Search file contents (the default; `fcs QUERY` works too)
  refs      Find references (call sites, type mentions) of an identifier; `kind:call`, `kind:type`, `kind:value`, `kind:attribute` keep one kind
  symbols   Search symbol definitions (functions, types, classes, ...) only
  impact    The files that use each function, class, method or constant a diff changes (default: your uncommitted changes, `git diff HEAD`)
  read      Read an indexed file with line numbers (MCP read_file)
  graph     The import graph: deps, affected, path, overview
  status    Show whether the server is reachable and what it has indexed; with paths, whether each file is indexed and current (MCP index_status)
  mcp       Serve MCP over stdio by relaying to the server's /mcp endpoint (for agents that launch a command rather than connect to a URL)
  check     Check fcs against independent tools on your own code: generated queries against ripgrep, and the import graph against Python's and TypeScript's own resolvers when they are installed
  diagnose  Summarize the server's diagnostic captures (written when `[diagnostics] capture = true` and the server is slow or stuck)
  help      Print this message or the help of the given subcommand(s)

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Examples:
  fcs 'fn main'                 lines holding the phrase
  fcs -- -Wall                  a query starting with -
  fcs -e 'fn\s+\w+\(' -g '*.rs'  regex, Rust files only
  fcs refs SearchEngine         call sites and type mentions
  fcs symbols parse_query       definitions only
  fcs impact                    files that use what your uncommitted changes touch
  fcs read src/main.rs:40-80    a file with line numbers
  fcs graph deps src/lib.rs     what a file imports and what imports it
  fcs graph affected src/a.rs   every file a change to a.rs can reach, tests apart
  fcs graph path src/a.rs src/b.rs  how two files are connected
  fcs graph overview            the most connected folders and hub files
  fcs -l TODO | xargs $EDITOR   files containing TODO
  vim -q <(fcs --format vimgrep TODO)
  fcs status                    is the server up, what does it hold
  fcs status src/a.rs           is a file you just wrote indexed yet
  fcs mcp                       MCP over stdio, for coding agents
  fcs check                     compare fcs with ripgrep and the import resolvers
  fcs diagnose                  what the server's diagnostic captures say

fcs search --help

Search file contents (the default; `fcs QUERY` works too)

Usage: fcs search [OPTIONS] <QUERY>...

Arguments:
  <QUERY>...
          The query (web UI syntax; several words are one phrase)

Options:
  -e, --regex
          Treat the query as a regular expression

  -s, --case-sensitive
          Match case exactly

  -i, --ignore-case
          Ignore case (the default for plain text; with -e, makes a regex ignore it too)

  -w, --word
          Match whole words only

  -n, --max <N>
          Maximum hits to print (1 to the server's search.max_page_size, 1000; default 50). With -l, the most files to list (default: every file)

      --offset <N>
          Skip the first N hits (paging; ordering is deterministic)
          
          [default: 0]

  -C, --context <N>
          Lines of context before and after each hit (0 to search.max_context_lines, 10)
          
          [default: 0]

  -g, --glob <GLOB>
          Only files matching this glob (repeatable; `src/**/*.rs`, `*.py`, `tests`)

      --exclude <GLOB>
          Skip files matching this glob (repeatable)

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --timeout-ms <MS>
          Stop scanning after this many milliseconds and return the best so far
          
          [default: 0]

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --max-files <N>
          Most candidate files to read, best first (default: the server's search.fast_rank_files, no limit)

      --deps <PATH[:N]>
          Only search this file and what it imports, N hops deep (1 by default; `*` for any distance). Repeatable; `-PATH` leaves them out

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --rdeps <PATH[:N]>
          Only search this file and the files that import it (as `--deps`)

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs refs --help

Find references (call sites, type mentions) of an identifier; `kind:call`, `kind:type`, `kind:value`, `kind:attribute` keep one kind

Usage: fcs refs [OPTIONS] <QUERY>...

Arguments:
  <QUERY>...
          The query (web UI syntax; several words are one phrase)

Options:
  -e, --regex
          Treat the query as a regular expression

  -s, --case-sensitive
          Match case exactly

  -i, --ignore-case
          Ignore case (the default for plain text; with -e, makes a regex ignore it too)

  -w, --word
          Match whole words only

  -n, --max <N>
          Maximum hits to print (1 to the server's search.max_page_size, 1000; default 50). With -l, the most files to list (default: every file)

      --offset <N>
          Skip the first N hits (paging; ordering is deterministic)
          
          [default: 0]

  -C, --context <N>
          Lines of context before and after each hit (0 to search.max_context_lines, 10)
          
          [default: 0]

  -g, --glob <GLOB>
          Only files matching this glob (repeatable; `src/**/*.rs`, `*.py`, `tests`)

      --exclude <GLOB>
          Skip files matching this glob (repeatable)

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --timeout-ms <MS>
          Stop scanning after this many milliseconds and return the best so far
          
          [default: 0]

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --max-files <N>
          Most candidate files to read, best first (default: the server's search.fast_rank_files, no limit)

      --deps <PATH[:N]>
          Only search this file and what it imports, N hops deep (1 by default; `*` for any distance). Repeatable; `-PATH` leaves them out

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --rdeps <PATH[:N]>
          Only search this file and the files that import it (as `--deps`)

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs symbols --help

Search symbol definitions (functions, types, classes, ...) only

Usage: fcs symbols [OPTIONS] <QUERY>...

Arguments:
  <QUERY>...
          The query (web UI syntax; several words are one phrase)

Options:
  -e, --regex
          Treat the query as a regular expression

  -s, --case-sensitive
          Match case exactly

  -i, --ignore-case
          Ignore case (the default for plain text; with -e, makes a regex ignore it too)

  -w, --word
          Match whole words only

  -n, --max <N>
          Maximum hits to print (1 to the server's search.max_page_size, 1000; default 50). With -l, the most files to list (default: every file)

      --offset <N>
          Skip the first N hits (paging; ordering is deterministic)
          
          [default: 0]

  -C, --context <N>
          Lines of context before and after each hit (0 to search.max_context_lines, 10)
          
          [default: 0]

  -g, --glob <GLOB>
          Only files matching this glob (repeatable; `src/**/*.rs`, `*.py`, `tests`)

      --exclude <GLOB>
          Skip files matching this glob (repeatable)

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --timeout-ms <MS>
          Stop scanning after this many milliseconds and return the best so far
          
          [default: 0]

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --max-files <N>
          Most candidate files to read, best first (default: the server's search.fast_rank_files, no limit)

      --deps <PATH[:N]>
          Only search this file and what it imports, N hops deep (1 by default; `*` for any distance). Repeatable; `-PATH` leaves them out

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --rdeps <PATH[:N]>
          Only search this file and the files that import it (as `--deps`)

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs impact --help

The files that use each function, class, method or constant a diff changes (default: your uncommitted changes, `git diff HEAD`)

Usage: fcs impact [OPTIONS] [REV]...

Arguments:
  [REV]...
          Revisions to diff, as `git diff` takes them: none for uncommitted changes (against HEAD), `REV` for REV to the working tree, `A..B` or `A B` between commits (the index must hold one of the two sides)

Options:
      --staged
          Only staged changes (`git diff --cached`)

      --diff <FILE>
          Read the diff from this file (`-` for stdin) instead of running git

  -n, --max-files <N>
          Files listed per changed symbol (0 = all)
          
          [default: 200]

      --lines <N>
          Use lines listed per file (0 = all)
          
          [default: 3]

      --root <DIR>
          Folder the diff's paths are relative to (default: the Git repository's top folder)

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs read --help

Read an indexed file with line numbers (MCP read_file)

Usage: fcs read [OPTIONS] <PATH>

Arguments:
  <PATH>
          The file, as search results print it (a unique suffix such as src/main.rs also works). `PATH:N` (or a hit's `PATH:N:COL`) starts at line N and `PATH:N-M` reads lines N to M

Options:
      --start <N>
          First line to print (default 1)

      --end <N>
          Last line to print, inclusive (default: the end of the file)

  -n, --lines <N>
          Lines to print from the start line

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs graph --help

The import graph: deps, affected, path, overview

Usage: fcs graph [OPTIONS] <COMMAND>

Commands:
  deps      The files a file imports and the files that import it, with the line of each direct import (MCP file_dependencies)
  affected  Every file that directly or transitively imports any of these files, nearest first, tests apart (MCP change_impact)
  path      The shortest chain of imports between two files (MCP import_path)
  overview  The most connected folders, folder imports, import cycles and hub files (MCP dependency_overview)
  help      Print this message or the help of the given subcommand(s)

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs graph deps --help

The files a file imports and the files that import it, with the line of each direct import (MCP file_dependencies)

Usage: fcs graph deps [OPTIONS] <PATH>

Arguments:
  <PATH>
          

Options:
      --direction <DIRECTION>
          out = what it imports, in = what imports it
          
          [default: both]
          [possible values: in, out, both]

      --depth <N>
          Import hops to follow (1 to 4)
          
          [default: 1]

      --limit <N>
          Files listed per hop; the rest are counted (at most the server's `[mcp] graph_max_limit`)
          
          [default: 50]

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs graph affected --help

Every file that directly or transitively imports any of these files, nearest first, tests apart (MCP change_impact)

Usage: fcs graph affected [OPTIONS] <PATH>...

Arguments:
  <PATH>...
          

Options:
      --limit <N>
          Files listed in each group (tests, code); the rest are counted (default and maximum: the server's `[mcp] graph_default_limit` and `graph_max_limit`)

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs graph path --help

The shortest chain of imports between two files (MCP import_path)

Usage: fcs graph path [OPTIONS] <FROM> <TO>

Arguments:
  <FROM>
          

  <TO>
          

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs graph overview --help

The most connected folders, folder imports, import cycles and hub files (MCP dependency_overview)

Usage: fcs graph overview [OPTIONS] [DIR]

Arguments:
  [DIR]
          Only folders whose path contains this, e.g. src/search
          
          [default: ""]

Options:
      --limit <N>
          Folders and folder imports listed
          
          [default: 30]

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs status --help

Show whether the server is reachable and what it has indexed; with paths, whether each file is indexed and current (MCP index_status)

Usage: fcs status [OPTIONS] [PATH]...

Arguments:
  [PATH]...
          Files to check: indexed and current, stale, not indexed yet, or deleted (paths as search results print them, or absolute)

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs mcp --help

Serve MCP over stdio by relaying to the server's /mcp endpoint (for agents that launch a command rather than connect to a URL)

Usage: fcs mcp [OPTIONS]

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs check --help

Check fcs against independent tools on your own code: generated queries against ripgrep, and the import graph against Python's and TypeScript's own resolvers when they are installed

Usage: fcs check [OPTIONS] [PATH]...

Arguments:
  [PATH]...
          Folders to check (default: the configuration's indexed paths, else the current folder). They are indexed afresh, in memory

Options:
      --queries <N>
          Queries made up from the files and compared with `rg -F`
          
          [default: 200]

      --seed <N>
          Seed for the queries, to repeat a run (default: a fresh one)

      --rg <PATH>
          The ripgrep binary
          
          [default: rg]

      --no-search
          Skip the search check

      --no-graph
          Skip the dependency graph check

      --live
          Check the running server's index instead (see --server): does it agree with itself, does indexed content match the disk, and does it hold the files a fresh walk finds. Prints counts only, so the output is safe to share; add --show-paths for example file names

      --content <N>
          With --live: files whose content to read and check, spread over the index (0 skips it)
          
          [default: 2000]

      --all-content
          With --live: read and check every indexed file (slow on large trees)

      --no-discovery
          With --live: skip the walk of the disk

      --show-paths
          With --live: show example file names for each kind of problem

      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')

fcs diagnose --help

Summarize the server's diagnostic captures (written when `[diagnostics] capture = true` and the server is slow or stuck)

Usage: fcs diagnose [OPTIONS] [DIR]

Arguments:
  [DIR]
          The captures folder (default: the configuration's `[diagnostics]` dir, else `diagnostics` next to its index)

Options:
      --server <URL>
          Server base URL (default: $FCS_SERVER, then the config's web_address, then http://127.0.0.1:8080)

      --config <FILE>
          Configuration file (default: $FCS_CONFIG, ./fast_code_search.toml, ~/.config/fast_code_search/config.toml)

      --offline
          Search the on-disk index directly instead of asking the server

      --no-offline
          Never fall back to the on-disk index when the server is unreachable

      --index-path <FILE>
          Index file for offline searches (default: the config's index_path)

      --format <FORMAT>
          Output layout (default: grouped on a terminal, vimgrep when piped)

          Possible values:
          - grouped: File headings with `line:col: text` underneath (default on a terminal)
          - vimgrep: One `path:line:col:text` line per hit (default when piped)
          - json:    The server's JSON response, one object

      --json
          Shorthand for --format json

  -l, --files-with-matches
          Print every file that matches, once, best first (pages through all hits)

      --absolute
          Print absolute paths (needs the roots from the configuration)

      --color <COLOR>
          Colour output: auto (terminal only, honours NO_COLOR), always, never
          
          [default: auto]
          [possible values: auto, always, never]

  -q, --quiet
          No summary or fallback notes on stderr

  -h, --help
          Print help (see a summary with '-h')