Skip to content

Uploading legacy gadgets

possibilities edited this page Dec 18, 2014 · 8 revisions

How to upload legacy gadget to sandbox and test it on versal.com

1. Establish a username if you don't already have one

To get a session ID use the SDK's signin feature (with your versal.com username/password):

versal signin --verbose

Copy and paste the session ID into another cURL request:

curl -X POST https://stack.versal.com/api2/users -H SID:[YOUR_SESSSION_ID_FROM_PREV_STEP] --data '{"username": "[YOUR_DESIRED_USERNAME]"}'

2. Populate ./manifest.json or ./versal.json with your username

The username key in the manifest should reflect the username you set up in No. 1. This is used during the compile phase to namespace CSS selectors.

3. Build your gadget

Perform any gadget specific build steps

4. Upload the gadget

versal version patch # generally you have to bump the version to upload
versal upload --apiUrl https://stagingstack.versal.com/api2