| description | Reference for the qlt query run install-packs command |
|---|
Use this prompt to guide the execution of qlt query run install-packs to install all CodeQL packs within a repository structure.
qlt query run install-packs [options]Installs CodeQL packs within the repository structure. This command automates the installation of dependencies across multiple language directories and pack structures, making it easier to set up complete development environments.
--base <base>- Base path to find the query repository (default: current directory)--automation-type <actions>- Automation type configuration (required, default: actions)
--development- Enable development mode with special QLT features (required, default: False)--use-bundle- Use custom CodeQL bundle instead of distribution versions (required, default: False)
-?, -h, --help- Show help and usage information
- Scans the base directory for CodeQL pack structures
- Identifies all qlpack.yml files across language directories
- Resolves dependencies for each discovered pack
- Installs dependencies in appropriate locations
Works with standard CodeQL language directories:
languages/actions/languages/cpp/languages/csharp/languages/go/languages/java/languages/javascript/languages/python/languages/ruby/languages/swift/
qlt query run install-packs --automation-type=actions --development=false --use-bundle=falseqlt query run install-packs --base=/path/to/repo --automation-type=actions --development=false --use-bundle=falseqlt query run install-packs --automation-type=actions --development=true --use-bundle=falseqlt query run install-packs --automation-type=actions --development=false --use-bundle=true- Setting up new development environments with multiple language packs
- Installing dependencies after cloning a multi-language CodeQL repository
- Bulk dependency management across multiple query packs
- CI/CD pipeline setup for comprehensive testing environments
- Preparing repositories for bulk query compilation and testing
- Installation progress for each discovered pack
- Dependency resolution logs
- Created or updated lock files across language directories
- Error messages for failed installations or missing dependencies
languages/
├── java/
│ ├── custom/
│ │ └── my-pack/
│ │ └── qlpack.yml
│ └── example/
│ └── another-pack/
│ └── qlpack.yml
└── python/
└── custom/
└── my-pack/
└── qlpack.yml
languages/
├── java/
│ ├── custom/
│ │ └── my-pack/
│ │ ├── qlpack.yml
│ │ └── codeql-pack.lock.yml
│ └── example/
│ └── another-pack/
│ ├── qlpack.yml
│ └── codeql-pack.lock.yml
└── python/
└── custom/
└── my-pack/
├── qlpack.yml
└── codeql-pack.lock.yml
qlt query generate new-query- Generate new queries after installing dependenciesqlt test run execute-unit-tests- Run tests after pack installationcodeql pack install- Install individual pack dependencies