Skip to content

This PR updates the CLI docs to cover several tsci options that were missing or incomplete across the command reference pages.#523

Merged
rushabhcodes merged 1 commit intotscircuit:mainfrom
rushabhcodes:update-cli-docs
Apr 1, 2026
Merged

Conversation

@rushabhcodes
Copy link
Copy Markdown
Contributor

Summary

This PR updates the CLI docs to cover several tsci options that were missing or incomplete across the command reference pages.

What changed

  • added missing tsci build flags, including:
    • --routing-disabled
    • --pcb-png
    • --3d-png and clarified --3d as its alias
    • --show-courtyards
    • --kicad-project-zip
    • --inject-props
    • --inject-props-file
  • fixed and normalized some existing tsci build option descriptions
  • documented --show-courtyards for tsci export
  • added an example for exporting PCB SVGs with courtyard outlines
  • documented additional tsci snapshot flags, including:
    • --show-courtyards
    • --camera-preset
    • --ci
    • --test
    • --concurrency

Why

The command reference was missing several supported flags, which made the docs incomplete and harder to trust when using the CLI. This PR brings the docs closer to the actual interface and makes less-common but useful options easier to discover.

Scope

Documentation only. No runtime or algorithmic changes.

…e missing or incomplete across the command reference pages.
Copilot AI review requested due to automatic review settings April 1, 2026 10:12
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 1, 2026 10:13am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the tsci command reference docs to better reflect supported CLI options, focusing on previously missing or incomplete flags for build, export, and snapshot.

Changes:

  • Added and clarified several tsci build flags (routing control, PNG/3D output flags, courtyard rendering, KiCad zip export, prop injection).
  • Documented --show-courtyards for tsci export and added an example invocation.
  • Expanded tsci snapshot option coverage (courtyards, camera presets, CI/test modes, concurrency).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/command-line/tsci-snapshot.md Adds missing snapshot flags for courtyards, camera presets, CI/test behavior, and concurrency.
docs/command-line/tsci-export.md Documents courtyard outlines for PCB SVG export and includes an example command.
docs/command-line/tsci-build.md Adds/normalizes build flags for routing, images/3D, KiCad zip export, and prop injection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- `--show-courtyards` – show courtyard outlines in PCB snapshots.
- `--camera-preset <preset>` – choose the camera angle preset for 3D snapshots. This also implies `--3d`.
- `--ci` – enable CI mode and generate diff artifacts.
- `--test` – enable test mode and generate diff artifacts.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--ci and --test are described identically (“generate diff artifacts”), which doesn’t explain when a user should choose one vs the other. Please clarify the behavioral difference (or if they’re aliases, document that explicitly).

Suggested change
- `--test`enable test mode and generate diff artifacts.
- `--test`alias for `--ci`; behaves identically and is kept for compatibility.

Copilot uses AI. Check for mistakes.
- `--all-images` – generate images for every successful build output.
- `--pngs` – Generate PNG outputs during build generation`.
- `--pngs` – generate PNG outputs during build generation.
- `--pcb-png` – generate PCB PNG outputs during build generation.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--pcb-png says it generates “PCB PNG outputs”, but unlike --3d-png it doesn’t specify the exact filename(s) produced (e.g., pcb.png) and whether it’s gated by --preview-images/--all-images or implies --pngs. Adding that detail would make the flag behavior unambiguous.

Suggested change
- `--pcb-png` – generate PCB PNG outputs during build generation.
- `--pcb-png` – generate PCB PNG outputs named `pcb.png` for each successful build output (subject to the same image/preview selection flags such as `--preview-images`, `--all-images`, or `--pngs`).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@MustafaMulla29 MustafaMulla29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@rushabhcodes rushabhcodes merged commit 6204a0f into tscircuit:main Apr 1, 2026
9 checks passed
@rushabhcodes rushabhcodes deleted the update-cli-docs branch April 1, 2026 10:41
@tscircuitbot
Copy link
Copy Markdown


Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

4 participants