Skip to main content
We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.

CodeQL CLI 参考

可以了解如何使用 CodeQL 工作区和 CodeQL 包,以及如何了解 CodeQL 命令的输出。

GitHub CodeQL is licensed on a per-user basis upon installation. You can use CodeQL only for certain tasks under the license restrictions. For more information, see "About the GitHub CodeQL license."

If you have a GitHub Enterprise account and GitHub Advanced Security license, you can use CodeQL for automated analysis, continuous integration and continuous delivery. You can create an enterprise account by contacting the sales team. 有关详细信息,请参阅“关于 GitHub Advanced Security”。

  • About CodeQL packs

    You can use CodeQL packs to run CodeQL queries maintained by other people, or to share CodeQL queries that you've developed.

  • About CodeQL workspaces

    CodeQL workspaces allow you to develop and maintain a group of CodeQL packs that depend on each other.

  • Query reference files

    You can use query reference files to define the location of a query you want to run in tests.

  • CodeQL CLI SARIF output

    You can output SARIF from the CodeQL CLI and share static analysis results with other systems.

  • Exit codes

    Exit codes signify the status of a command after the CodeQL CLI runs it.