OS Manuals

/usr/bin/swift-api-extract

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 swift-api-extract --help (exit 1). permalink

OVERVIEW: Swift API Extract

USAGE: swift-frontend

OPTIONS:
  -clang-target <value> Separately set the target we should use for internal Clang instance
  -external-plugin-path <path>#<plugin-server-path>
                        Add directory to the plugin search path with a plugin server executable
  -Fsystem <value>      Add directory to system framework search path
  -F <value>            Add directory to framework search path
  -help                 Display available options
  -I <value>            Add directory to the import search path
  -libc <value>         libc runtime library to use
  -L <value>            Add directory to library link search path
  -module-cache-path <value>
                        Specifies the module cache path
  -module-name <value>  Name of the module to build
  -o <file>             Write output to <file>
  -plugin-path <value>  Add directory to the plugin search path
  -pretty-print         Pretty-print the output JSON
  -sdk <sdk>            Compile against <sdk>
  -swift-version <vers> Interpret input according to a specific Swift language version number
  -target <triple>      Generate code for the given target <triple>, such as x86_64-apple-macos10.9
  -vfsoverlay <value>   Add directory to VFS overlay file
  -visualc-tools-root <root>
                        VisualC++ Tools Root
  -visualc-tools-version <version>
                        VisualC++ ToolSet Version
  -windows-sdk-root <root>
                        Windows SDK Root
  -windows-sdk-version <version>
                        Windows SDK Version
Options (19)
OptionDescriptionSource
-external-plugin-path path>#<plugin-server-pathAdd directory to the plugin search path with a plugin server executablehelp
-Fsystem valueAdd directory to system framework search pathhelp
-F valueAdd directory to framework search pathhelp
-helpDisplay available optionshelp
-I valueAdd directory to the import search pathhelp
-libc valuelibc runtime library to usehelp
-L valueAdd directory to library link search pathhelp
-module-cache-path valueSpecifies the module cache pathhelp
-module-name valueName of the module to buildhelp
-o fileWrite output to <file>help
-plugin-path valueAdd directory to the plugin search pathhelp
-pretty-printPretty-print the output JSONhelp
-sdk sdkCompile against <sdk>help
-target tripleGenerate code for the given target <triple>, such as x86_64-apple-macos10.9help
-vfsoverlay valueAdd directory to VFS overlay filehelp
-visualc-tools-root rootVisualC++ Tools Roothelp
-visualc-tools-version versionVisualC++ ToolSet Versionhelp
-windows-sdk-root rootWindows SDK Roothelp
-windows-sdk-version versionWindows SDK Versionhelp

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