docs/main/administration-guide/manage/admin/installing-license-key.mdx
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
<PlanAvailability slug="all-commercial" />You can use the System Console or the mmctl tools to add or change a Mattermost license key.
<Tabs> <TabItem value="use-system-console" label="Use System Console">Once the key is uploaded and installed, the details of your license are displayed.
</TabItem> <TabItem value="use-mmctl" label="Use mmctl">Use the mmctl license upload command to upload a new license or replace an existing license file with a new one. When complete, restart the Mattermost server. If you're running in a High Availability environment, the new license file must be updated to every node.
mmctl license upload [license] [flags]
You don't need to wait for your current license key to expire before replacing it with a new license from Mattermost. The server only checks for seat count and license end date, not the start date, so you can apply a new license as soon as you receive it. However, ensure your new license is for a seat count that's greater than or equal to your current total number of Mattermost users.
<Tip>To review license usage before uploading a new key, go to System Console > Reporting > System Statistics. The Total Activated Users field shows the primary paid seat count used for license validation. Review Single-channel Guests separately because guests in exactly one channel are tracked outside the primary paid seat count, are free up to a 1:1 ratio with licensed seats, and generate warnings instead of hard enforcement when that allowance is exceeded.
</Tip>Follow these steps to change your license key:
If you're running a Mattermost release older than v6.7, select Remove Enterprise License and Downgrade Server to clear the license from the server and refresh the System Console first before uploading the new key.
</Note>Once you've uploaded your license key to your Mattermost server, it's stored in your SQL database at mattermost.Licenses. You can check what keys are on your server by running select * from mattermost.Licenses;.
Book a live demo or talk to a Mattermost expert to explore tailored solutions for your organization's secure collaboration needs. Or try Mattermost yourself with a 1-hour preview for instant access to a live sandbox environment.