@picked/cli 0.0.101-next.1 → 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 CHANGED
@@ -1,22 +1,40 @@
1
1
  # @picked/cli
2
2
 
3
- Command-line interface for Picked tooling.
3
+ The `picked` command: sign in, choose a workspace, generate types, move workspaces between
4
+ projects, and read the documentation.
4
5
 
5
- ## Commands
6
+ ## Install
6
7
 
7
8
  ```bash
8
- picked generate types # Generate TypeScript types from picked.config.ts
9
- picked generate types --check # CI mode: fail when types are out of date
9
+ npm install picked
10
10
  ```
11
11
 
12
- ## Configuration
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
- Commands read `picked.config.ts` from the current working directory. See [Type Generation](https://docs.picked.app/reference/sdk/type-generation) for config options.
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
- pnpm run test
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.