Skip to content

docs: add Cloud JS SDK reference and migrate CLI docs#147

Merged
Leechael merged 4 commits intomainfrom
docs/cloud-js-sdk-and-cli-update
Mar 3, 2026
Merged

docs: add Cloud JS SDK reference and migrate CLI docs#147
Leechael merged 4 commits intomainfrom
docs/cloud-js-sdk-and-cli-update

Conversation

@Leechael
Copy link
Contributor

@Leechael Leechael commented Mar 3, 2026

Summary

  • SDK reference: Add 17 per-function reference pages for @phala/cloud covering parameters, return types, and examples — grouped into individual pages (provisionCvm, commitCvmProvision, updateCvmEnvs, etc.) and topic pages (CVM query, lifecycle, configuration, KMS, apps, workspaces, SSH keys, nodes)
  • On-chain KMS guide: New guide documenting the full ETHEREUM/BASE KMS deployment flow with env var and compose update workflows
  • CLI migration: Move 24 CLI command pages from references/phala-cloud-cli/phala/ into phala-cloud-cli/, merge the two overview pages, add grouped navigation (Auth, Deployment, App Management, CVM Operations, Advanced)
  • Navigation: Update docs.json with expanded SDK reference section, grouped CLI commands, and 26 redirect entries for old CLI paths
  • Changelogs: Add changelog pages for both the JS SDK and CLI

Test plan

  • Verify docs.json is valid JSON and Mintlify build succeeds
  • Spot-check SDK reference pages render correctly (parameter tables, code examples)
  • Verify old CLI URLs (e.g. /phala-cloud/references/phala-cloud-cli/phala/deploy) redirect to new paths
  • Verify internal links in cvms.mdx, deploy.mdx, set-secure-environment-variables.mdx, enable-ssh-access.mdx resolve correctly
  • Verify CLI overview page renders with all command groups

Leechael added 4 commits March 4, 2026 05:05
Add @phala/cloud SDK documentation covering client creation, all available
actions, API versioning (2026-01-21 / 2025-10-28), Zod schema reference,
and error handling. Update CLI reference with versioning info, credential
profiles, and global flags.
- Clarify that createClient already includes all actions; .extend() is
  for selective tree-shaking or custom actions with createBaseClient
- Mark version-aware actions with **V** indicator in the actions table
- Add note clarifying Error Handling vs Error Codes page relationship
- Document --api-version global flag and phala.toml api_version field
- Document all phala.toml fields with types and descriptions
…elogs

Add 17 per-function SDK reference pages covering all @phala/cloud client
methods with parameters, return types, and examples. Add on-chain KMS
guide documenting the ETHEREUM/BASE deployment flow. Add changelogs for
both the JS SDK and CLI.
Move 24 CLI command pages from phala-cloud/references/phala-cloud-cli/phala/
into phala-cloud/phala-cloud-cli/ to eliminate the redundant reference
section. Merge the two overview pages into one. Update docs.json with
grouped CLI navigation, expanded SDK reference section, and 26 redirect
entries for old CLI paths. Update internal links and generation scripts.
@Leechael Leechael merged commit 620397f into main Mar 3, 2026
5 checks passed
@Leechael Leechael deleted the docs/cloud-js-sdk-and-cli-update branch March 3, 2026 22:30
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.

1 participant