@picked/cli 0.0.101-next.2 → 0.0.101-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -11
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/cli.js +4 -2
- package/dist/cjs/index.js +1 -1
- package/dist/esm/cli.js +69 -67
- package/dist/esm/index.js +2 -2
- package/dist/types/commands/docs.d.ts +65 -0
- package/dist/types/commands/docs.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/docs.d.ts +94 -0
- package/dist/types/lib/docs.d.ts.map +1 -0
- package/dist/{workspace-use-CnR5FkxR.js → workspace-use-CXcLlf_z.js} +423 -254
- package/dist/workspace-use-Df1AcQnn.cjs +53 -0
- package/package.json +5 -5
- package/dist/workspace-use-Cjn8sjJj.cjs +0 -51
package/README.md
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
# @picked/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `picked` command: sign in, choose a workspace, generate types, move workspaces between
|
|
4
|
+
projects, and read the documentation.
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## Install
|
|
6
7
|
|
|
7
8
|
```bash
|
|
8
|
-
|
|
9
|
-
picked generate types --check # CI mode: fail when types are out of date
|
|
9
|
+
npm install picked
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
`picked` puts the command on your path. Install `@picked/cli` on its own only for the command
|
|
13
|
+
without the SDK.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Development
|
|
17
|
-
|
|
18
|
-
This package is part of the Picked monorepo. Run tests from the repo root:
|
|
15
|
+
## Usage
|
|
19
16
|
|
|
20
17
|
```bash
|
|
21
|
-
|
|
18
|
+
picked login # Sign in through the browser
|
|
19
|
+
picked logout
|
|
20
|
+
picked whoami
|
|
21
|
+
picked status
|
|
22
|
+
picked workspace list [--json]
|
|
23
|
+
picked use [--project <id>] [--workspace <id>] [--no-generate]
|
|
24
|
+
picked workspace export --project <id> (--workspace <id> | --live) --out <dir>
|
|
25
|
+
picked workspace import --project <id> --in <dir> [--name <name>] [--publish]
|
|
26
|
+
picked generate types [--check]
|
|
27
|
+
picked docs list [words] [--type <type>] [--json]
|
|
28
|
+
picked docs read <path>
|
|
22
29
|
```
|
|
30
|
+
|
|
31
|
+
Commands read `picked.config.ts` from the current directory. `picked workspace use` is an
|
|
32
|
+
alias of `picked use`. Set `PICKED_API_KEY` to run the workspace commands without
|
|
33
|
+
`picked login`.
|
|
34
|
+
|
|
35
|
+
## Docs
|
|
36
|
+
|
|
37
|
+
- **Web:** [CLI](https://docs.picked.app/reference/tools/cli)
|
|
38
|
+
- **Local:** `node_modules/picked/docs/reference/tools/cli.md`. The `picked` package carries every page under `node_modules/picked/docs/`.
|
|
39
|
+
- **CLI:** `npx picked docs read /reference/tools/cli`. `npx picked docs list [words]` lists the pages.
|
|
40
|
+
- **MCP:** call `read_picked_doc` with `{ "path": "/reference/tools/cli" }`; `list_picked_docs` lists the pages. Add the server with `claude mcp add --transport http picked https://api.picked.app/mcp`, or see [How to connect the MCP server](https://docs.picked.app/how-to/connect-the-mcp-server) for other tools.
|