wget https://github.com/github/codeql-action/releases/download/codeql-bundle-20220923/codeql-bundle-linux64.tar.gz
tar -xvzf ./codeql-bundle-linux64.tar.gz
then
Add /<extraction-root>/codeql
to the PATH
Follow instructions here
Follow instructions here
(You mat have to chnage the path of codeql to the one you extracted: refer here)
codeql database create <database_dir> --overwrite --language=cpp
codeql pack download codeql/cpp-queries