ZebraStream CLI
An open-source command-line interface for the Management API of ZebraStream, a simple, managed service to establish data flow between organizations, applications, and devices. Easily manage access tokens and view usage statistics for your ZebraStream account from your terminal.
Features
- Create new access tokens
- List all access tokens
- Delete access tokens
- Show usage statistics
Installation
Recommended: Install Globally with pipx
pipx allows you to run Python CLI tools in isolated environments:
pipx install zebrastream-cli
Install the Latest Stable Release from PyPI
pip install zebrastream-cli
Install the Latest Development Version from GitHub
pip install git+https://github.com/ZebraStream/zebrastream-cli.git
Usage
After installation, the CLI is available as zebrastream-cli:
Authentication
All commands require an API key. You can set it as an environment variable:
export ZEBRASTREAM_API_KEY=your_api_key_here
You can also set the API key persistently:
ZEBRASTREAM_API_KEY=your_api_key_here zebrastream-cli persist-config
Optional: Custom API URL
The default uses the official ZebraStream Management API, but it is also possible to use a custom ZebraStream API endpoint:
export ZEBRASTREAM_API_URL=https://your.custom.api.url
Commands
Create a New Access Token
zebrastream-cli create-token \
--path /mystream \
--access-mode read \
--expires 2027-12-31 \
[--recursive]
--expiresaccepts ISO 8601 format (e.g.2027-12-31or2027-12-31T12:34:56).
List All Access Tokens
zebrastream-cli list-tokens
- Expired tokens are highlighted in red.
Delete an Access Token
zebrastream-cli delete-token --token-id key_xxxxxxxxxxxxxxxx
Show Usage Statistics
zebrastream-cli show-usage [--month YYYY-MM]
Help
To see the available commands use:
zebrastream-cli --help
For detailed help on any command, use:
zebrastream-cli COMMAND --help
License
See LICENSE for details.
Metadata
Release files for zebrastream-cli 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zebrastream_cli-0.0.1.tar.gz | 22.9 kB | Without provenance | Details for zebrastream_cli-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zebrastream_cli-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for zebrastream_cli-0.0.1-py3-none-any.whl |
Total release size: 54.5 kB
Release files / zebrastream_cli-0.0.1.tar.gz
| Download URL | zebrastream_cli-0.0.1.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fc8c58897f6798b12ab3e6e5742ba1738029570ff47fc839ae4e356d91ea471
|
|
BLAKE2b-256 checksum How to use checksums |
1d1021f07e6516fff64e88f1321424b5052c00cf2b2a1ca7c2e5e970f4dedc95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1015-azure
|
Release files / zebrastream_cli-0.0.1-py3-none-any.whl
| Download URL | zebrastream_cli-0.0.1-py3-none-any.whl |
|---|---|
| Size | 31.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f195cf480b4ed0157bd2bab44f220b82b483c0ae9ce0d21567024edf1c1122a8
|
|
BLAKE2b-256 checksum How to use checksums |
ab9fdbfe7006b7e130ae858bc38fc0699f1d8adab89ff6bf56b0b8358c0cf0d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1015-azure
|
Security for zebrastream-cli 0.0.1
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.