Skip to main content

zhmccli - A CLI for the IBM Z HMC, written in pure Python

Version on Pypi Test status (master) Docs status (master) Test coverage (master) Code Climate

Overview

The zhmccli package is a CLI written in pure Python that interacts with the Hardware Management Console (HMC) of IBM Z or LinuxONE machines. The goal of this package is to provide an easy-to-use command line interface for operators.

The zhmccli package uses the API provided by the zhmcclient package, which interacts with the Web Services API of the HMC. It supports management of the lifecycle and configuration of various platform resources, such as partitions, CPU, memory, virtual switches, I/O adapters, and more.

Installation

  • If not yet available, install the "pipx" command as described in https://pipx.pypa.io/stable/installation/.

  • Without having any virtual Python environment active, install the CLI as follows:

    $ pipx install zhmccli
    

    That makes the zhmc command available in the PATH, without having to activate any virtual Python environment.

For more details, see the Installation section in the documentation.

Quickstart

The following example lists the names of the machines (CPCs) managed by an HMC:

$ hmc_host="<IP address or hostname of the HMC>"
$ hmc_userid="<userid on that HMC>"
$ zhmc -h $hmc_host -u $hmc_userid cpc list --names-only
Enter password (for user ... at HMC ...): .......
+----------+
| name     |
|----------+
| P000S67B |
+----------+

Documentation

Contributing

For information on how to contribute to this project, see the Development section in the documentation.

License

The zhmccli package is licensed under the Apache 2.0 License.

Metadata

Release files for zhmccli 1.15.0

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

Source distribution (sdist)

Source distribution for zhmccli 1.15.0
File Size Uploaded
zhmccli-1.15.0.tar.gz 282.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zhmccli 1.15.0
File Interpreter ABI Platform
zhmccli-1.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 476.8 kB

Release files / zhmccli-1.15.0.tar.gz

Download URL zhmccli-1.15.0.tar.gz
Size 282.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9187ac207942ee82a896f6af24298dddae98ea48074b2d28dc249c426e1a9372
BLAKE2b-256 checksum
How to use checksums
cb28545ac3424e1e72e06b67f521f4801e07d9c488530f12f288e8af982587d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / zhmccli-1.15.0-py3-none-any.whl

Download URL zhmccli-1.15.0-py3-none-any.whl
Size 194.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
383584ceb9d3cf613e2eef2e272a5270658856f42cdc1a0044b3d4c1f2bb56a9
BLAKE2b-256 checksum
How to use checksums
e3b35343e59058c5128cb1ec5e1be5dcad1a199a96c283783ca0fdf97df6fffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.15.0 This release

2 release files

1.14.2

2 release files

1.14.1

2 release files

1.14.0

2 release files

1.13.1

2 release files

1.12.3

2 release files

1.12.2

2 release files

1.12.1

2 release files

1.12.0

2 release files

1.11.1

2 release files

1.11.0

2 release files

1.10.1

2 release files

1.10.0

2 release files

1.9.3

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.21.2

2 release files

0.21.1

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

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