Skip to main content

qls-mgw-cli

Command line sign-in and a small Python library for the API Gateway for Cisco Meraki. Install it from PyPI as qls-mgw-cli (not mgw, which is an unrelated package). Your gateway also serves the same wheel (the "My access" page shows the exact command). It was called mgw-cli before: remove that first (uv tool uninstall mgw-cli or pip uninstall mgw-cli). The command (mgw) and the import (mgw_cli) are unchanged. The version is always the same as the gateway's version.

Command line

uv tool install qls-mgw-cli
mgw login --gateway https://<gateway>
mgw run -- python my_script.py

Python

Install it into your project's environment, next to the meraki SDK:

pip install meraki qls-mgw-cli
from mgw_cli import Gateway

gw = Gateway("https://<gateway>")            # uses `mgw login` or MGW_TOKEN
# gw = Gateway.login("https://<gateway>")    # or sign in from Python (browser, MFA)

dashboard = gw.dashboard()                   # meraki.DashboardAPI through the gateway
print(dashboard.organizations.getOrganizations())

with gw.change("CHG-1234"):                  # change reference for these writes
    dashboard.networks.updateNetwork(network_id, name="Store 12")

with gw.temporary_dashboard(hours=8) as dashboard:   # long job: temporary API key, revoked afterwards
    ...

# Automation without a person (service account, client credentials):
gw = Gateway.from_client_credentials("https://<gateway>", client_id, client_secret)

Other calls: whoami(), organizations(), create_api_key(), api_keys(), revoke_api_key(), revoke_all_api_keys(), set_change_reference(), clear_change_reference(), check_change_reference(), and call() for any gateway endpoint. Errors raise GatewayError with .status.

Not affiliated with, endorsed by or sponsored by Cisco Systems, Inc.

Metadata

Release files for qls-mgw-cli 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for qls-mgw-cli 0.1.0
File Interpreter ABI Platform Actions
qls_mgw_cli-0.1.0-py3-none-any.whl Python 3 none any Details for qls_mgw_cli-0.1.0-py3-none-any.whl

Release files / qls_mgw_cli-0.1.0-py3-none-any.whl

Download URL qls_mgw_cli-0.1.0-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a24fe96e125b7a5629d9a1acf68504e03d69d1c06a1485c73dede2a2f337f40b
BLAKE2b-256 checksum
How to use checksums
44e63ca4499011eded8434519aa2ee121facc62322937b66f0e43516d33aaac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Security for qls-mgw-cli 0.1.0

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.

Full provenance

All 1 file in this release has been uploaded with provenance metadata.

Attestation for qls_mgw_cli-0.1.0-py3-none-any.whl

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 Oct 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file Full provenance

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