Every Freshservice operation in one Go binary — with offline search, SLA intelligence, and agent-native JSON that no other Freshservice tool has.
freshservice-pp-cli is the first general-purpose terminal CLI for Freshservice — the jira-cli equivalent for ITSM. It covers tickets, changes, assets, users, and knowledge base with full CRUD, local SQLite sync, FTS across all entity types, and novel analytics commands that would require three dashboards and a spreadsheet to replicate manually.
Created by @mark-van-de-ven (Mark van de Ven).
The recommended path installs both the freshservice-pp-cli binary and the pp-freshservice agent skill (Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, and other agents supported by the upstream skills CLI) in one shot:
npx -y @mvanhorn/printing-press-library install freshserviceFor CLI only (no skill):
npx -y @mvanhorn/printing-press-library install freshservice --cli-onlyFor skill only — installs the skill into the same agents as the default command above, but skips the CLI binary (use this to update or reinstall just the skill):
npx -y @mvanhorn/printing-press-library install freshservice --skill-onlyTo constrain the skill install to one or more specific agents (repeatable — agent names match the skills CLI):
npx -y @mvanhorn/printing-press-library install freshservice --agent claude-code
npx -y @mvanhorn/printing-press-library install freshservice --agent claude-code --agent codexIf npx isn't available (no Node, offline), install the CLI directly via Go (requires Go 1.26.4 or newer):
go install github.com/mvanhorn/printing-press-library/library/productivity/freshservice/cmd/freshservice-pp-cli@latestThis installs the CLI only — no skill.
Download a pre-built binary for your platform from the latest release. On macOS, clear the Gatekeeper quarantine: xattr -d com.apple.quarantine <binary>. On Unix, mark it executable: chmod +x <binary>.
Install the CLI binary first. The installer writes binaries to a per-user managed bin directory by default: $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows.
npx -y @mvanhorn/printing-press-library install freshservice --cli-onlyThen install the focused Hermes skill.
From the Hermes CLI:
hermes skills install mvanhorn/printing-press-library/cli-skills/pp-freshservice --forceInside a Hermes chat session:
/skills install mvanhorn/printing-press-library/cli-skills/pp-freshservice --forceRestart the Hermes session or gateway if the newly installed skill is not visible immediately.
Install both the CLI binary and the focused OpenClaw skill. The installer defaults binaries to a per-user bin directory ($HOME/.local/bin on macOS/Linux, %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows):
npx -y @mvanhorn/printing-press-library install freshservice --agent openclawRestart the OpenClaw session or gateway if the newly installed skill is not visible immediately.
This CLI ships an MCPB bundle — Claude Desktop's standard format for one-click MCP extension installs (no JSON config required).
To install:
- Download the
.mcpbfor your platform from the latest release. - Double-click the
.mcpbfile. Claude Desktop opens and walks you through the install. - Fill in
FRESHSERVICE_APIKEYwhen Claude Desktop prompts you.
Requires Claude Desktop 1.0.0 or later. Pre-built bundles ship for macOS Apple Silicon (darwin-arm64) and Windows (amd64, arm64); for other platforms, use the manual config below.
Manual JSON config (advanced)
If you can't use the MCPB bundle (older Claude Desktop, unsupported platform), install the MCP binary and configure it manually.
Install the MCP binary from this CLI's published public-library entry or pre-built release.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"freshservice": {
"command": "freshservice-pp-mcp",
"env": {
"FRESHSERVICE_APIKEY": "<your-key>"
}
}
}
}Authenticate with a Personal Access Token (PAT) from your Freshservice account:
export FRESHSERVICE_APIKEY=<your-pat>
export FRESHSERVICE_DOMAIN=<tenant>.freshservice.com
freshservice-pp-cli doctordoctor performs an authenticated probe against /agents/me and reports the agent identity on success (e.g. OK (authenticated as you_at_example.com)), so you know the key works before running any real command.
FRESHSERVICE_DOMAIN is the Freshservice API tenant (e.g. acme.freshservice.com), NOT the Freshworks unified org dashboard (e.g. acme-org.myfreshworks.com). Freshworks deployments often have both — the dashboard and the API live on different subdomains.
Symptoms of using the wrong one:
doctorprintsDomain FAIL: ... looks like the Freshworks unified-org dashboard ...doctorprintsCredentials FAIL: /agents/me returned HTML, not JSON.- All commands appear to "succeed" but
resultsis a giant HTML string
Fix: drop any -org suffix from the subdomain and use .freshservice.com instead of .myfreshworks.com. Re-run doctor.
# verify your PAT and domain are configured correctly
freshservice-pp-cli doctor
# pull all tickets, assets, changes, and users into the local store
freshservice-pp-cli sync --full
# see your assigned tickets and pending approvals in one view
freshservice-pp-cli my-queue user_at_example.com --agent
# which tickets will breach SLA in the next 4 hours
freshservice-pp-cli breach-risk --hours 4 --agent
# find related tickets and KB articles before creating a duplicate
freshservice-pp-cli search "VPN issue" --in tickets,kb --agent
# see which agents are overloaded before assigning a ticket
freshservice-pp-cli workload --group "IT Support" --agent
These capabilities aren't available in any other tool for this API.
-
breach-risk— Shows every open ticket projected to breach SLA within the next N hours, sorted by minutes remaining — act before the clock runs out, not after.Use this when an SRE or IT admin needs to know which tickets will breach SLA before the next check-in — prevents reactive firefighting.
freshservice-pp-cli breach-risk --hours 4 --group Infrastructure --agent
-
dept-sla— Aggregates SLA compliance percentage, breach count, and mean time to resolve by requester department for a rolling period — exec-ready ranking without exporting to Excel.Use this when an AI agent is generating an executive SLA compliance report or identifying departments that need service level attention.
freshservice-pp-cli dept-sla --period 30d --sort breach-rate --agent
-
my-queue— Combines all tickets assigned to you with SLA countdown plus any change records awaiting your approval — the first command an agent runs each morning.Use this to get an AI agent's complete pending workload in one structured call before deciding which task to action next.
freshservice-pp-cli my-queue user_at_example.com --agent
-
search— Runs a single ranked full-text search across tickets, assets, change records, and KB articles simultaneously — find everything related to an incident keyword in one shot.Use this when an AI agent needs to gather context about a symptom across all ITSM entities before proposing a resolution.
freshservice-pp-cli search "database crash" --in tickets,assets,changes --agent
-
workload— Table of agents with open ticket count, average ticket age, P1/P2 count, and normalized load score — see who is drowning and who has capacity in five seconds.Use this when an AI agent needs to decide which human agent to assign a new ticket to based on current capacity.
freshservice-pp-cli workload --group "Network Support" --agent -
oncall-gap— Identifies time windows where high-severity tickets arrived but no agent in the group acknowledged within SLA — surfaces staffing gaps in on-call rotations.Use this to identify on-call schedule gaps before the next incident strikes the same window.
freshservice-pp-cli oncall-gap --group Infrastructure --period 4w --severity P1,P2 --agent
-
change-collisions— Flags change records whose planned maintenance windows overlap, optionally filtered by CI — prevents two teams from scheduling conflicting downtime on the same system.Use this before approving a change to verify no other group has a conflicting maintenance window on the same infrastructure.
freshservice-pp-cli change-collisions --window 48h --ci prod-db-01 --agent
-
recurrence— Uses FTS similarity on ticket subjects and descriptions to surface repeated symptom patterns grouped by asset, requester, or keyword — shows which problems keep coming back.Use this to identify root-cause candidates when an AI agent is investigating a chronic incident pattern.
freshservice-pp-cli recurrence --asset FS-1042 --days 90 --agent
-
kb-gaps— Matches recent ticket subjects against the KB article corpus using FTS and ranks topic clusters with no matching article by ticket volume — tells you exactly what to document first.Use this when an AI agent is drafting a knowledge base improvement plan and needs to prioritize which gaps to fill.
freshservice-pp-cli kb-gaps --group "Desktop Support" --days 30 --min-tickets 3 --agent
-
orphan-assets— Finds assets with no associated open ticket, no active contract, and no assigned user activity in the last N days — surfaces hardware you are paying maintenance on that nobody uses.Use this during IT asset audits to identify candidates for decommission or reallocation without manual cross-referencing.
freshservice-pp-cli orphan-assets --type laptop --days 60 --agent
Run freshservice-pp-cli --help for the full command reference and flag list.
Manage agent fields
freshservice-pp-cli agent-fields list- List agent form fields
Manage agents
freshservice-pp-cli agents create- Create an agentfreshservice-pp-cli agents delete- Delete agentfreshservice-pp-cli agents get- Get agent by IDfreshservice-pp-cli agents list- List agentsfreshservice-pp-cli agents update- Update agent
Manage assets
freshservice-pp-cli assets create- Create an assetfreshservice-pp-cli assets delete- Delete an assetfreshservice-pp-cli assets get- Get asset by display IDfreshservice-pp-cli assets list- List or search assetsfreshservice-pp-cli assets update- Update an asset
Manage canned responses
freshservice-pp-cli canned-responses get- Get canned responsefreshservice-pp-cli canned-responses list- List canned responses
Manage change form fields
freshservice-pp-cli change-form-fields list- List change form fields
Manage changes
freshservice-pp-cli changes create- Create a changefreshservice-pp-cli changes delete- Delete a changefreshservice-pp-cli changes filter- Filter changes by queryfreshservice-pp-cli changes get- Get change by IDfreshservice-pp-cli changes list- List changesfreshservice-pp-cli changes update- Update a change
Manage contracts
freshservice-pp-cli contracts list- List contracts
Manage departments
freshservice-pp-cli departments list- List departments
Manage groups
freshservice-pp-cli groups create- Create agent groupfreshservice-pp-cli groups get- Get agent groupfreshservice-pp-cli groups list- List agent groupsfreshservice-pp-cli groups update- Update agent group
Manage locations
freshservice-pp-cli locations list- List locations
Manage products
freshservice-pp-cli products create- Create productfreshservice-pp-cli products get- Get productfreshservice-pp-cli products list- List productsfreshservice-pp-cli products update- Update product
Manage requester fields
freshservice-pp-cli requester-fields list- List requester form fields
Manage requesters
freshservice-pp-cli requesters create- Create a requesterfreshservice-pp-cli requesters deactivate- Deactivate requesterfreshservice-pp-cli requesters get- Get requester by IDfreshservice-pp-cli requesters list- List requestersfreshservice-pp-cli requesters update- Update requester
Manage service catalog
freshservice-pp-cli service-catalog list-items- List service catalog itemsfreshservice-pp-cli service-catalog place-service-request- Place a service catalog request
Manage solutions
freshservice-pp-cli solutions get-category- Get knowledge base categoryfreshservice-pp-cli solutions list-categories- List knowledge base categories
Manage ticket form fields
freshservice-pp-cli ticket-form-fields list- List ticket form fields
Manage tickets
freshservice-pp-cli tickets create- Create a ticketfreshservice-pp-cli tickets delete- Delete a ticketfreshservice-pp-cli tickets filter- Filter tickets by queryfreshservice-pp-cli tickets get- Get ticket by IDfreshservice-pp-cli tickets list- List ticketsfreshservice-pp-cli tickets update- Update a ticket
Manage vendors
freshservice-pp-cli vendors list- List vendors
Manage workspaces
freshservice-pp-cli workspaces list- List workspaces
# Human-readable table (default in terminal, JSON when piped)
freshservice-pp-cli agent-fields
# JSON for scripting and agents
freshservice-pp-cli agent-fields --json
# Filter to specific fields
freshservice-pp-cli agent-fields --json --select id,name,status
# Dry run — show the request without sending
freshservice-pp-cli agent-fields --dry-run
# Agent mode — JSON + compact + no prompts in one flag
freshservice-pp-cli agent-fields --agentThis CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--jsonoutput to stdout, errors to stderr - Filterable -
--select id,namereturns only fields you need - Previewable -
--dry-runshows the request without sending - Explicit retries - add
--idempotentto create retries and--ignore-missingto delete retries when a no-op success is acceptable - Confirmable -
--yesfor explicit confirmation of destructive actions - Piped input - write commands can accept structured input when their help lists
--stdin - Offline-friendly - sync/search commands can use the local SQLite store when available
- Agent-safe by default - no colors or formatting unless
--human-friendlyis set
Exit codes: 0 success, 2 usage error, 3 not found, 4 auth error, 5 API error, 7 rate limited, 10 config error.
freshservice-pp-cli doctorVerifies configuration, credentials, and connectivity to the API.
Config file: ~/.config/freshservice-pp-cli/config.toml
Static request headers can be configured under headers; per-command header overrides take precedence.
Environment variables:
| Name | Kind | Required | Description |
|---|---|---|---|
FRESHSERVICE_APIKEY |
per_call | Yes | Set to your API credential. |
FRESHSERVICE_DOMAIN |
per_call | Yes | Your Freshservice subdomain, e.g. acme.freshservice.com |
Authentication errors (exit code 4)
- Run
freshservice-pp-cli doctorto check credentials - Verify the environment variable is set:
echo $FRESHSERVICE_APIKEYNot found errors (exit code 3) - Check the resource ID is correct
- Run the
listcommand to see available items
- 401 Unauthorized on every request — verify FRESHSERVICE_APIKEY is your PAT (not username/password) and FRESHSERVICE_DOMAIN is yourcompany.freshservice.com without https://
- 500 error on filter queries — wrap filter query in quotes: --query '"status:2 AND priority:3"' — Freshservice requires double-quoted filter strings
- 429 Too Many Requests — your plan rate limit is being hit; reduce --per-page or add --delay between bulk operations
- sync returns no results — check FRESHSERVICE_DOMAIN matches your actual subdomain; run doctor --verbose for connection details
This CLI was built by studying these projects and resources:
- ankitpokhrel/jira-cli — Go (5600 stars)
- flycastpartnersinc/FreshservicePS — PowerShell (36 stars)
- effytech/freshservice_mcp — Python (31 stars)
- matthewoestreich/psFreshservice — PowerShell (14 stars)
- theapsgroup/steampipe-plugin-freshservice — Go (7 stars)
- theapsgroup/go-freshservice — Go (4 stars)
Generated by CLI Printing Press