Skip to main content

Works with th2 1.7.3

Using

Install:

pip install th2-cli

Check version of CLI:

th2 version

Output example:

$ th2 version
th2 CLI v1.7.3
Source repository: https://github.com/d0rich/th2-cli

Install th2

If you already have configurations in th2-cli-install-config.yaml or secrets.yaml, it will be convenient to run process from the directory with these files. In other case CLI will create these config files during installation.

th2 install

Delete th2

th2 delete

Update th2

th2 delete

Wait until all required namespaces are terminated.

th2 install

Get th2 status

Display information about all th2-related namespaces in Kubernetes.

th2 status

infra-mgr

Display status of infra-mgr pod:

th2 mgr status

Display last logs of infra-mgr pod:

th2 mgr logs

Configurations templates

th2-cli-install-config.yaml

cassandra:
  datacenter: datacenter1
  host: host.minikube.internal
infra-mgr:
  git:
    http-auth-password: pat_token
    http-auth-username: pat_token
    repository: https://github.com/schema/repository
kubernetes:
  host: 192.168.49.2
  pvs-node: minikube

secrets.yaml

# required only for images from a private registry, will be attached as the first PullSecret to deployments
#productRegistry:
#  username: user
#  password: password
#  name: private-registry-1.example.com # core components registry

# required only for images from a private registry, will be attached as the second PullSecret to deployments
#solutionRegistry:
#  username: user
#  password: password
#  name: private-registry-2.example.com # components registry

# required only for images from a private registry, will be attached as the third PullSecret to deployments
#proprietaryRegistry:
#  username: user
#  password: password
#  name: private-registry-3.example.com # components registry

cassandra:
# set credentials for the existing Cassandra cluster
  dbUser:
    user: cassandra
    password: cassandra

rabbitmq:
# set admin user credentials, it will be created during deployment
  rabbitmqUsername: th2
  rabbitmqPassword: rab-pass
  # must be random string
  rabbitmqErlangCookie: cookie

Development

poetry install
poetry shell
th2 install

Metadata

Release files for th2-cli 1.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for th2-cli 1.7.3
File Size Uploaded Provenance Actions
th2-cli-1.7.3.tar.gz 14.1 kB Without provenance Details for th2-cli-1.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for th2-cli 1.7.3
File Interpreter ABI Platform Actions
th2_cli-1.7.3-py3-none-any.whl Python 3 none any Details for th2_cli-1.7.3-py3-none-any.whl

Total release size: 35.0 kB

Release files / th2-cli-1.7.3.tar.gz

Download URL th2-cli-1.7.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4af130eef4ed9689ce8e84ca993843afdd114157e73e2193e3ed74c06f1c0582
BLAKE2b-256 checksum
How to use checksums
21da7ff2964b795eafbbfcda3930c18ee7c73e0acca97a4c2826675af22de8b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / th2_cli-1.7.3-py3-none-any.whl

Download URL th2_cli-1.7.3-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18e3266e6b5ffe68aa19a00ea02f27814fa2c631712acf0dcb1c5c118bfbf3ff
BLAKE2b-256 checksum
How to use checksums
05373e61fa13f63df76cee9b15232db6aeb78983cc851191a98037a8073c7fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for th2-cli 1.7.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page