Skip to main content

This is a CLI for square project

Project description

Square project:

Usage command line interface

setup: pip install square-cli

get all inventory from env_id=1: inventory.py –url=http://localhost:8000/api -e 1 –list

get all inventory from env_id=1 with hostvars: inventory.py –url=http://localhost:8000/api -e 1 –list –hostvars

get host inventory from env_id=1: inventory.py –url=http://localhost:8000/api -e 1 –host 729059-comp-disk-306

Also, we can use environment variables for send parameters to inventory.py: REST_API_URL=http://localhost:8000/api ENVIRONMENT_ID=1 INVENTORY_HOSTVARS=true INVENTORY_ALL=true LIST=true inventory.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for square-cli, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size square-cli-1.1.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page