1.0.9 • Published 1 year ago
@brokenrubik/sca-activator v1.0.9
Activator
Activator is a command line tool for activating a site on SuiteCommerce Advanced.
To use it, make sure you have the https://github.com/BrokenRubik/sca-ci-restlets(SCA CI) scripts installed on your account.
Environment variables:
You only need a single environment variable to run the tool, in JSON format:
ACTIVATION_SECRETS
:
{
"REQUEST_URL": "Your activation restlet deploy URL, for example: https://tstdrv1941931.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=651&deploy=1",
"OAUTH_CONSUMER_KEY": "your consumer key",
"OAUTH_CONSUMER_SECRET": "your consumer secret",
"OAUTH_TOKEN": "your token",
"OAUTH_TOKEN_SECRET": "your token secret",
"DEPLOY_DATA": {
"activationId": "the activation ID you want to trigger, for example 26",
"extensions": [6101, 13201, 14301]
}
}
Usage locally
Create a .env file with the environment variables in the activator
directory:
activator/.env
ACTIVATION_SECRETS='{
"REQUEST_URL": "Your activation restlet deploy URL, for example: https://tstdrv1941931.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=651&deploy=1",
"OAUTH_CONSUMER_KEY": "your consumer key",
"OAUTH_CONSUMER_SECRET": "your consumer secret",
"OAUTH_TOKEN": "your token",
"OAUTH_TOKEN_SECRET": "your token secret",
"DEPLOY_DATA": {
"activationId": "the activation ID you want to trigger, for example 26",
"extensions": [6101, 13201, 14301]
}
}'
Install the dependencies
npm install
Run the activator locally
npm run activate
If you get this message, congratulations! You have successfully requested an activation.
✅ Activation request sent successfully!
💫 Activation ID: <number>