Plety CLI
Plety Limited. Updated
The Plety CLI is the official command-line tool for Plety's public guides. Run it with npx plety-sdk to search the guides on licensing UK company records to AI buyers, read any page as Markdown, list pages and get the company facts. It comes with the plety-sdk npm package, needs no key and changes nothing.
Run it
No install is needed: npx fetches the plety-sdk package from npm (https://www.npmjs.com/package/plety-sdk) and runs it. To keep it, install it globally with npm install -g plety-sdk.
npx plety-sdk search can an administrator sell customer data
npx plety-sdk read /about/questions/can-an-administrator-sell-customer-data
npx plety-sdk pages --section insolvency
npx plety-sdk company --jsonCommands
Add --json to any command for the raw JSON answer, or --base to point it at another address. Exit code 1 means an error, with the API's error code and hint printed.
| Command | What it does |
|---|---|
| plety search <words> [--limit N] | Prints the best matching pages with their addresses |
| plety read <url or path> | Prints one page in full as Markdown |
| plety pages [--section ID] | Lists every guide page, optionally for one section |
| plety sections | Lists the sections of the site |
| plety company | Prints the facts needed to describe Plety |
| plety ask <question> | Natural-language search (NLWeb) |
For agents and scripts
The CLI is a thin layer over the Plety JavaScript SDK (https://plety.net/about/sdk) and the read-only API (https://plety.net/about/api). An agent that can run shell commands can use it in place of HTTP calls; an agent that speaks MCP can use the Plety MCP server instead (https://plety.net/about/mcp-server).