codeusage-cli 0.1.10 → 0.1.12
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 +95 -5
- package/dist/index.cjs +1198 -480
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,28 +1,118 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Codeusage CLI
|
|
2
2
|
|
|
3
|
-
Track your team's AI coding tool usage with zero friction.
|
|
3
|
+
Track your team's AI coding tool usage with zero friction. Get visibility into how Claude Code and other AI tools are used across your organization.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node.js 18+
|
|
8
|
+
- Claude Code or Codex CLI installed
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
bun add -g codeusage-cli
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Or with npm:
|
|
6
17
|
|
|
7
18
|
```bash
|
|
8
19
|
npm install -g codeusage-cli
|
|
9
20
|
```
|
|
10
21
|
|
|
11
|
-
##
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
1. **Sign up** at [codeusage.dev](https://codeusage.dev) to get your workspace API key
|
|
25
|
+
|
|
26
|
+
2. **Initialize** the CLI:
|
|
12
27
|
|
|
13
28
|
```bash
|
|
14
29
|
codeusage init
|
|
15
30
|
```
|
|
16
31
|
|
|
32
|
+
3. **Done!** Usage is now tracked automatically when you use Claude Code.
|
|
33
|
+
|
|
34
|
+
## Commands
|
|
35
|
+
|
|
36
|
+
### `codeusage init`
|
|
37
|
+
|
|
38
|
+
Interactive setup wizard. Configures your API key, developer alias, and installs hooks.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
codeusage init
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### `codeusage status`
|
|
45
|
+
|
|
46
|
+
Check your current configuration and connection status.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
codeusage status
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### `codeusage project`
|
|
53
|
+
|
|
54
|
+
Manage project mappings for the current directory.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Set a custom project name for current directory
|
|
58
|
+
codeusage project set my-project
|
|
59
|
+
|
|
60
|
+
# List all project mappings
|
|
61
|
+
codeusage project list
|
|
62
|
+
|
|
63
|
+
# Ignore current directory (no tracking)
|
|
64
|
+
codeusage project ignore
|
|
65
|
+
|
|
66
|
+
# Re-enable tracking for current directory
|
|
67
|
+
codeusage project unignore
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### `codeusage sync`
|
|
71
|
+
|
|
72
|
+
Manually sync the last task (useful for testing).
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
codeusage sync
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### `codeusage config`
|
|
79
|
+
|
|
80
|
+
View or update configuration values.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# View all config
|
|
84
|
+
codeusage config
|
|
85
|
+
|
|
86
|
+
# View specific value
|
|
87
|
+
codeusage config get developer_alias
|
|
88
|
+
|
|
89
|
+
# Set a value
|
|
90
|
+
codeusage config set developer_alias "john"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### `codeusage logout`
|
|
94
|
+
|
|
95
|
+
Remove all local configuration and uninstall hooks.
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
codeusage logout
|
|
99
|
+
```
|
|
100
|
+
|
|
17
101
|
## Uninstall
|
|
18
102
|
|
|
103
|
+
```bash
|
|
104
|
+
bun remove -g codeusage-cli
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Or with npm:
|
|
108
|
+
|
|
19
109
|
```bash
|
|
20
110
|
npm uninstall -g codeusage-cli
|
|
21
111
|
```
|
|
22
112
|
|
|
23
113
|
## Documentation
|
|
24
114
|
|
|
25
|
-
For full documentation, visit [
|
|
115
|
+
For full documentation, visit [codeusage.dev/docs](https://codeusage.dev/docs)
|
|
26
116
|
|
|
27
117
|
## License
|
|
28
118
|
|