Skip to main content

Step 3: License Activation

Next, you need to activate your license after installing the executable and the IDE extension.

This process needs to be done only once per device.

Activating the License​

Use the following command in your terminal to activate the license:

dcm activate --license-key=YOUR_KEY

Alternatively, you can activate the license through the IDE extension by using the DCM: Activate license key command.

info

License activation uses the device ID, so attempts to activate a license multiple times on the same device won't reduce the activation count.

Deactivating the Device​

If you need to deactivate the current device, use the following command:

dcm deactivate

Alternatively, you can pass the license key via the --license-key CLI option.

After running this command, you will regain one activation back to your license.

warning

This command is not available during the trial period. If you have the Teams license, you won't be able to reactivate the same device. If you deactivated your device by mistake, please contact our support.

Running the Executable on CI/CD​

DCM can be integrated into your CI/CD pipeline to automate code analysis. This feature is available only for the Teams version.

To run commands on CI, use the following options with each command instead of activating the license directly:

dcm analyze --ci-key=YOUR_CI_KEY --email=LICENSE_EMAIL

Alternatively, set the DCM_CI_KEY and DCM_EMAIL environment variables, and they will be picked up automatically.

warning

Consider pinning the tool's version on CI, as each new release usually comes with fixes for false positives or new cases that can cause unexpected CI failures.