| description | Reference for the codeql database analyze command |
|---|
The codeql database analyze command is used to analyze CodeQL databases by running multiple queries and outputing a single set of results in a target format.
The following is an example use of the command for analyzing a database with the security-extended set of (open-source) queries for the java language:
codeql database analyze \
--format=sarif-latest \
--output=results.sarif \
-- \
some/path-to/mydb_dir \
codeql/java-security-extendedThe codeql database analyze command can also target specific queries or directories:
# Analyze with specific query pack
codeql database analyze --format=csv --output=results.csv mydb codeql/java-queriesRun codeql database analyze --help for more information.
Run codeql database analyze --help --verbose for much more information.
codeql database create- Create a CodeQL database to analyzecodeql resolve queries- Resolve which queries to analyze
codeql bqrs decode- Process BQRS results from intermediate outputcodeql bqrs info- Get information about intermediate BQRS results