Skip to main content

GLPI Command Line Interface

Project description

# glpi-cli

[![Build Status](https://travis-ci.org/mtulio/glpi-cli.svg?branch=master)](https://travis-ci.org/mtulio/glpi-cli)

GLPI Command Line Interface.

Easy way to iterate with GLPI using Command Line Interface.

This CLI use this [GLPI SDK](https://github.com/truly-systems/glpi-sdk-python)

## Config

Clone this repository

git clone https://github.com/mtulio/glpi-cli

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 glpi-cli.py --item knowbase --command get_all `

  • Get an Ticket by ID

`shell python glpi-cli.py --item knowbase --command get_all --id 10 `

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

`shell python glpi-cli.py --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 and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page