skipcheck

IBM Planning Analytics · Python

tm1cm

Your TM1 model in files, so you can review, version and promote it with git

tm1cm copies a TM1 model to files, one per object, and back: processes, cubes and their rules, dimensions and hierarchies, views, subsets, chores and applications. Keep them in git, review a change before it goes live, and put exactly what was reviewed on the next server.

Quick startWalkthroughsSource on GitHub

v1.1.0The latest release.

  1. Install it.

    The easiest way is uv: one command installs it, and it downloads the Python tm1cm needs and gives tm1cm an environment of its own, apart from your computer's Python. Then the tm1cm command works in any terminal.

    Terminal

    curl -LsSf https://astral.sh/uv/install.sh | sh
    uv tool install --python 3.14 tm1cm
    uv tool update-shell
    tm1cm --help

    PowerShell

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    uv tool install --python 3.14 tm1cm
    uv tool update-shell
    tm1cm --help

    uv tool update-shell puts uv's tools on your PATH: open a new terminal after it. Later, uv tool upgrade tm1cm updates tm1cm. This installs the latest release, 1.1.0. Rather use a Python you have? Install it in a virtual environment.

  2. Make a project. A folder with a config for each environment.

    Terminal

    tm1cm --mode scaffold --path sales

    Output

    … 8 lines before
    2026-01-01 09:00:00,000 - tm1cm.scaffold - create_scaffold(94) - INFO - created new scaffold at sales
  3. Say where your server is, in the environment's connect.yaml:

    config/test/connect.yaml

    base_url: http://localhost:8011

    and who logs in, in credentials.yaml:

    config/default/credentials.yaml

    user: admin
    password: apple

    SData's password is public, so it's in the file here. For your own server, leave it out: tm1cm asks for it each time it connects.

  4. Get the model. Every object becomes a file under data/.

    Terminal

    tm1cm --mode get --environment test

    Output

    … 148 lines before
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }ElementAttributes_}MS_SalesCube_metrics}_World Sales Strategy:All
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MD_SalesCube_metrics}_World Sales:All
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MD_SalesCube_metrics}_World Sales:MD_SalesCube_metrics}_World Sales
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MI_SalesCube_metrics:All
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MI_SalesCube_metrics:MI_SalesCube_metrics
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MS_SalesCube_metrics}_World Sales Strategy:All
    2026-01-01 09:00:00,000 - main - main(75) - INFO - Performing operation UPDATE_VIEW: }MS_SalesCube_metrics}_World Sales Strategy:MS_SalesCube_metrics}_World Sales Strategy
    2026-01-01 09:00:00,000 - skipcheck_tm1 - close(400) - INFO - Closed TM1 session 3 at http://localhost:8011/api/v1/
  5. Put it on another server with tm1cm --mode put --environment prod, or only the files a commit changed: Promote a change with git.

Step by step, with what tm1cm printed when we ran each step against IBM's SData sample:

Hand this prompt to a coding agent to set up tm1cm for your servers. It names how to install it, the docs and the walkthroughs, and asks you for anything it can't work out.

Prompt Show the full promptHide the prompt
Set up tm1cm for me: a tool that moves IBM Planning Analytics (TM1) models between servers and files, one file per object, for git.

Before you change anything, ask me which TM1 servers I have (the environments, such as test and prod), and the address of each one's REST API, unless I've said already. Ask how I log in: TM1's own security, or CAM, and which namespace. Never write a password into a file: tm1cm asks for it when it connects. Never put anything on a server without asking me first.

1. Check Python 3.11 or newer and git are installed.
2. Install tm1cm: uv tool install --python 3.14 tm1cm
3. Make the project with tm1cm --mode scaffold --path <folder>, and set base_url in config/<environment>/connect.yaml and user (and namespace, for CAM) in config/default/credentials.yaml, for each environment.
4. Get the model from the first environment with tm1cm --mode get --environment <environment>, show me what it wrote under data/, and commit it to git.
5. These walkthroughs do each step, with what tm1cm prints:

- Set up a project and get your model: https://skipcheck.io/tm1cm/walkthroughs/first-project/
- Log in to TM1: https://skipcheck.io/tm1cm/walkthroughs/logging-in/
- Promote a change with git: https://skipcheck.io/tm1cm/walkthroughs/promote/
- Pick changes in the interactive shell: https://skipcheck.io/tm1cm/walkthroughs/interactive/
- Run tm1cm unattended: https://skipcheck.io/tm1cm/walkthroughs/unattended/

6. Look up each setting, filter and option in the reference: https://skipcheck.io/tm1cm/docs/. Everything is also in one file for agents: https://skipcheck.io/tm1cm/llms-full.txt

Open in Claude DesktopOpen in Claude Code

Either link fills in the prompt, and you press Enter to send it. "Open in Claude Code" is for the terminal app, and works once you've run claude on this computer. Another agent, such as Codex, Cursor or Gemini CLI? Copy the prompt.

  • Get and put: get writes the server's model to files, and put writes the files to a server. Only what differs is changed, in the order TM1 needs: dimensions before the cubes made of them, a process before the chores that run it.
  • Only what you choose: filters in tm1cm.yaml pick the objects, by name and with wildcards: every process but the temporary ones, the hierarchies' elements but not the ones another system maintains. The filters.
  • Exactly a commit: give put the files a commit changed, deleted ones included, and it puts that change and nothing else.
  • Pick by hand: the interactive shell lists what differs between two environments, and does what you pick.
  • Every way TM1 logs in: TM1's own security, CAM with a password, and CAM namespaces that sign in through a browser (OpenID Connect, SAML), worked out from the server. A password is asked for rather than kept in a file. Logging in.
  • Made for automation: exit codes that say what went wrong, and a report in the log to attach to an issue. Running unattended.