Skip to content

Commit 53bd83c

Browse files
authored
Update README.md
1 parent 9a891ac commit 53bd83c

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

packages/cli/README.md

+37-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,43 @@ deno install --global --allow-all jsr:@lpm/cli --name lpm
1010

1111
## Usage
1212

13+
### `add <nsid | pattern>`
14+
15+
16+
```
17+
lpm add app.bsky.feed.post
18+
lpm add app.bsky.actor.*
19+
```
20+
21+
Lexicons are stored in `./lexicons` along with a manifest at `./lexicons.json`.
22+
23+
Supports wildcards in the last segment.
24+
25+
### `fetch`
26+
1327
```
14-
lpm add app.bsky.feed.getPosts
1528
lpm fetch
1629
```
30+
31+
Fetches all lexicons defied in `lexicons.json` and their dependencies.
32+
33+
### `view <nsid>`
34+
35+
```
36+
lpm view app.bsky.feed.post
37+
```
38+
39+
View metadata about a lexicon such as it's direct dependencies and the authority DID.
40+
41+
### `tree --depth=<number> <nsid>`
42+
43+
```
44+
lpm tree app.bsky.feed.post
45+
lpm tree app.bsky.graph.defs --depth 3
46+
```
47+
48+
Resolves the tree of lexicons starting at a specific NSID. Denotes circular dependencies with a yellow circle.
49+
50+
51+
52+

0 commit comments

Comments
 (0)