Skip to content

SDK/CLI/API Docs Update#76

Draft
guthrie-vast wants to merge 11 commits intomainfrom
willbrennan/sdk-cli-api-docs-ia-proposal
Draft

SDK/CLI/API Docs Update#76
guthrie-vast wants to merge 11 commits intomainfrom
willbrennan/sdk-cli-api-docs-ia-proposal

Conversation

@guthrie-vast
Copy link
Copy Markdown
Collaborator

@guthrie-vast guthrie-vast commented Feb 24, 2026

Summary

  • Add auto-generated CLI command reference (133 pages) and SDK method reference (150+ pages) with sidebar navigation matching API docs category order
  • Add guide pages for Authentication, Permissions, and Templates across CLI and SDK tabs, mirroring the API tab structure
  • Rework SDK quickstart from flat examples into a step-by-step walkthrough
  • Restructure all tabs: top group renamed to "Get Started" with book icon, Authentication/Permissions nested as subpages, command groups ordered by OpenAPI tags with Machines (host-only) last
  • Add redirects for removed legacy pages (cli/get-started, cli/commands)
  • Split API "Permissions and Authorization" into separate Authentication and Permissions pages
  • Add AI agents quick-start guide (agents.mdx) — auth, SSH, VRAM units, onstart, response format, --raw recommendation

Reference page quality fixes

  • Added help text to 6 empty help="" args in vast-cli (--tail on endpt/wrkgrp-logs, --limit on launch-instance/search-offers/search-volumes/search-network-volumes)
  • Fixed %(default)s / %(default).Nf placeholders — now expanded at generation time instead of rendered literally
  • Custom argparse type functions (parse_day_cron_style, loads) now render as human-readable type names (integer, object) instead of raw function names
  • Dynamic date defaults (start_date, end_date) suppressed from static docs
  • Added SDK_TO_CLI_PARAM_MAP in generator to resolve create_instance.price → CLI bid_price
  • 12 corrections to vast.py help strings (get wrkgrp-logs id arg, search offers --new, cancel sync example, update team-role, search network-volumes example, tfa regen-codes)
  • Added Args: docstrings to 29 SDK methods in vastai_base.py that had bare param names or no docstrings at all
  • Regenerated all 133 CLI reference pages and 150 SDK reference pages

Hello world / guide fixes

  • Fixed overstated SSH key warnings across API/CLI/SDK hello worlds — account-level keys apply at creation time, but running Docker instances can receive keys via UI button or instance-specific API without recreating
  • Renumbered hello world steps to clean integers (no more 3b/4b)
  • Added SSH key registration step to CLI and SDK hello worlds
  • Added onstart 4048-char limit note to CLI and SDK hello worlds
  • Fixed VRAM MB/GB note in search-offers.mdx
  • Fixed cold_workers/min_workers terminology in serverless-parameters.mdx
  • Fixed onstart limit Warning in template-settings.mdx

Test plan

  • Verify Mintlify preview renders all three tabs correctly
  • Check sidebar hierarchy matches across Documentation, API, CLI, and SDK tabs
  • Confirm redirects work for old URLs
  • Review auto-generated reference pages for accuracy against source repos
  • Review guide page content against API tab counterparts

🤖 Generated with Claude Code

wbrennan899 and others added 9 commits March 23, 2026 15:53
- Fix API key generation link to point to Keys page
- Change search sort to dlperf_per_dphtotal, increase limit to 5
- Add cost estimate, disk size clarification, instance_api_key description
- Add SSH connection step (step 6), reorder clean up to step 7
- Swap destroy/stop order, add onstart callback mention
- Link to Search Offers reference, consolidate Next Steps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the minimal API introduction with the Hello World guide content,
remove the now-redundant hello-world.mdx, and add a redirect.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Python code tabs alongside curl for all API steps using CodeGroup.
Restore advanced-users-only warning that was on main.
…sh_direct, show instance link

- Expand intro to describe full API scope
- Add scoped API keys tip with link to Create API Key endpoint
- Switch auth step to /users/current/ endpoint
- Add template-based instance creation with link to Templates guide
- Add ssh_direct runtype to create params
- Fix instance_api_key description to include GET access
- Add Show Instance endpoint link in polling section
Add auto-generated CLI command reference (131 pages) and SDK method
reference (150+ pages) with sidebar navigation matching API docs
category order. Add guide pages for Authentication, Permissions, and
Templates across CLI and SDK tabs. Rework SDK quickstart into a
step-by-step walkthrough. Restructure all tabs to use "Get Started"
with book icon, nest Authentication/Permissions as subpages under
an Authentication group. Order command groups to match OpenAPI tags
with Machines (host-only) last. Add redirects for removed pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ted reference

