panorama-super-cli (psc)
Agent-friendly object management for Palo Alto Panorama. Find where an IP
lives, hunt down duplicate address/service objects, merge them safely (rewriting
every group and rule that referenced them), enforce naming conventions, and
audit object hygiene — all dry-run by default, with PAN-OS set and
JSON output for humans and agents alike.
$ psc --config panorama.xml find ip 10.0.0.10
$ psc --config panorama.xml dedup addresses
$ psc --config panorama.xml dedup merge --keep h-web1 --remove web-primary --apply --out fixed.xml
v1.0.0. From this release
pscfollows SemVer: the CLI surface, JSON contracts, and exit codes are stable public API. Writes are dry-run by default; nothing touches Panorama without--apply.
Why
Panorama configs rot: the same 10.0.0.10 ends up as h-web1, web-primary,
and WEB_PRD_01; services duplicate well-known ports; objects outlive the rules
that used them. psc gives you a fast, scriptable, safe way to see and fix
that — offline against an exported config, or live against Panorama.
Install
uv tool install panorama-super-cli # recommended
# or
pipx install panorama-super-cli
# or
pip install panorama-super-cli
Two ways to point it at a config
- Offline (no credentials, totally safe):
psc --config exported.xml <cmd>. Export from Panorama (scp export configuration ...or the GUI) and audit it on your laptop. - Live: configure a profile (
psc init,psc login) andpsctalks the PAN-OS XML API viapan-os-python. Reads are free; writes still require--apply.
What it does
| Area | Commands |
|---|---|
| Find / resolve | psc find ip <ip>, find ip -e <ip> (exact only), find ip --resolve-fqdn (opt-in DNS), find ip -f ips.txt, find object <name> |
| Duplicates | psc dedup addresses, dedup services, dedup groups, dedup merge (pairwise or --group <value>), dedup merge-group |
| Audit | psc audit overlaps (overlapping/contained CIDR ranges), audit services-vs-wellknown |
| Diff | psc diff a.xml b.xml, diff --device-group A --against B |
| Object CRUD | psc set address|address-group|service|service-group|tag ... (create/update with PAN-OS validation) |
| Import / export | psc export <kind> (NDJSON), psc set <kind> -f objs.ndjson (bulk import) |
| Rule edits | psc rule edit-member --rule R --field F --add/--remove M (idempotent) |
| Decommission / move | psc decommission <ip|cidr>... (reference-safe teardown), psc move <kind> <name> --from --to [--cascade] |
| Naming | psc name lint, name apply --object / --all (opt-in templates) |
| References | psc refs used <object>, refs unused [--ignore-disabled], refs dangling |
| Workbench | psc workbench (psc w) — interactive TUI, full CLI parity |
| Output | `--output json |
See the docs for the full surface, the safety model, and the agent guide.
Workbench (interactive TUI)
Prefer a cockpit to one-shot commands? psc workbench (alias psc w) is a
keyboard-driven Textual TUI at full CLI parity.
Search objects, multi-select them into a persistent buffer, route the selection
into a spoke (dedup, move, rename, decommission, rule edits, audits, naming,
create, …), and stage plans into a git-like changelist that applies as one batch
— as a set script, an offline config write, or a live candidate push (never a
commit). Same safety model as the CLI throughout.
psc --config panorama.xml workbench
psc -p prod w --output-mode live-apply
See the Workbench guide.
Safety model
- Dry-run is the default. Every mutating command prints a plan and exits
without touching anything unless you add
--apply. - Side-effect aware. Merging or renaming an object rewrites every address
group, security rule, and NAT rule that referenced it — across
sharedand device-groups — or refuses and tells you why. --debugstreams structured logs to stderr; stdout stays clean for pipes.
For AI agents
psc ships a bundled Agent Skill and
emits a stable JSON envelope + exit-code contract. Pass --output json and
parse away. See Using with AI agents.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file panorama_super_cli-1.6.0.tar.gz.
File metadata
- Download URL: panorama_super_cli-1.6.0.tar.gz
- Upload date:
- Size: 367.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398e37ce4910cd0d57622e2b31c55847844ff7efb743c4ca850a34f24d7824a0
|
|
| MD5 |
9764123410f2e499fbd6d72cb3dcfb59
|
|
| BLAKE2b-256 |
de4184bc16ef8e5cbb48caea2b28aa99dce57494fbead49dc536d9c40bc978be
|
Provenance
The following attestation bundles were made for panorama_super_cli-1.6.0.tar.gz:
Publisher:
release.yml on thomaschristory/panorama-super-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panorama_super_cli-1.6.0.tar.gz -
Subject digest:
398e37ce4910cd0d57622e2b31c55847844ff7efb743c4ca850a34f24d7824a0 - Sigstore transparency entry: 2162635377
- Sigstore integration time:
-
Permalink:
thomaschristory/panorama-super-cli@c8c68e3ef542dd0ed03ef12fa604e00b39e510d7 -
Branch / Tag:
refs/tags/v1.6.0 - Owner: https://github.com/thomaschristory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8c68e3ef542dd0ed03ef12fa604e00b39e510d7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file panorama_super_cli-1.6.0-py3-none-any.whl.
File metadata
- Download URL: panorama_super_cli-1.6.0-py3-none-any.whl
- Upload date:
- Size: 210.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823fd61375727a74be28dc4ff8c26b8839147b7b6213ba5d0b26b25d7c55e27f
|
|
| MD5 |
d39bf9d879dbad0632bff33da8dc26ef
|
|
| BLAKE2b-256 |
ffdb6992d9a8782b24fa67f854cbaa56d256534122774fc9be53138cd7aa51fb
|
Provenance
The following attestation bundles were made for panorama_super_cli-1.6.0-py3-none-any.whl:
Publisher:
release.yml on thomaschristory/panorama-super-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panorama_super_cli-1.6.0-py3-none-any.whl -
Subject digest:
823fd61375727a74be28dc4ff8c26b8839147b7b6213ba5d0b26b25d7c55e27f - Sigstore transparency entry: 2162635514
- Sigstore integration time:
-
Permalink:
thomaschristory/panorama-super-cli@c8c68e3ef542dd0ed03ef12fa604e00b39e510d7 -
Branch / Tag:
refs/tags/v1.6.0 - Owner: https://github.com/thomaschristory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8c68e3ef542dd0ed03ef12fa604e00b39e510d7 -
Trigger Event:
push
-
Statement type: