From 66f817960b15698df366bb30e78ac8bde3515b19 Mon Sep 17 00:00:00 2001 From: Rushabh Patil Date: Mon, 22 Jun 2026 16:06:11 +0530 Subject: [PATCH 1/2] update tsci add docs --- docs/command-line/tsci-add.mdx | 19 ++++++++++++++++--- docs/intro/installation.md | 4 ++-- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/docs/command-line/tsci-add.mdx b/docs/command-line/tsci-add.mdx index 3914e862..da6d7546 100644 --- a/docs/command-line/tsci-add.mdx +++ b/docs/command-line/tsci-add.mdx @@ -1,15 +1,28 @@ --- title: tsci add -description: Install tscircuit registry packages using the tsci add command +description: Install one or more tscircuit packages using the tsci add command --- `tsci add` is the same as `npm add` or `bun add`, but defaults to the tscircuit registry. If your project has the [tsci `.npmrc`](../web-apis/the-registry-api.md#using-the-tscircuit-npm-registry), you can just do `bun add @tsci/.` and it has the same effect. +## Usage + +```bash +tsci add ``` -> tsci add seveibar/PICO_W -# Added @tsci/seveibar.PICO_W@0.0.1 + +You can pass one or more package specifiers in a single command. Supported +package specifiers include tscircuit registry packages, GitHub repository URLs, +and versioned package names such as `author/package@version`. + +## Examples + +```bash +$ tsci add @tsci/seveibar.PICO @tsci/seveibar.Key +# Adding @tsci/seveibar.PICO @tsci/seveibar.Key... +# ✓ Added @tsci/seveibar.PICO @tsci/seveibar.Key successfully ``` You can then import the module and use it for your board! diff --git a/docs/intro/installation.md b/docs/intro/installation.md index 1bfb431e..2bc7f60e 100644 --- a/docs/intro/installation.md +++ b/docs/intro/installation.md @@ -50,7 +50,7 @@ CLI for developing tscircuit packages # export [options] Export tscircuit code to various formats # build [options] [file] Run tscircuit eval and output circuit json # transpile [file] Transpile TypeScript/TSX to JavaScript -# add Add a tscircuit component package +# add Add tscircuit component packages to your project # remove Remove a tscircuit component package # snapshot [options] [path] Generate schematic/PCB snapshots # setup Setup utilities like GitHub Actions @@ -83,7 +83,7 @@ tsci # tsci config - Manage tscircuit CLI configuration # tsci export - Export tscircuit code to various formats # tsci build - Run tscircuit eval and output circuit json -# tsci add - Add a tscircuit component package +# tsci add - Add tscircuit component packages to your project # tsci snapshot - Generate schematic and PCB snapshots # tsci doctor - Run diagnostic checks # tsci search - Search for footprints, CAD models or packages From dcb0e31e6c12a12e63e848e40c8e078dcf0d43d2 Mon Sep 17 00:00:00 2001 From: Rushabh Patil Date: Mon, 22 Jun 2026 16:09:59 +0530 Subject: [PATCH 2/2] update --- docs/command-line/tsci-add.mdx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/command-line/tsci-add.mdx b/docs/command-line/tsci-add.mdx index da6d7546..f6d9d3e2 100644 --- a/docs/command-line/tsci-add.mdx +++ b/docs/command-line/tsci-add.mdx @@ -13,10 +13,6 @@ and it has the same effect. tsci add ``` -You can pass one or more package specifiers in a single command. Supported -package specifiers include tscircuit registry packages, GitHub repository URLs, -and versioned package names such as `author/package@version`. - ## Examples ```bash