@sagebase/cli 0.0.1-beta.0 → 0.0.2
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 +59 -0
- package/package.json +6 -1
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# @sagebase/cli
|
|
2
|
+
|
|
3
|
+
AI documentation agent for your codebase. Keeps docs accurate as you ship.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Initialize Sage in your project
|
|
9
|
+
npx @sagebase/cli init
|
|
10
|
+
|
|
11
|
+
# Preview your help center
|
|
12
|
+
npx @sagebase/cli dev
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Commands
|
|
16
|
+
|
|
17
|
+
### `init`
|
|
18
|
+
|
|
19
|
+
Scaffolds Sage in your project. Detects your framework (Next.js, TanStack Start), creates a `sage.json` config, sets up a content directory, and adds a CI workflow.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx @sagebase/cli init [dir]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Options:
|
|
26
|
+
- `--cwd <path>` — working directory
|
|
27
|
+
- `--defaults` — skip prompts
|
|
28
|
+
- `--help-center` — add Fumadocs help center
|
|
29
|
+
|
|
30
|
+
### `dev`
|
|
31
|
+
|
|
32
|
+
Check your Sage setup and get instructions for previewing your help center.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx @sagebase/cli dev
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Options:
|
|
39
|
+
- `--cwd <path>` — working directory
|
|
40
|
+
- `-p, --port <port>` — port to serve on
|
|
41
|
+
|
|
42
|
+
## Configuration
|
|
43
|
+
|
|
44
|
+
Sage looks for `sage.json`, `sage.config.json`, or `sage.config.ts` in your project.
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"framework": "nextjs",
|
|
49
|
+
"content": "content/docs",
|
|
50
|
+
"agent": {
|
|
51
|
+
"model": "anthropic/claude-sonnet-4-6",
|
|
52
|
+
"provider": "anthropic"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## CI
|
|
58
|
+
|
|
59
|
+
Running `sage init` creates a `.github/workflows/sage.yml` workflow that runs Sage on every push to `main`.
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sagebase/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/BishalN/sagebase.git",
|
|
9
|
+
"directory": "packages/cli"
|
|
10
|
+
},
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|