@in3/tacli
v1.32.4
Published
TARASOL CLI tool - automate TARASOL Team/repetitive operations
Readme
tarasol-automation-cli
A CLI tool to automate TARASOL repatitive/operational tasks
Getting started:
prerequisite:
- you have to be logged in to your npm account
- your npm account must be a member at in3 private organization
npm loginnpm install -g @in3/taclitacli --helpcommands:
oauth2
tacli oauth2 new client <client_name>Description: Generates new client_id, client_secret, and hashed_client_secret to request server-2-server token from TARASOL auth service (currently there's no auth-service - so we are relying on tenant-service).
customers
mped
- migrateEMS
- to run the script over MPED environment set the environment variable
NODE_ENV=productionotherwise it will run over in3 environment - to run the script in DEBUG mode (which will rollback all SQL transactions so it will not insert/migrate anything) set the environment variable
ROLLBACK_TRANSACTIONS=true - to delete the already migrated records then migrate them again set the environment variable
DELETE_MIGRATED=true
Run the script over MPED environment:
NODE_ENV=production DELETE_MIGRATED=true tacli customers mped migrateEMS