Skip to content

Command Line Overview ​

clice is one binary. Editors launch clice serve and talk to it over LSP; the other subcommands drive the same engine from a terminal, sharing its compilation database handling, caches and index.

CommandWhat it doesPage
serveStart the language server. Editors do this for you, see the editor setup.editors
lintRun clang-tidy over every translation unit with a worker pool.lint
indexIndex a workspace ahead of time so the server starts warm.index
formatFormat the workspace's files with clang-format.format
inspectRun one feature on source files and print the raw result as JSON.
queryAsk the persisted index about symbols, references, call graphs and files.query
refactorRename a symbol across the workspace from the persisted index.refactor
analyzeReport facts for refactoring, such as module dependencies and cycles.analyze
modulizeWrap third-party libraries as C++20 modules over their headers.modulize

inspect works today but has no page yet; its options are documented by clice inspect --help.

serve, index, lint, format, inspect, query, refactor, analyze and modulize take --configuration <tag> to pin the build configuration for the run, over the selection persisted from the editor; see switching configurations.