Skip to main content

sg init

Interactive setup wizard. Prompts for API key, endpoint, output mode, and config location.
No flags — fully interactive.

sg update

Update the CLI to the latest version.

Tool Commands

sg tool build

Build a new tool from a config file or individual flags.
Provide either --config or --id + --instruction + --steps.

sg tool run

Execute a draft, saved tool, or inline config.
Exactly one of --tool, --draft, --config, or --config-file is required.

sg tool edit

Edit a tool or draft using JSON Patch operations (RFC 6902).
One of --tool or --draft is required.

sg tool save

Persist a draft to the server.

sg tool list

List all saved tools.
No flags.

sg tool find

Search tools by query or look up by exact ID.
When called with no arguments or *, lists all tools. Otherwise performs a semantic search.

System Commands

sg system create

Create a new system.
--name and --url must be present in the system definition — provide them as flags, include them in --config, or let --template auto-fill both. --id is derived from --name if omitted.

sg system edit

Edit an existing system.

sg system list

List all systems.

sg system find

Search systems by query or look up by exact ID.

sg system call

Make an authenticated call through a system (HTTP API, database, or file server).

sg system credentials

Manage the current user’s credentials for systems configured with credentialOwnership: "user".
Common flags:

sg system search-docs

Search a system’s scraped documentation.

sg system oauth

Authenticate a system via OAuth.

Run Commands

sg run list

List recent tool execution runs.

sg run get

Get details of a specific run.
Takes a positional runId argument. No additional flags.