1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Files
docs/content/code-security/codeql-cli/using-the-codeql-cli/about-the-codeql-cli.md
2023-05-23 14:59:58 +00:00

4.3 KiB
Raw Blame History

title, shortTitle, intro, product, versions, topics, redirect_from
title shortTitle intro product versions topics redirect_from
About the CodeQL CLI About the CodeQL CLI You can use the {% data variables.product.prodname_codeql_cli %} to run CodeQL processes locally on software projects. {% data reusables.gated-features.codeql %}
fpt ghes ghae ghec
* * * *
Advanced Security
Code scanning
CodeQL
/code-security/codeql-cli/about-the-codeql-cli

{% data reusables.codeql-cli.codeql-site-migration-note %}

About the {% data variables.product.prodname_codeql_cli %}

Software developers and security researchers can secure their code using the {% data variables.product.prodname_codeql_cli %}.

The {% data variables.product.prodname_codeql_cli %} is a command-line tool used to run {% data variables.product.prodname_codeql %} processes locally on open source software projects. You can use the {% data variables.product.prodname_codeql_cli %} to:

  • Run {% data variables.product.prodname_codeql %} analyses using queries provided by {% data variables.product.prodname_dotcom %} engineers and the open source community
  • Create {% data variables.product.prodname_codeql %} databases to use in the {% data variables.product.prodname_codeql %} for Visual Studio Code
  • Develop and test custom {% data variables.product.prodname_codeql %} queries to use in your own analyses

For information about using the {% data variables.product.prodname_codeql_cli %}, see "AUTOTITLE."

You can also use {% data variables.product.prodname_actions %} or Azure DevOps pipelines to scan code using the {% data variables.product.prodname_codeql_cli %}. For more information, see "AUTOTITLE" or Configure {% data variables.product.prodname_ghas_azdo %} in Microsoft Learn.

About the {% data variables.product.prodname_dotcom %} {% data variables.product.prodname_codeql %} license

License notice: If you dont have a {% data variables.product.prodname_enterprise %} license then, by installing this product, you are agreeing to the {% data variables.product.prodname_dotcom %} {% data variables.product.prodname_codeql %} Terms and Conditions.

{% data variables.product.prodname_dotcom %} {% data variables.product.prodname_codeql %} is licensed on a per-user basis. Under the license restrictions, you can use {% data variables.product.prodname_codeql %} to perform the following tasks:

  • To perform academic research.
  • To demonstrate the software.
  • To test {% data variables.product.prodname_codeql %} queries that are released under an OSI-approved License to confirm that new versions of those queries continue to find the right vulnerabilities.

Where "OSI-approved License" means an Open Source Initiative (OSI)-approved open source software license.

If you are working with an Open Source Codebase (that is, a codebase that is released under an OSI-approved License) you can also use {% data variables.product.prodname_codeql %} for the following tasks:

  • To perform analysis of the Open Source Codebase.
  • If the Open Source Codebase is hosted and maintained on {% data variables.product.prodname_dotcom_the_website %}, to generate CodeQL databases for or during automated analysis, continuous integration, or continuous delivery.

{% data variables.product.prodname_codeql %} cant be used for automated analysis, continuous integration or continuous delivery, whether as part of normal software engineering processes or otherwise, except in the express cases set forth herein. For these uses, contact the sales team.

{% data variables.product.prodname_codeql_cli %} commands

The {% data variables.product.prodname_codeql_cli %} includes commands to create and analyze {% data variables.product.prodname_codeql %} databases from the command line. To run a command, use:

codeql [command] [subcommand]

To view the reference documentation for a command, add the --help flag, or see "AUTOTITLE."