Typed command surface
Commands map to LayerArc APIs, so agents avoid fragile shell quoting and arbitrary URL construction.
Agent SDK CLI
Use the LayerArc Agent SDK CLI from coding agents, automation scripts, or local terminals to call project, page, and Google Search Console APIs with stable JSON output.
layerarc pages list layerarc gsc url-inspection inspect \ --inspection-url https://example.com/pricing
The CLI is designed for agents and power users. It is non-interactive, reads credentials from environment variables, and never prints your token. LayerArc is in early access, so install from the @next npm channel unless a release has been promoted to latest.
npm install -g @layerarc/agent-sdk-cli@next export LAYERARC_AGENT_API_BASE_URL="https://agent.layerarc.com/v1" export LAYERARC_AGENT_API_TOKEN="<YOUR_AUTH_TOKEN>" export LAYERARC_PROJECT_ID="<OPTIONAL_DEFAULT_PROJECT_ID>" layerarc projects list
Commands map to LayerArc APIs, so agents avoid fragile shell quoting and arbitrary URL construction.
Set LAYERARC_PROJECT_ID once so project-scoped commands stay short and deterministic.
Every command returns stable JSON with ok, data, or error.
Use these examples directly, or ask your agent to inspect the built-in docs and skills first.
layerarc projects list layerarc pages list --limit 20 layerarc pages content get --page-id 123 layerarc pages content put --page-id 123 --file page.html
layerarc gsc sites get layerarc gsc search-analytics query --body query.json layerarc gsc sitemaps submit --feedpath https://example.com/sitemap.xml layerarc docs show pages
The CLI can fetch LayerArc's agent-readable API docs and workflow skills from the same source used by the public docs pages.
layerarc docs list layerarc docs show index layerarc skills list layerarc skills show create-page layerarc skills show gsc-get-summary
For browser-readable markdown, use CLI docs and CLI skills. Raw HTTP docs remain available at Agent API docs.