- Add help text to 6 empty `help=""` args in vast-cli (--tail on endpt/wrkgrp-logs, --limit on launch-instance/search-offers/search-volumes/search-network-volumes)
- Add SDK_TO_CLI_PARAM_MAP in generator to resolve create_instance.price → CLI bid_price
- Add Args: docstrings to 7 SDK-only methods in vastai_base (create_autogroup, create_endpoint, create_instances, update_autoscaler, update_endpoint, create_workergroup, update_workergroup)
- Regenerate all 133 CLI reference pages and 150 SDK reference pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…strings

Generator fixes:
- %(default)s / %(default).Nf in help strings now expanded at generation time
- Custom argparse type functions (parse_day_cron_style, loads) now render as
  human-readable type names (integer, object) instead of function names
- Dynamic date defaults (start_date, end_date) suppressed from static docs

vast.py source fixes (12 corrections):
- get wrkgrp-logs: id arg said "endpoint group" not "worker group"; example
  showed wrong command; help had double "group"; usage was "workergroup create"
- search offers: --new help was cryptic "New search exp"
- cancel sync: example used "vast" not "vastai"
- update team-role: --name help said "template" not "role"
- search network-volumes: example used wrong command name
- tfa regen-codes: malformed --code example fixed

vastai_base.py (22 methods updated):
- Added docstrings + Args: sections to all methods with bare param names:
  create_instance, launch_instance, search_offers, self_test_machine,
  generate_pdf_invoices, invite_team_member, remove_team_member, scp_url,
  tfa_activate, tfa_delete, tfa_login, tfa_regen_codes, update_template,
  show_deposit
- Added missing docstrings: delete_autoscaler, destroy_instance,
  destroy_instances, detach_ssh, create_subaccount, delete_api_key,
  delete_endpoint, delete_ssh_key, destroy_team

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix overstated SSH key warnings across API/CLI/SDK hello worlds — account-level
  keys apply at creation time, but running Docker instances can receive keys via
  UI button or instance-specific API without recreating
- Renumber hello world steps to clean integers (no more 3b/4b)
- Add SSH key registration step to CLI and SDK hello worlds
- Add onstart 4048-char limit note to CLI and SDK hello worlds
- Add agents.mdx: AI agent quick-start guide (auth, SSH, VRAM units, onstart,
  response format, execute-don't-plan with --raw recommendation)
- Fix VRAM MB/GB note in search-offers.mdx
- Fix cold_workers/min_workers terminology in serverless-parameters.mdx
- Fix onstart limit Warning in template-settings.mdx
- Renumber API hello world steps 1-9 (SSH key registration is now step 4)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@guthrie-vast guthrie-vast force-pushed the willbrennan/sdk-cli-api-docs-ia-proposal branch from 2802493 to e82f962 Compare March 24, 2026 01:03
@guthrie-vast guthrie-vast changed the title SDK/CLI/API Docs info architecture proposal SDK/CLI/API Docs Update Mar 24, 2026
…leshooting

- cli/authentication: add VAST_API_KEY env var section for CI/CD, XDG path, legacy key migration note
- cli/reference/set-api-key: add storage/env var section
- docs.json: add agents page, template-selection, ollama-on-vast example, preflight-check and verification-requirements host pages; move virtual-machines under Advanced
- host/verification-stages: add Warning clarifying 10 Mbps listing vs 500 Mbps verification threshold
- host/vms: replace typo-ridden VM premium claim with accurate recommendation
- instances/virtual-machines: add Warning about ~25% VM creation failure rate
- instances/storage/data-movement: add Troubleshooting Stuck Transfers section
- serverless/comfy-ui, vllm: minor edits
- linux-virtual-desktop, linux-virtual-machines: small additions
- cli/commands.mdx: delete (replaced by generated reference pages)
- api-reference/openapi.json: update with clean spec (disable_bundling removed, instances v1 added)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace placeholder intro with a full end-to-end walkthrough:
authenticate, search for a GPU, rent it, wait for boot, connect,
and clean up — pulled from stash on main.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants