Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CLI Reference

> **Windows (PowerShell):** use `curl.exe` instead of `curl`. PowerShell aliases `curl` to `Invoke-WebRequest`, which breaks the shell examples below. For JSON request bodies, prefer a file input such as `curl.exe ... -d "@input.json"`.

## skrun init

Create a new Skrun agent.
Expand Down Expand Up @@ -199,3 +201,27 @@ skrun deploy # npx installs MCP server at runtime
skrun test # Verify changes
skrun deploy # Re-deploy (bump version in agent.yaml first)
```

### Test POST /run from PowerShell
```powershell
$body = @{
input = "Audit this landing page for SEO issues"
} | ConvertTo-Json

$body | Set-Content -Path input.json
curl.exe -X POST http://localhost:3000/run `
-H "Content-Type: application/json" `
-d "@input.json"
```

### Call a deployed agent from PowerShell
```powershell
$body = @{
input = "Summarize the latest changelog entry"
} | ConvertTo-Json

$body | Set-Content -Path input.json
curl.exe -X POST https://your-agent.example/run `
-H "Content-Type: application/json" `
-d "@input.json"
```