Skip to main content
12-Amethyst
November 15, 2021
Solved

Import Extensions without Composer

  • November 15, 2021
  • 2 replies
  • 1331 views

I'm working to create some container images for Thingworx and I'm looking for a way to script the import of Thingworx extensions, unfortunately the only documentation that I've found about that explains how to import using Composer. Is there any API or external call that I can do to import an extension?

Best answer by Ivens

I was able to import using the following command line on Command Prompt (it doesn't work on Powershell):


curl -u Administrator:<passwoprd> "http://localhost:8080/Thingworx/ExtensionPackageUploader?purpose=import" -H "X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE" -F "file=@<extension.zip>"

 

2 replies

19-Tanzanite
November 16, 2021

Hi @Ivens 

 

Check this Article 

 

/VR

Ivens12-AmethystAuthorAnswer
12-Amethyst
November 19, 2021

I was able to import using the following command line on Command Prompt (it doesn't work on Powershell):


curl -u Administrator:<passwoprd> "http://localhost:8080/Thingworx/ExtensionPackageUploader?purpose=import" -H "X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE" -F "file=@<extension.zip>"