Skip to main content

GLPI Command Line Interface

Project description

# glpi-cli

[![Build Status](](

GLPI Command Line Interface.

Easy way to iterate with GLPI using Command Line Interface.

This CLI use this [GLPI SDK](

## Config

Clone this repository

git clone

OR install it using pip

pip install glpi-cli

Setup the environment with your GLPI

`shell export GLPI_API_URL=http://path/to/glpi/apirest.php export GLPI_USERNAME=<Your username> export GLPI_PASSWORD=<Your password> export GLPI_APP_TOKEN=<Your User APP Token> `

## Use it

  • Get all Ticket items

`shell python --item knowbase --command get_all `

  • Get an Ticket by ID

`shell python --item knowbase --command get_all --id 10 `

  • Get all Knowledge Base items filtering output with json util jq

`shell python --item knowbase --command get_all |jq .[].name `

## Get Involved

PR are always welcome. =]

Please make sure that the code have passed in following tests:

`shell make dependencies make check-syntax make install-me `

Project details

Download files

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

Source Distribution

glpi-cli-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded source

Supported by

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