Registering the syncfusion license with the new "syncfusion-license activate"

When we register the license with the "syncfusion-license activate" command we have two options:

The environment variable  SYNCFUSION_LICENSE or the syncfusion-license.txt text file.

If we have both, which way has priority?


5 Replies

SK Sathish Kumar Rajendran Syncfusion Team July 11, 2022 06:17 AM UTC

Hi Georgi,

We suggest using syncfusion-license.txt text file to register the license with the "syncfusion-license activate" command, refer to this link to use a license text file and register the Syncfusion license key.

If you don’t want to use the license text file in the application, refer to this link to use an environment variable and register the Syncfusion license key.

Please get back to us if you have any queries.

Regards,
Sathish Kumar R



FS Felix Springer replied to Sathish Kumar Rajendran July 18, 2022 11:28 AM UTC

Hi @Sathish,

how to intergrate "syncfusion-license activate" into the package.json for local and production (build)​? For local I guess it's just putting  "syncfusion-license activate" before the "react-scripts start".  But for the production where is it integrated and how? In the dockerfile? The documentation says nothing about that. 


Thanks in advance. 


Best, Felix



TJ Theveshwar Jayakumar Syncfusion Team July 19, 2022 11:28 AM UTC

Hi Felix,

Greetings from Syncfuison support,



We have validated your reported query. If you are wish to use the npx syncfusion-license activate command in the applications production environment by adding the license in the syncfusion-license.txt file as suggested in the documentation link and add the postinstall script in the package.json file as given below.


"scripts": {

    "postinstall": "npx syncfusion-license activate"

  },


This script will automatically run the npx command after each npm i command triggered. So there is no need to provide this command manually and this can be also used in any machine and any server machines easily.



Please get back to us if you have any queries.


Regards,

Theveshwar



JE Jemuel October 4, 2022 09:51 AM UTC

Hi Support,


Will this license apply if my application is deployed to Docker?


Thanks,
Jem



RS Ragunath Sukumaran Syncfusion Team October 10, 2022 03:03 PM UTC

Hi Jemuel,


Yes, the license key registration through npx command will also works perfectly, when you register it through the docker file.

You just need to add the below command before running the build command in the docker file.

RUN npx syncfusion-license activate


Please get back to us, if you have any queries.


Regards,

Ragunath S


Loader.
Up arrow icon