CodeQL documentation

CodeQL CLI referenceΒΆ

Learn more about the files you can use when running CodeQL processes and the results format and exit codes that CodeQL generates.

  • About CodeQL packs: CodeQL packs are created with the CodeQL CLI and are used to create, depend on, publish, and run CodeQL queries, libraries, and query suites.
  • About CodeQL workspaces: CodeQL workspaces are used to group multiple CodeQL packs together.
  • Query reference files: A query reference file is text file that defines the location of one query to test.
  • SARIF output: CodeQL supports SARIF as an output format for sharing static analysis results.
  • Exit codes: The CodeQL CLI reports the status of each command it runs as an exit code. This exit code provides information for subsequent commands or for other tools that rely on the CodeQL CLI.
  • Extractor options: You can customize the behavior of extractors by setting options through the CodeQL CLI.
  • © GitHub, Inc.
  • Terms
  • Privacy