@secondlayer/cli 11.0.0 → 12.1.0
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 +5 -6
- package/dist/cli.js +405 -407
- package/dist/cli.js.map +10 -8
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -59,14 +59,13 @@ No account. Writes `.env.local`, restores history, prints the Stacks observer st
|
|
|
59
59
|
|---|---|
|
|
60
60
|
| `secondlayer subgraphs create <name>` | Scaffold a definition file |
|
|
61
61
|
| `secondlayer subgraphs scaffold <SP...::contract> [-o <path>] [--no-install]` | Generate a subgraph from a deployed contract |
|
|
62
|
-
| `secondlayer subgraphs deploy <file> [--start-block <n>] [--visibility public\|private]` | Deploy; `--start-block` overrides the definition.
|
|
62
|
+
| `secondlayer subgraphs deploy <file> [--start-block <n>] [--visibility public\|private]` | Deploy; `--start-block` overrides the definition. Deploys default `public` |
|
|
63
63
|
| `secondlayer subgraphs list` | List deployments (`ls` alias) |
|
|
64
64
|
| `secondlayer subgraphs dev <file>` | Watch + hot-redeploy |
|
|
65
65
|
| `secondlayer subgraphs query <name> <table>` | Query a table with filters, sort, pagination |
|
|
66
66
|
| `secondlayer subgraphs status <name>` / `gaps <name>` | Inspect a deployment |
|
|
67
67
|
| `secondlayer subgraphs spec <nameOrFile> [--format openapi\|agent\|markdown]` | Export API docs for a deployed subgraph or a local definition file |
|
|
68
|
-
| `secondlayer subgraphs
|
|
69
|
-
| `secondlayer subgraphs codegen <file> --target prisma\|drizzle [-o <path>]` | Generate an ORM schema for the subgraph's tables (BYO DB) |
|
|
68
|
+
| `secondlayer subgraphs codegen <file> --target prisma\|drizzle [-o <path>]` | Generate a typed ORM schema for the subgraph's tables |
|
|
70
69
|
| `secondlayer subgraphs client <name> -o <path>` | Generate a typed query client for a deployed subgraph |
|
|
71
70
|
| `secondlayer subgraphs reindex/backfill/cancel/delete <name>` | Manage processing |
|
|
72
71
|
|
|
@@ -74,7 +73,7 @@ No account. Writes `.env.local`, restores history, prints the Stacks observer st
|
|
|
74
73
|
|
|
75
74
|
| Command | What it does |
|
|
76
75
|
|---|---|
|
|
77
|
-
| `secondlayer index ft-transfers` / `nft-transfers` / `events --event-type <t>` / `contract-calls` | Decoded Index layer. Anonymous reads OK
|
|
76
|
+
| `secondlayer index ft-transfers` / `nft-transfers` / `events --event-type <t>` / `contract-calls` | Decoded Index layer. Anonymous reads OK |
|
|
78
77
|
| `secondlayer streams tip` / `events` / `consume` / `reorgs` / `canonical <h>` / `pull` | Raw chain event firehose. **Requires `SL_API_KEY`** |
|
|
79
78
|
|
|
80
79
|
Reads emit JSON to stdout (`--json` accepted across all read commands); `-o/--output` is a file path, not a format.
|
|
@@ -182,8 +181,8 @@ const supply = await token.vars.totalSupply.get()
|
|
|
182
181
|
## Frozen commands
|
|
183
182
|
|
|
184
183
|
Local-dev periphery: still functional, hidden from `secondlayer --help`, no further
|
|
185
|
-
investment — may be removed in a future major.
|
|
186
|
-
|
|
184
|
+
investment — may be removed in a future major. `secondlayer subgraphs
|
|
185
|
+
create/deploy` against your own instance is the supported path.
|
|
187
186
|
|
|
188
187
|
- `secondlayer local up/down/start/stop/restart/status/logs` — local stack + dev services
|
|
189
188
|
- `secondlayer local node ...` — local Stacks node management
|