Skip to content

docs(cli): rewrite README, add command reference and agent skill#176

Merged
Leechael merged 6 commits intomainfrom
docs/cli-readme-and-reference
Feb 12, 2026
Merged

docs(cli): rewrite README, add command reference and agent skill#176
Leechael merged 6 commits intomainfrom
docs/cli-readme-and-reference

Conversation

@Leechael
Copy link
Copy Markdown
Collaborator

Summary

  • Rewrite cli/README.md as concise npm entry page — no emojis, no deprecated commands (auth login, cvms create), no Commander.js references
  • Add cli/docs/ with 23 per-command reference pages covering all current commands
  • Add cli/skill/phala-cli/ agent skill (SKILL.md + references/) for Claude/AI assistant integration

Details

README.md — npm-facing entry guide with: Install, Quick Start, Commands table (linked to docs/), Configuration (phala.toml, env vars, profiles), Development, License.

docs/ — each command gets a dedicated reference page with Usage, Arguments, Options, Examples. Group commands (cvms, docker, simulator, config) have all subcommands in one file. Deprecated commands noted with migration paths.

skill/phala-cli agent skill with:

  • SKILL.md — command overview, common workflows, key concepts
  • references/commands.md — condensed full command reference
  • references/configuration.md — phala.toml, env vars, profiles, private registries
  • references/troubleshooting.md — deploy error codes, auth/SSH/log debugging

Test plan

  • README renders correctly on GitHub
  • All docs/ internal links resolve
  • No deprecated commands in main README/docs sections
  • SKILL.md frontmatter name matches directory name

- Rewrite README.md as concise npm entry page (no emojis, no deprecated commands)
- Add docs/ with per-command reference pages (23 files)
- Add skill/phala-cli/ agent skill with SKILL.md and references/
…precated

- Group commands table by category matching `phala --help` (Deploy, Manage, CVM Operations, Profile/Auth, Advanced)
- Add `phala link` to Quick Start with tip about phala.toml being safe to commit
- Remove deprecated commands (auth, config, docker) from README
Comment thread cli/README.md
- Move phala-cli skill from cli/skill/ to skills/ (shared location for future skills)
- Add best practices: phala.toml workflow (link, commit, team usage)
- Add log debugging guide: container → serial → cvm-stderr escalation path
Comment thread cli/README.md
Replace reference-heavy command table with intent-driven procedures:
- Intent mapping table (user says X → operation Y)
- Step-by-step flows: first deploy, update, debug, SSH, CI/CD
- Debug escalation path with serial log failure table
- Gotchas table with real operational pitfalls
- No duplication of references/commands.md content
Comment thread cli/docs/link.md
Operational checklist for docker-compose.yml and Docker build before
deploying to Phala Cloud CVMs. Covers:
- Single-file constraint (no external references)
- 200KB combined size limit
- amd64 architecture requirement (Intel TDX)
- Image accessibility and registry credentials
- Secrets leakage detection
- TEE volume mount (dstack.sock)
- Port/network sanity
@Leechael
Copy link
Copy Markdown
Collaborator Author

!release cli patch

@github-actions
Copy link
Copy Markdown
Contributor

🚀 @Leechael release command accepted: cli patch.

Target branch: docs/cli-readme-and-reference (open PR). Version commits will be pushed to this branch.
The release workflow is queued; results will be posted here.

@github-actions
Copy link
Copy Markdown
Contributor

🎉 Release completed: cli v1.1.9

📦 Package Info

  • Package size: size: 210.5
  • Unpacked size: size: 730.6
  • Total files: files:
📄 Files included
11.4kB LICENSE
3.8kB README.md
29.7kB dist/api/index.d.ts
139.5kB dist/api/index.js
20B dist/index.d.ts
544.5kB dist/index.js
1.8kB package.json

@Leechael Leechael merged commit bb95fef into main Feb 12, 2026
1 check passed
@Leechael Leechael deleted the docs/cli-readme-and-reference branch February 12, 2026 15:11
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