Skip to content

feat: add and enhance documentation for various tsci command-line tools.#487

Merged
rushabhcodes merged 4 commits intotscircuit:mainfrom
rushabhcodes:add-cli-commands
Mar 18, 2026
Merged

feat: add and enhance documentation for various tsci command-line tools.#487
rushabhcodes merged 4 commits intotscircuit:mainfrom
rushabhcodes:add-cli-commands

Conversation

@rushabhcodes
Copy link
Contributor

@rushabhcodes rushabhcodes commented Mar 1, 2026

This pull request significantly expands and standardizes the tscircuit CLI documentation. It adds full documentation for many previously undocumented commands, improves and clarifies options for existing commands, and enhances authentication and configuration docs. The update also documents new export and simulation formats and unifies formatting (usage, options, examples) across all CLI command pages for better clarity and consistency.

https://docs-pegcd6638-tscircuit.vercel.app/category/command-line-interface

Copilot AI review requested due to automatic review settings March 1, 2026 18:18
@vercel
Copy link

vercel bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Mar 18, 2026 10:47pm

Request Review

Copy link
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

This PR expands and standardizes the documentation for the tsci CLI by adding new command pages and enriching existing ones with clearer usage, flags, subcommands, and examples—improving discoverability and consistency across the CLI docs section.

Changes:

  • Added new documentation pages for previously undocumented tsci commands (e.g. version, upgrade, transpile, simulate, doctor, config, clone, etc.).
  • Enhanced existing command docs with new options/flags, supported formats, and more complete auth/config guidance.
  • Updated and aligned command page content (usage blocks, arguments/options sections, examples) across multiple CLI docs.

Reviewed changes

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

Show a summary per file
File Description
docs/command-line/tsci-version.md New page documenting tsci version and version flags.
docs/command-line/tsci-upgrade.md New page documenting tsci upgrade.
docs/command-line/tsci-transpile.md New page documenting library transpilation outputs (dist/ artifacts).
docs/command-line/tsci-simulate.md New page documenting simulation subcommands (analog SPICE).
docs/command-line/tsci-setup.md New page documenting interactive setup utilities (GitHub Actions workflow).
docs/command-line/tsci-search.md Adds source-filter options (--kicad, --jlcpcb, etc.) to search docs.
docs/command-line/tsci-remove.md New page documenting package removal (tsci remove).
docs/command-line/tsci-push.md Adds structured usage/arguments/options for publishing packages.
docs/command-line/tsci-login.md Expands auth documentation with additional tsci auth subcommands.
docs/command-line/tsci-install.md New page documenting dependency/package installation flows.
docs/command-line/tsci-init.md Adds options documentation (--yes, --no-install) to init docs.
docs/command-line/tsci-import.md New page documenting interactive component import across sources.
docs/command-line/tsci-export.md Adds --disable-parts-engine and extends supported export formats list.
docs/command-line/tsci-doctor.md New page documenting diagnostics command.
docs/command-line/tsci-dev.md Adds structured usage/options and corrects localhost URL scheme.
docs/command-line/tsci-convert.md New page documenting KiCad footprint conversion to TSX components.
docs/command-line/tsci-config.md New page documenting config subcommands and supported keys.
docs/command-line/tsci-clone.md New page documenting registry cloning options and config integration.
docs/command-line/tsci-check.md New page documenting partial validation subcommands.
docs/command-line/tsci-build.md Documents additional build flags for KiCad library naming and profiling.

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

Comment on lines +8 to +14
### Options
- `--kicad` – search KiCad footprints
- `--jlcpcb` – search JLCPCB components
- `--lcsc` – alias for `--jlcpcb`
- `--tscircuit` – search tscircuit registry packages

When no filter options are provided, all sources are searched.
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

The new Options section is introduced as a level-3 heading ("### Options") before the "## Usage" section, which is inconsistent with the structure used by most other docs/command-line/* pages (typically ## Usage then ### Arguments / ### Options). Consider moving these option bullets under ## Usage (or promoting this to a ## Options section) to keep the page outline consistent and easier to scan.

Copilot uses AI. Check for mistakes.
Comment on lines +17 to +20
### Options
- `-y, --yes` – use defaults and skip prompts
- `--no-install` – skip installing dependencies after initialization

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This page now introduces an "### Options" subsection, but there is still no explicit ## Usage section like the other CLI command pages (e.g. tsci build, tsci dev, tsci export). To match the standardized CLI docs format described in the PR, consider adding a ## Usage block (e.g. tsci init [options]) and nesting the options list under it so readers can quickly find invocation syntax and flags.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +19
You can also use the `-v` or `-V` or `--version` flags:

```bash
tsci -v
tsci --version
```
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This section mentions -V as an alternative version flag, but the example block only shows tsci -v and tsci --version. Consider either adding tsci -V to the example or removing the -V mention to avoid implying support that isn’t demonstrated here; also, listing the flags as “-v, -V, or --version” reads more cleanly.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

Give examples of command outputs, do not have empty sections

## Usage

```bash
tsci push [file] [options]
Copy link
Contributor

Choose a reason for hiding this comment

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

WRONG!!!!!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what is wrong here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

…tsci import`, `tsci install`, and `tsci simulate`
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

This PR was closed because it has been inactive for 1 day since being marked as stale.

@github-actions github-actions bot closed this Mar 5, 2026
@rushabhcodes rushabhcodes reopened this Mar 18, 2026
@rushabhcodes rushabhcodes merged commit da9f105 into tscircuit:main Mar 18, 2026
5 checks passed
@tscircuitbot
Copy link


Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants