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.
Quick start
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
tm1cmcommand 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 --helpPowerShell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" uv tool install --python 3.14 tm1cm uv tool update-shell tm1cm --helpuv tool update-shellputs uv's tools on your PATH: open a new terminal after it. Later,uv tool upgrade tm1cmupdates tm1cm. This installs the latest release, 1.1.0. Rather use a Python you have? Install it in a virtual environment.Make a project. A folder with a config for each environment.
Terminal
tm1cm --mode scaffold --path salesOutput
… 8 lines before 2026-01-01 09:00:00,000 - tm1cm.scaffold - create_scaffold(94) - INFO - created new scaffold at salesSay where your server is, in the environment's
connect.yaml:config/test/connect.yaml
base_url: http://localhost:8011and who logs in, in
credentials.yaml:config/default/credentials.yaml
user: admin password: appleSData'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.
Get the model. Every object becomes a file under
data/.Terminal
tm1cm --mode get --environment testOutput
… 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/- Put it on another server with
tm1cm --mode put --environment prod, or only the files a commit changed: Promote a change with git.
Walkthroughs
Step by step, with what tm1cm printed when we ran each step against IBM's SData sample:
- Set up a project and get your model: Install tm1cm, make a project, connect it to your server, and write the model to files.
- Log in to TM1: Keep passwords out of files, sign in to CAM and through a browser, and give settings on the command line.
- Promote a change with git: Commit the model, change it, review the change, and put exactly that commit on the next server.
- Pick changes in the interactive shell: See what differs between two environments, and do only the changes you pick.
- Run tm1cm unattended: Exit codes and logs for CI and scheduled jobs, with nobody there to answer.
Build it with an agent
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.txtOpen 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.
What it does
- Get and put:
getwrites the server's model to files, andputwrites 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.yamlpick 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
putthe 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.
Reference
connect.yaml and credentials.yaml: the server, logging in, certificates.
Which objects tm1cm moves: the filters for each type, and the other settings.
The tm1cm command's options and modes.
What each exit code means, for scripts and CI.
Where each object's file is in a project, and how it's named.