Script-first
Write plain Lua files and run them with ptool. The runtime exposes utilities under both ptool and p.
Lua-powered scripting for shell and automation workflows.
Build small, sharp automation scripts with Lua, then ship them like command-line tools.
ptool.use("v0.1.0")
local who = ptool.ask("Deploy target?", {
default = "staging",
})
ptool.run("echo", {"deploying", who})Start with the guide, then jump into the module-based Lua API docs as your scripting manual.
Why ptool
Write plain Lua files and run them with ptool. The runtime exposes utilities under both ptool and p.
Use helpers for semver, files, HTTP, SSH, templates, databases, and text processing without assembling separate tools.
Mix shell commands, argument parsing, shebang scripts, and structured APIs in one place for practical automation.
For AI
ptool publishes the source docs as static files so agents can read the original Markdown directly.
Tell your assistant to fetch the manifest first. It lists every document title, locale, permalink, and raw Markdown URL.
/raw/manifest.jsonEach document also has a stable raw Markdown URL. Use the manifest, or point to a page directly.
Example: read the manifest, select the matching locale and page, then load the raw Markdown instead of scraping the rendered site.
Fetch /raw/manifest.json, find the page for "/docs/intro", then read its rawUrl.