{"schemaVersion":"opencli.cli.v1","slug":"prettier","name":"Prettier","shortName":"prettier","binaryName":"prettier","maker":{"slug":"prettier","name":"Prettier","type":"small-team","url":"https://prettier.io","officialPlatformMaker":false,"featuredBuilder":false},"category":"Productivity","description":"Formatting, markdown, and code consistency from the terminal. Built by Prettier.","tagline":"Formatting, markdown, and code consistency from the terminal.","install":{"packageManager":"npm","command":"npm i -g prettier","packageName":null,"npmPackage":"prettier","brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"prettier --version","signal":"prettier responds locally and is ready for the first real command."},"quickStart":"prettier . --write","exampleWorkflow":["prettier . --write"],"agent":{"readiness":{"label":"Usable with guardrails","score":50,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output.","Start read-only, then ask before mutations."]},"packUrl":"https://opencli.co/cli/prettier/agent.md","packMarkdown":"# OpenCLI Agent Pack: Prettier\n\nUse this when an AI agent needs to work with `prettier`.\n\n## What this CLI is for\nFormatting, markdown, and code consistency from the terminal. Built by Prettier.\n\nBest for: formatting, markdown, and code consistency from the terminal.\n\n## Agent readiness\nUsable with guardrails (50/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nnpm i -g prettier\n```\n\n## Verify before real work\n```sh\nprettier --version\n```\nExpected signal: prettier responds locally and is ready for the first real command.\n\n## Safe starting commands\n```sh\nprettier --version\n```\n\n```sh\nprettier . --write\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Start read-only, then ask before mutations.\n\n## Suggested agent instruction\nYou may use Prettier (`prettier`) for formatting, markdown, and code consistency from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"formatting, markdown, and code consistency from the terminal.","useThisIf":"You need productivity workflows in both local dev and CI.","skipIf":"You don't work with productivity workflows.","whatHappensNext":"Run `prettier . --write` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":false,"ciFriendly":true,"localFirst":false,"destructivePotential":"medium"},"taxonomy":{"useCases":["Formatting","Markdown","Code consistency"],"aliases":["code formatter"],"keywords":["format javascript typescript markdown"],"tags":["builder","agent-friendly","ci-friendly"]},"links":{"website":"https://prettier.io","github":"https://github.com/prettier/prettier","docs":"https://prettier.io/docs/en/cli.html","opencli":"https://opencli.co/cli/prettier","markdown":"https://opencli.co/cli/prettier/agent.md","json":"https://opencli.co/cli/prettier.json"},"metrics":{"githubStars":51956,"latestRelease":"2026-06-08T10:37:23Z","license":"MIT","metricLabel":"npm weekly downloads","metricValue":108865351,"metricSource":"npm","metricAsOf":"2026-06-08T11:00:54.791Z"}}