skipcheck

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.

  1. Start the shell in the project's folder with tm1cm, and type ls apps at its prompt. It lists the places you can compare: the project's files (local) and each environment. exit, quit or Ctrl-D leaves the shell:

    Terminal

    tm1cm

    Then 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) $ exit
  2. Compare two of them with migrate <from> <to>, and ls to see what would change on the second: here the change to PriceCube's rules is the only difference. Pick what to do with add (wildcards work: add UPDATE_PROCESS:*), check it with ls stage, and do it with do, which asks first:

    Terminal

    tm1cm

    Then 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) $ exit

    rm takes an operation back off the stage, and do all does every one.

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.

Run tm1cm unattended, for the changes that don't need a person to pick them.

All the settings, filters, options and exit codes are in the reference.