tm1cm · Walkthrough 4 of 5
Pick changes in the interactive shell
The interactive shell compares two places (a server and the project's files, or two servers) and lists what would change, so you can pick what to do. Here the project has a change to PriceCube's rules that prod doesn't have yet.
Steps
Start the shell in the project's folder with
tm1cm, and typels appsat its prompt. It lists the places you can compare: the project's files (local) and each environment.exit,quitor Ctrl-D leaves the shell:Terminal
tm1cmThen type at its prompt (in bold)
… 8 lines before Welcome to TM1 Code Migrate interactive! (tm1cm) $ ls apps sales.prod sales.test sales.local (tm1cm) $ exitCompare two of them with
migrate <from> <to>, andlsto see what would change on the second: here the change to PriceCube's rules is the only difference. Pick what to do withadd(wildcards work:add UPDATE_PROCESS:*), check it withls stage, and do it withdo, which asks first:Terminal
tm1cmThen type at its prompt (in bold)
… 8 lines before Welcome to TM1 Code Migrate interactive! (tm1cm) $ migrate sales.local sales.prod (tm1cm) $ ls UPDATE_RULE: PriceCube (tm1cm) $ add UPDATE_RULE:* Add: UPDATE_RULE: PriceCube (tm1cm) $ ls stage UPDATE_RULE: PriceCube (tm1cm) $ do Perform STAGED operations? (1/1) [y/n]? y Doing: UPDATE_RULE: PriceCube (tm1cm) $ exitrmtakes an operation back off the stage, anddo alldoes every one.
A backup first
The shell can run a TI process before do, to back the server up: backup_process in tm1cm.yaml, with backup_on_migrate to run it by default, and backup_allow_override to be asked each time.
What's next
Run tm1cm unattended, for the changes that don't need a person to pick them.
Next
- Run tm1cm unattended: Exit codes and logs for CI and scheduled jobs, with nobody there to answer.
All the settings, filters, options and exit codes are in the reference.