Skip to main content

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

Project description

TM1-CLI

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>

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.2.tar.gz (3.3 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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tm1cli-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.7 Windows/10

File hashes

Hashes for tm1cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9cd9d1bf7620cde78ecdf5523da803fdc6c1dec7181db5a20e9e3641b7cae15c
MD5 c0e5c24a51202765ad654c34871f6ee1
BLAKE2b-256 30f626845d3d3621c383f38a2c276b7bf2d7d1606041fb69b3a25cbd51baacd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tm1cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.7 Windows/10

File hashes

Hashes for tm1cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a6cdda803ab6141c52b5b79f21d23170bee5747ccb4db6964e456f6cb38cf75
MD5 3c735028142826d9c91b8194610641fa
BLAKE2b-256 a6d18524958075423b8cfd4ad6853735ae39248c45674efa4bcfd95a1a1a65b6

See more details on using hashes here.

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