HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://docs.github.com/code-security/codeql-cli/getting-started-with-the-codeql-cli
x-github-request-id: 56B7:3ABDEF:5A8C6D:650104:694EEC61
accept-ranges: bytes
age: 0
date: Fri, 26 Dec 2025 20:13:21 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210074-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1766780002.542736,VS0,VE193
vary: Accept-Encoding
x-fastly-request-id: 49a050869923bb9bfdf5d7be12262ea3cf00c174
content-length: 162
HTTP/2 302
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data: 'unsafe-inline';script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
location: /en/code-security/codeql-cli/getting-started-with-the-codeql-cli
content-type: text/plain; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: 8FA2:1526AD:45F95E:5D1BE7:694ED125
accept-ranges: bytes
age: 6972
date: Fri, 26 Dec 2025 20:13:21 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210097-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1766780002.803326,VS0,VE1
vary: accept-language, x-user-language, Accept
strict-transport-security: max-age=31557600
content-length: 86
HTTP/2 200
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data: 'unsafe-inline';script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
x-powered-by: Next.js
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: AD76:2CD164:52551:69D15:694EA539
content-encoding: gzip
accept-ranges: bytes
age: 18215
date: Fri, 26 Dec 2025 20:13:21 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210097-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1766780002.817573,VS0,VE1
vary: Accept-Encoding
strict-transport-security: max-age=31557600
content-length: 38520
Getting started with the CodeQL CLI - GitHub Docs Skip to main content
Getting started with the CodeQL CLI You can use the CodeQL CLI to locally develop, test and run CodeQL queries on software projects.
Who can use this feature? CodeQL is available for the following repository types:
You can use the CodeQL CLI to run CodeQL processes locally on software projects or to generate code scanning results for upload to GitHub.
To get started with the CodeQL CLI, you need to download and set up the CLI so that it can access the tools and libraries required to create and analyze databases.
You can build a CodeQL database containing the data needed to analyze your code.
You can run queries against a CodeQL database extracted from a codebase.
You can use the CodeQL CLI to upload CodeQL analysis results to GitHub.
You can use CodeQL packs to run CodeQL queries maintained by other people, or to share CodeQL queries that you've developed.