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.
License activation uses the device ID, so attempts to activate a license multiple times on the same device won't reduce the activation count.
To check the active license type, use:
dcm license
Deactivating the Device​
Deactivation is available only to the Pro plan users.
If you are on a Free plan, simply uninstall the tool or activate another key. For other plans, reach out to your DCM Console account administrator to deactivate your 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.
Running the Executable on CI/CD​
DCM can be integrated into your CI/CD pipeline to automate code analysis. This feature is available to Starter, Teams or Enterprise users.
To run commands on CI, use the following options with each command instead of activating the license directly:
dcm analyze lib --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.
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.