Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt

Use this file to discover all available pages before exploring further.

Old pattern

Do not scrape terminal output:
sf portfolio history | grep ...

New pattern

Use JSON:
sf portfolio history --json --ticks 20 --trades 10 --since 2026-04-23
Parse stdout as one JSON document.

Error handling

Use exit code and JSON error envelope:
sf query x --json
returns:
{
  "ok": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Query must be at least 2 characters."
  }
}

Discovery

Replace hardcoded command assumptions with:
sf describe --all --json