--- title: Scan from the command line intro: Run code scanning from the command line using the {% data variables.product.prodname_codeql_cli %} to configure scans, customize queries, and troubleshoot results. versions: fpt: '*' ghes: '*' ghec: '*' contentType: how-tos children: - /setting-up-the-codeql-cli - /write-custom-queries - /publish-and-use-packs - /testing-custom-queries - /testing-query-help-files - /download-databases - /check-out-source-code - /specifying-command-options-in-a-codeql-configuration-file - /creating-database-bundle-for-troubleshooting redirect_from: - /code-security/codeql-cli/using-the-codeql-cli - /code-security/codeql-cli/getting-started-with-the-codeql-cli - /code-security/codeql-cli - /code-security/how-tos/scan-code-for-vulnerabilities/scan-from-the-command-line ---