OS Manuals

/usr/bin/sourcekit-lsp

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory-safe by default.

From swift-bootstrap-5-10-1 5.10.1-r7 (enterprise-packages), captured 2026-11-08 by running sourcekit-lsp --help (exit 0). permalink

OVERVIEW: Language Server Protocol implementation for Swift and C-based
languages

USAGE: source-kit-lsp <options>

OPTIONS:
  --sync
  --log-level <log-level> Set the logging level [debug|info|warning|error]
                          (default: info)
  -c, --configuration <configuration>
                          Build with configuration [debug|release] (default:
                          debug)
  --scratch-path, --build-path <scratch-path>
                          Specify build/cache directory (--build-path option is
                          deprecated, --scratch-path should be used instead)
  -Xcc <Xcc>              Pass flag through to all C compiler invocations
  -Xcxx <Xcxx>            Pass flag through to all C++ compiler invocations
  -Xlinker <Xlinker>      Pass flag through to all linker invocations
  -Xswiftc <Xswiftc>      Pass flag through to all Swift compiler invocations
  -Xclangd <Xclangd>      Pass options to clangd command-line
  -index-store-path <index-store-path>
                          Override index-store-path from the build system
  -index-db-path <index-db-path>
                          Override index-database-path from the build system
  -index-prefix-map <index-prefix-map>
                          Override the prefix map from the build system, values
                          of form 'remote=local'
  --generated-interfaces-path <generated-interfaces-path>
                          Specify the directory where generated interfaces will
                          be stored (default: /tmp/GeneratedInterfaces)
  --completion-server-side-filtering <completion-server-side-filtering>
                          Whether to enable server-side filtering in
                          code-completion (default: true)
  --completion-max-results <completion-max-results>
                          When server-side filtering is enabled, the maximum
                          number of results to return (default: 200)
  -h, --help              Show help information.
Options (15)
OptionDescriptionSource
--synchelp
-c, --configuration configurationBuild with configuration [debug|release] (default: debug)help
--scratch-path, --build-path scratch-pathSpecify build/cache directory (--build-path option is deprecated, --scratch-path should be used instead)help
-Xcc XccPass flag through to all C compiler invocationshelp
-Xcxx XcxxPass flag through to all C++ compiler invocationshelp
-Xlinker XlinkerPass flag through to all linker invocationshelp
-Xswiftc XswiftcPass flag through to all Swift compiler invocationshelp
-Xclangd XclangdPass options to clangd command-linehelp
-index-store-path index-store-pathOverride index-store-path from the build systemhelp
-index-db-path index-db-pathOverride index-database-path from the build systemhelp
-index-prefix-map index-prefix-mapOverride the prefix map from the build system, values of form 'remote=local'help
--generated-interfaces-path generated-interfaces-pathSpecify the directory where generated interfaces will be stored (default: /tmp/GeneratedInterfaces)help
--completion-server-side-filtering completion-server-side-filteringWhether to enable server-side filtering in code-completion (default: true)help
--completion-max-results completion-max-resultsWhen server-side filtering is enabled, the maximum number of results to return (default: 200)help
-h, --helpShow help information.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.