License
Overview
Full Univer Pro Features require license support. You can activate paid plans by adding a license to your project, or you can upgrade to a higher-level plan by updating your license. This page will guide you on how to obtain, configure, and verify licenses.
Prerequisites
Before you begin, make sure you:
- Have integrated Univer Pro Features in your project. If you haven’t completed the integration, please refer to Integrating Univer Pro Features.
- For server-side deployment, have completed Docker or Kubernetes environment configuration. If you haven’t completed the configuration, please refer to Docker Deployment Documentation or Kubernetes Deployment Documentation.
- Have a valid license. If you don’t have one yet, you can obtain it by registering on the License Page.
Download License
-
Visit the License Page and log in to your account
-
Download the license file
Apply for Free Trial License
If you don’t have a license or are still considering whether to purchase, we have prepared a 30-day trial license for you to fully experience all Pro Features of Univer.
-
Visit the License Page and log in to your account
-
Click the “Get Trial License” button
Add or Update License
Unzip the downloaded license file license-univer.zip
, you will get license.txt
and licenseKey.txt
files. Please keep these two files safe and ensure that you do not modify their format and content.
Using License in JavaScript/TypeScript Projects
- In addition to importing the univer plugin in your project, also import the license plugin. For specific plugin import methods, please refer to here.
import { UniverLicensePlugin } from '@univerjs-pro/license';
- Register the
UniverLicensePlugin
plugin. Make sure this plugin is registered first after the univer instance is initialized. Then paste the content of thelicense.txt
file into the license parameter of the plugin.
const univer = new Univer(/** omitted */);
univer.registerPlugin(UniverLicensePlugin, {
license: `Content of your license.txt file`
});
Using License with Univer Server
- Copy the
license.txt
andlicenseKey.txt
files to the/docker-compose/configs/
directory. - Run the service script
bash run.sh
in the docker-compose directory to restart the universer service.
Verify License
Verifying License in JavaScript/TypeScript Projects
-
After injecting the License into the frontend and starting the project, you can verify whether the License is valid and being used correctly. Note: If no license is entered, or if the entered license is invalid (e.g., expired or incorrect content), some features will be restricted, and a watermark will be displayed on the page.
-
With a valid license entered, the project will run normally without restrictions.
Verifying License in Univer Server
- Visit
host:8000/universer-api/license/key
to view the license entitlement information. For example: If your service is running locally, please visithttp://localhost:8000/universer-api/license/key
.
{
"verify":"true", // License verification result
"release_type":"COMMERCIAL" // License type
}
Common Issues
- If license verification fails, please check:
- Whether the license files are complete and unmodified
- Whether the license has expired
- Whether the service has been correctly restarted
- For other issues, please contact our technical support