{"id":19308654,"url":"https://github.com/mtulio/glpi-cli","last_synced_at":"2025-07-19T02:04:34.793Z","repository":{"id":57435002,"uuid":"90583903","full_name":"mtulio/glpi-cli","owner":"mtulio","description":"\u003e\u003e MAIN Dev Repo: https://github.com/truly-systems/glpi-cli \u003c\u003c  GLPI Command Line Interface","archived":false,"fork":false,"pushed_at":"2017-06-17T17:46:53.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T20:46:15.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtulio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-08T03:45:17.000Z","updated_at":"2023-10-27T08:10:18.000Z","dependencies_parsed_at":"2022-09-04T15:33:08.141Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/glpi-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/glpi-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fglpi-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fglpi-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fglpi-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fglpi-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/glpi-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fglpi-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265872274,"owners_count":23842154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:16:00.755Z","updated_at":"2025-07-19T02:04:34.766Z","avatar_url":"https://github.com/mtulio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glpi-cli\n\n[![Build Status](https://travis-ci.org/mtulio/glpi-cli.svg?branch=master)](https://travis-ci.org/mtulio/glpi-cli)\n[![PyPi Version](https://img.shields.io/pypi/v/glpi-cli.svg)](https://pypi.python.org/pypi/glpi-cli)\n\nGLPI Command Line Interface.\n\nEasy way to iterate with GLPI using Command Line Interface.\n\nThis CLI use this [GLPI SDK](https://github.com/truly-systems/glpi-sdk-python)\n\n## Config\n\nInstall from repository\n\n```\ngit clone https://github.com/mtulio/glpi-cli\ncd glpi-cli\nmake install-me\n```\n\nOR install it using pip:\n\n`pip install glpi-cli`\n\nSetup the environment with your GLPI\n\n```shell\nexport GLPI_API_URL=http://path/to/glpi/apirest.php\nexport GLPI_USERNAME=\u003cYour username\u003e\nexport GLPI_PASSWORD=\u003cYour password\u003e\nexport GLPI_APP_TOKEN=\u003cYour User APP Token\u003e\n```\n\n## USAGE\n\n* Get all Ticket items\n\n```shell\n$ glpi-cli --item ticket --command get_all\n```\n\n* Get an Ticket by ID\n\n```shell\n$ glpi-cli --item ticket --command get_all --id 10\n```\n\n* Get all Knowledge Base Titles - filtered output with json util `jq`\n\n```shell\n$ glpi-cli --item knowbase --command get_all |jq .[].name\n```\n\n* Get Item deleted flag\n\n```shell\n$ glpi-cli -i ticket -c get -id 52 |jq .is_deleted\n```\n\n* Delete Ticket\n\n```shell\n$ glpi-cli -i ticket -c delete -id 52\n```\n\n* Update Ticket\n\n```shell\n$ glpi-cli -i ticket -c update -id 52 -p '{ \"status\": 5, \"impact\": 2}'\n```\n\n* Update Ticket, forcing\n\n```shell\n$ glpi-cli -i ticket -c update -id 52 -p '{ \"status\": 5, \"impact\": 2}' -f\n```\n\n* Update Ticket, forcing and verbosiity\n\n```shell\n$ glpi-cli -i ticket -c update -id 52 -p '{ \"status\": 5, \"impact\": 2}' -v -f\n```\n\n## Get Involved\n\nPR are always welcome. =]\n\nPlease make sure that the code have passed in following tests:\n\n```shell\nmake  dependencies\nmake check-syntax\nmake install-me\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fglpi-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Fglpi-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fglpi-cli/lists"}