@aiusage/cli 1.0.0 → 1.2.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 +19 -2
- package/dist/cli.js +748 -267
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
`@aiusage/cli` is the AIUsage command-line tool for:
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- discovering and managing projects across AI tools
|
|
6
|
+
- scanning local Claude Code, Codex, Copilot CLI, and Gemini CLI token usage
|
|
6
7
|
- printing local usage summaries for the last 7 days, 30 days, 90 days, or all history
|
|
7
8
|
- scheduling automatic sync to an AIUsage Worker
|
|
8
9
|
- diagnosing configuration and connectivity issues
|
|
@@ -27,6 +28,22 @@ aiusage --help
|
|
|
27
28
|
|
|
28
29
|
## Commands
|
|
29
30
|
|
|
31
|
+
### project
|
|
32
|
+
|
|
33
|
+
Discover and manage projects on this machine.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
aiusage project # list all discovered projects (default)
|
|
37
|
+
aiusage project list # same as above
|
|
38
|
+
aiusage project alias myapp "我的应用" # set alias for a project
|
|
39
|
+
aiusage project alias # list all configured aliases
|
|
40
|
+
aiusage project alias --remove myapp # remove alias
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Scans data directories for Claude Code, Codex, Copilot CLI, and Gemini CLI, listing discovered projects with their aliases and sources.
|
|
44
|
+
|
|
45
|
+
Project aliases are applied locally before upload. If two devices set the same alias for their respective project directories, the server merges them into one project.
|
|
46
|
+
|
|
30
47
|
### report
|
|
31
48
|
|
|
32
49
|
Local usage report. No cloud upload required.
|
|
@@ -129,7 +146,7 @@ aiusage config set lang zh # default language: en o
|
|
|
129
146
|
aiusage config set emoji false # disable emoji in report title
|
|
130
147
|
aiusage config set device.alias "MacBook Pro 工作机"
|
|
131
148
|
aiusage config set privacy.projectVisibility masked
|
|
132
|
-
aiusage config set project.alias
|
|
149
|
+
aiusage config set project.alias MyApp "我的应用" # prefer: aiusage project alias
|
|
133
150
|
```
|
|
134
151
|
|
|
135
152
|
CLI flags (`--lang`, `--no-emoji`) override config values for a single run.
|