Giới thiệu
Qodana CLI là công cụ dòng lệnh đơn giản, đa nền tảng do JetBrains phát triển, dùng để chạy các trình kiểm tra chất lượng mã nguồn (linters) của Qodana. Phần mềm giúp các lập trình viên dễ dàng quét và phân tích mã nguồn để phát hiện lỗi, cải thiện chất lượng code mà không cần nhiều thao tác phức tạp.
Với Qodana CLI, bạn có thể tích hợp kiểm tra chất lượng mã vào quy trình phát triển phần mềm một cách linh hoạt, hỗ trợ nhiều môi trường và nền tảng khác nhau.
Tính năng chính
- Chạy các trình kiểm tra chất lượng mã nguồn Qodana nhanh chóng qua dòng lệnh.
- Hỗ trợ đa nền tảng, dễ dàng sử dụng trên nhiều hệ điều hành khác nhau.
- Đơn giản, không yêu cầu cấu hình phức tạp để bắt đầu quét mã.
- Tích hợp thuận tiện vào quy trình phát triển và CI/CD.
Ai nên dùng
Qodana CLI phù hợp cho các lập trình viên, nhóm phát triển phần mềm và các chuyên gia kiểm thử muốn tự động hóa việc kiểm tra chất lượng mã nguồn bằng công cụ dòng lệnh, đặc biệt là những ai đang sử dụng các sản phẩm của JetBrains hoặc cần một giải pháp kiểm tra mã nguồn linh hoạt, dễ tích hợp.
Cài đặt
- Bấm nút Tải về trên trang này để tải bộ cài gốc dạng file zip.
- Giải nén file zip vừa tải về vào thư mục mong muốn trên máy tính.
- Mở terminal hoặc command prompt, điều hướng đến thư mục đã giải nén.
- Chạy các lệnh Qodana CLI theo tài liệu hướng dẫn của JetBrains để bắt đầu sử dụng.
Lưu ý
Qodana CLI là phần mềm mã nguồn mở, miễn phí theo giấy phép Apache-2.0. Phần mềm không yêu cầu cài đặt phức tạp nhưng cần sử dụng qua dòng lệnh nên phù hợp với người dùng có kiến thức cơ bản về terminal.
Có gì mới trong 2026.2.2
Changelog
- :arrow_up: QD-15843: bump report UI and Converter to version 0.12.9
- :arrow_up: QD-15950 Update release feeds (#1036)
- :bug: QD-13943 Use GitHub App token for post-release cross-repo PRs
- :bug: QD-15753 install ICU in the C++ base images so the .NET backend doesn't FailFast (262) (#1020)
- :wrench: QD-15245: add dotnet binary installation to the base docker … (#1034)
Install
💡 The Qodana CLI is distributed and run as a binary. The Qodana linters with inspections are Docker Images or, starting from version 2023.2, your local/downloaded by CLI IDE installations (experimental support).
- To run Qodana with a container (the default mode in CLI), you must have Docker or Podman installed and running locally to support this: https://www.docker.com/get-started, and, if you are using Linux, you should be able to run Docker from the current (non-root) user (https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)
- To run Qodana without a container, you must have the IDE installed locally to provide the IDE installation path to the CLI or specify the product code, and CLI will try to download the IDE automatically (experimental support).
macOS and Linux
Install with Homebrew (recommended)
brew install jetbrains/utils/qodana
Install with our installer
curl -fsSL https://jb.gg/qodana-cli/install | bash
Also, you can install nightly or any other version (e.g. v2023.2.9) the following way:
curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- nightly
Windows
Install with Windows Package Manager (recommended)
winget install -e --id JetBrains.QodanaCLI
Install with Chocolatey
choco install qodana
Install with Scoop
scoop bucket add jetbrains
scoop install qodana
Anywhere else
Alternatively, you can install the latest binary (or the apt/rpm/deb/archlinux package) from this page.Update
Update to the latest version depends on how you choose to install qodana on your machine.Update with Homebrew
brew upgrade qodana
Update with Scoop
scoop update qodana
Update with Chocolatey
choco upgrade qodana
Update on Linux and macOS with the installer script
curl -fsSL https://jb.gg/qodana-cli/install | bash
Alternatively, you can grab the latest binary (or the apt/rpm/deb package) from this page.