# Sync Tsdown CLI

> Sync tsdown runtime CLI options with vp pack after a tsdown upgrade. Use for option forwarding changes; use sync-upstream-cli-help for static help wording.

- Skill: `voidzero-dev/sync-tsdown-cli` (Agent Skill)
- Install (CLI): `npx skillmds@latest add voidzero-dev/sync-tsdown-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/voidzero-dev/sync-tsdown-cli/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: voidzero-dev (https://skillmd.com/u/voidzero-dev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/voidzero-dev/sync-tsdown-cli

---


# Sync tsdown CLI

Runtime options live in `packages/cli/src/pack-bin.ts`; static help lives in
`packages/cli/src/help.ts`.

1. Run `npx tsdown --help` from `packages/cli/` and compare it with `pack-bin.ts`.
2. Add new forwarded options using the existing cac `.option()` pattern. For removed
   options, add `// NOTE: removed from tsdown CLI in vX.Y.Z` for reviewer follow-up.
3. Preserve runtime differences: `-c, --config` stays disabled because Vite+ uses
   `vite.config.ts`, and `--env-prefix` keeps the `['VITE_PACK_', 'TSDOWN_']` default.
4. For static labels and descriptions, follow `sync-upstream-cli-help`; do not adapt
   upstream wording to explain runtime differences.
5. Run `pnpm --filter vite-plus build-ts` and `vp pack -h`. Add a focused PTY snapshot
   case under `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/` when a new runtime
   option is exposed.

