commet 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 +11 -10
- package/dist/index.js +627 -380
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<p>CLI for Commet billing platform</p>
|
|
9
9
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/commet"><img alt="NPM version" src="https://img.shields.io/npm/v/commet.svg?style=for-the-badge&labelColor=000000"></a>
|
|
11
|
-
<a href="https://
|
|
11
|
+
<a href="https://commet.co/docs/library/cli/overview"><img alt="Documentation" src="https://img.shields.io/badge/docs-CLI-blue.svg?style=for-the-badge&labelColor=000000"></a>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
14
|
<br/>
|
|
@@ -42,14 +42,14 @@ import { Commet } from '@commet/node';
|
|
|
42
42
|
|
|
43
43
|
const commet = new Commet({ apiKey: '...' });
|
|
44
44
|
|
|
45
|
-
await commet.usage.
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
await commet.usage.track({
|
|
46
|
+
feature: 'api_calls', // Autocomplete works!
|
|
47
|
+
externalId: 'user_123'
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
await commet.subscriptions.create({
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
planCode: 'pro', // Autocomplete with your plans!
|
|
52
|
+
externalId: 'user_123'
|
|
53
53
|
});
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -61,13 +61,14 @@ commet logout # Remove credentials
|
|
|
61
61
|
commet link # Link project to organization
|
|
62
62
|
commet pull # Generate TypeScript types
|
|
63
63
|
commet info # Show project status
|
|
64
|
-
commet list
|
|
64
|
+
commet list features # List features
|
|
65
65
|
commet list seats # List seat types
|
|
66
|
+
commet list plans # List plans
|
|
66
67
|
```
|
|
67
68
|
|
|
68
69
|
## Documentation
|
|
69
70
|
|
|
70
|
-
Visit [
|
|
71
|
+
Visit [commet.co/docs/library/cli/overview](https://commet.co/docs/library/cli/overview) for:
|
|
71
72
|
|
|
72
73
|
- Complete command reference
|
|
73
74
|
- Configuration guide
|
|
@@ -76,8 +77,8 @@ Visit [docs.commet.co/cli](https://docs.commet.co/cli) for:
|
|
|
76
77
|
|
|
77
78
|
## Resources
|
|
78
79
|
|
|
79
|
-
- [CLI Documentation](https://
|
|
80
|
-
- [SDK Reference](https://
|
|
80
|
+
- [CLI Documentation](https://commet.co/docs/library/cli/overview)
|
|
81
|
+
- [SDK Reference](https://commet.co/docs/library/quickstart)
|
|
81
82
|
- [GitHub](https://github.com/commet-labs/commet)
|
|
82
83
|
- [Issues](https://github.com/commet-labs/commet/issues)
|
|
83
84
|
|