--- title: "Applying activation code using CLI" slug: "applying-activation-code-using-cli-2" tags: ["Install and Get Started", "NDR 4.x", "Customer", "Network Security"] updated: 2026-11-17T09:22:59Z published: 2026-11-17T09:22:59Z canonical: "docs.trellix.com/applying-activation-code-using-cli-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Applying activation code using CLI You can apply the activation code received via email to virtual appliances only after setting up the virtual instance. To apply the activation code, perform the following steps: 1. Using the SSH protocol, log into the appliance as `npadmin`. 2. Enter configuration mode. ``` npadmin@hostname# configure system ``` 3. Type `dtigateway` and then press `Enter` to open the DTI Gateway Configuration menu. 4. Type `U` and then press `Enter` to update the activation code. 5. Paste the activation code you received in the onboarding email from Trellix and then press `Enter`. The activation code is applied.