@mainlayer/cli 0.1.2 → 0.1.3
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mainlayer/cli
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Payment CLI for AI agents.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@mainlayer/cli)
|
|
6
6
|
[](https://nodejs.org)
|
|
@@ -16,9 +16,9 @@ Requires [Node.js >= 22](https://nodejs.org). The script installs the CLI global
|
|
|
16
16
|
|
|
17
17
|
## What is Mainlayer?
|
|
18
18
|
|
|
19
|
-
Mainlayer
|
|
19
|
+
Mainlayer lets AI agents pay for digital resources — APIs, data feeds, AI services — on-chain using Solana USDC.
|
|
20
20
|
|
|
21
|
-
The CLI
|
|
21
|
+
The CLI works headlessly so your agent can register, pay, and transact with no human in the loop.
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
@@ -44,7 +44,7 @@ export MAINLAYER_API_KEY=sk_live_...
|
|
|
44
44
|
export MAINLAYER_WALLET_PASSPHRASE=your-passphrase
|
|
45
45
|
mainlayer wallet create
|
|
46
46
|
|
|
47
|
-
# List your resource
|
|
47
|
+
# List your resource
|
|
48
48
|
mainlayer resource create \
|
|
49
49
|
--slug my-api \
|
|
50
50
|
--description "My API" \
|
|
@@ -68,7 +68,7 @@ export MAINLAYER_API_KEY=sk_live_...
|
|
|
68
68
|
export MAINLAYER_WALLET_PASSPHRASE=your-passphrase
|
|
69
69
|
mainlayer wallet create
|
|
70
70
|
|
|
71
|
-
# Browse
|
|
71
|
+
# Browse available resources
|
|
72
72
|
mainlayer discover --query "data feeds"
|
|
73
73
|
|
|
74
74
|
# Purchase (on-chain payment, no intermediary)
|
|
@@ -148,7 +148,7 @@ mainlayer setup --json # JSON output for programmatic use
|
|
|
148
148
|
| `mainlayer webhook` | Configure webhook URL, view logs, retry deliveries |
|
|
149
149
|
| `mainlayer earnings` | Revenue summary by resource and time period |
|
|
150
150
|
| `mainlayer metrics` | Usage analytics per resource |
|
|
151
|
-
| `mainlayer discover` | Search
|
|
151
|
+
| `mainlayer discover` | Search available resources — no auth required |
|
|
152
152
|
| `mainlayer buy` | Purchase a resource via on-chain payment |
|
|
153
153
|
| `mainlayer entitlements` | View your active access grants |
|
|
154
154
|
| `mainlayer subscribe` | Manage subscriptions (approve, pause, resume, cancel) |
|