CodeQL CLIΒΆ
The CodeQL command-line interface (CLI) is used to create databases for variant analysis. You can query them directly from the command line or using the Visual Studio Code extension.
See the following links to learn how to get set up and run CodeQL commands:
- Getting started with the CodeQL CLI: Set up the CodeQL CLI so that you can run CodeQL processes from your command line.
- Creating CodeQL databases: Create relational representations of source code that can be queried like any other database.
- Examples: Creating CodeQL databases: Get more information about creating databases by reading our language-specific examples.
- Analyzing CodeQL databases: Analyze your code using queries written in a specially-designed, object-oriented query language.
- Upgrading CodeQL databases: Upgrade your databases so that they can be analyzed using the most up to date CodeQL products.
- Using custom queries with the CodeQL CLI: Use custom queries to extend your analysis or highlight errors that are specific to a particular codebase.
- Testing custom queries: Set up regression testing of custom queries to ensure that they behave as expected in your analysis.
- Preparing CodeQL databases to use with LGTM Enterprise: Build databases offline to upload to an instance of LGTM Enterprise.
For further information about the CLI commands, technical concepts, and terminology, see the CodeQL glossary and CLI reference.