How to enter the PVS-Studio license and what's the next move
Welcome to the PVS-Studio page, which lists all the ways to activate the license. Most likely, you've just got the license to try out the analyzer. Here you can find out how to use it. The analyzer supports the analysis of such programming languages as C, C++, C# and Java, you can run the analyzer on Windows, Linux and macOS. Due to this, ways to activate the analyzer may differ for various projects. Therefore, please, go to the section that will be right for you and follow the instruction.
Note. All actions are performed after the analyzer installation. You can download it on the page "Download PVS-Studio".
Windows: C, C++, C#
Microsoft Visual Studio
In Visual Studio, go to the menu PVS-Studio > Options > PVS-Studio > Registration to enter the name and the license number:

Compiler Monitoring UI
Go to the menu of the utility Tools > Options > Registration to enter the name and the license number:

Command line analyzer for MSBuild projects
When using the MSBuild projects analyzer, in case if it's not possible to enter the license information via GUI (plugin for Visual Studio or Compiler Monitoring UI), you can use the analyzer itself in a special mode.
The command line might look as follows (in one line):
PVS-Studio_Cmd.exe credentials
--username NAME --serialNumber XXXX-XXXX-XXXX-XXXX
In this case, the analyzer will write the license information in the settings file by default location. If the settings file doesn't exist, it'll be created. By using the flag --settings you can specify the path to the file in the non-standard location.
Linux/macOS: C, C++, C#
After the analyzer installation, you can activate it using the following command:
pvs-studio-analyzer credentials NAME XXXX-XXXX-XXXX-XXXX
Windows/Linux/macOS: C#, Java
IntelliJ IDEA / Rider
In IDE, go to the menu File > Settings > PVS-Studio > Registration to enter the name and the license number:
Maven plugin
After the analyzer installation, you can activate it using the following command:
mvn pvsstudio:pvsCredentials "-Dpvsstudio.username=USR" "-Dpvsstudio.serial=KEY"
Gradle plugin
After the analyzer installation, you can activate it using the following command:
./gradlew pvsCredentials "-Ppvsstudio.username=USR" "-Ppvsstudio.serial=KEY"
Quick start or what's next?
You can read more about running the analyzer on the following pages:
- Getting acquainted with the PVS-Studio static code analyzer on Windows
- How to run PVS-Studio on Linux and macOS (C, C++)
- PVS-Studio C# installation on Linux and macOS
- How to run PVS-Studio Java
- Get started with PVS-Studio in Visual Studio
- Using PVS-Studio with JetBrains Rider and CLion
- How to use PVS-Studio in Qt Creator
- PVS-Studio for embedded development
- Analysis of Unreal Engine projects
- Analyzing Visual Studio / MSBuild / .NET Core projects from the command line using PVS-Studio
- Analysis of C++ projects based on JSON Compilation Database
- Build-system independent analysis (C and C++)
- How to integrate PVS-Studio into CMake with a CMake module