| name | glpi |
| description | Use this skill to manage GLPI resources — reservations, computers, and users |
GLPI skill
Use this skill to manage GLPI resources: reservations, computers, and users.
Usage
Run glpic from regular PATH. Always source credentials first.
Available Commands
Reservations
glpic list reservations
glpic list reservations -P user=someuser
glpic create reservation COMPUTER_NAME
glpic create reservation COMPUTER_NAME -f
glpic create reservation COMPUTER_NAME -P user=someuser -P end=2026-06-01 -P comment="testing"
glpic update reservations
glpic update reservations 123 456
glpic update reservations 123 -P end=2026-07-01 -P user=someuser
glpic delete reservation 123 456
glpic delete -y reservation 123
Computers
glpic list computers
glpic list computers -P cpumodel=xeon -P memory=64000
glpic list computers -P number=10
glpic info computer COMPUTER_NAME
glpic update computer COMPUTER_NAME -P comment="new comment"
Users
glpic list users
glpic list users -P is_active=1
Parameters
The -P flag accepts key=value pairs and can be specified multiple times.
| Context | Parameter | Description |
|---|
| Reservations | user | Target user (defaults to authenticated user) |
| Reservations | end | End date (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS) |
| Reservations | comment | Reservation comment |
| Computers | cpumodel | Filter by CPU model substring |
| Computers | memory | Filter by minimum memory (in MB) |
| Computers | number | Limit number of results |
Command Aliases
Commands accept aliases: add=create, remove=delete, get=list. Singular and plural forms are interchangeable (reservation/reservations, computer/computers, user/users).
Behavior
- Source the file ~/glpic.env for credentials before running any command.
- Report the script's text output as-is to the user.