Skip to main content

A command-line interface (CLI) tool for interacting with TM1 servers using TM1py.

Project description

TM1-CLI

PyPI - License PyPI - Version

TM1-CLI is a command-line interface (CLI) tool to interact with TM1 servers using TM1py.


Features

  • Easily execute TM1 functions via the command line.
  • Manage multiple connection settings with databases.yaml file.
  • Built with Python, powered by Typer for intuitive CLI design.

Installation

Using pip

Install the package directly from PyPI:

pip install tm1cli

Using Poetry

Clone the repository and install using Poetry

git clone https://github.com/onefloid/tm1cli.git
cd tm1cli
poetry install

Usage

Commands

Connect to a TM1 server and print its version:

tm1cli tm1-version
tm1cli threads
tm1cli whoami

tm1cli process list
tm1cli process exists <process_name>
tm1cli process clone --from <source_db> --to <target_db>
tm1cli process dump <name> --folder <path> --format <json|yaml>
tm1cli process load <name> --folder <path> --format <json|yaml>

tm1cli cube list
tm1cli cube exists <cube_name> --watch

tm1cli dimension list
tm1cli dimension exists <dimension_name> -w

tm1cli view list <cube_name>
tm1cli view exists <cube_name> <view_name>

tm1cli subset list <dimension_name>
tm1cli subset exists <dimension_name> <subset_name>

All Available Commands

Run the following to see all available commands:

tm1cli --help

Configuration

Connection settings are stored in a databases.yaml file. Here's an example:

databases:
  - name: mydb
    address: localhost
    port: 10001
    ssl: false
    user: admin
    password: ""

  - name: myremotedb
    address: tm1.example.com
    port: 20000
    ssl: false
    user: admin
    password: apple

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tm1cli-0.1.6.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tm1cli-0.1.6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file tm1cli-0.1.6.tar.gz.

File metadata

  • Download URL: tm1cli-0.1.6.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tm1cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 332c7adf3920248c1ef460169462865f1a2fd3289c29a21a84f23bbe219beb23
MD5 70ba06a3aa84a4ac71dd01abeb5559b3
BLAKE2b-256 4b6a71a367b9f3e1363b35ebb2f1a0760185c40c2b86f36cc1c037e2fe59e1f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tm1cli-0.1.6.tar.gz:

Publisher: pypi-publish.yml on onefloid/tm1cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tm1cli-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tm1cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tm1cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4e0f11e380e6f6113229acd9f9b39889fcef07800cc7c02e98097f840eb3c5a3
MD5 65c9cd02c4b1239c9281f03778e89056
BLAKE2b-256 cf113607d7a5babd61605101c97cbc11325d04ed767a29e759c1d382b0e1670e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tm1cli-0.1.6-py3-none-any.whl:

Publisher: pypi-publish.yml on onefloid/tm1cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page