@visa/cli 2.0.0-rc.39 → 2.0.0-rc.41
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 +16 -12
- package/dist/cli.js +162 -107
- package/dist/mcp-server/index.js +44 -44
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,15 +41,19 @@ Once connected, your assistant will have access to all payment tools. The first
|
|
|
41
41
|
visa-cli login # GitHub OAuth — opens browser, stores session token
|
|
42
42
|
visa-cli add-card # Enroll a Visa card via VGS secure form
|
|
43
43
|
visa-cli status # Show auth state, enrolled cards, daily spend remaining
|
|
44
|
-
visa-cli
|
|
45
|
-
# Create an API
|
|
44
|
+
visa-cli tokens create my-demo-app
|
|
45
|
+
# Create an API token for an app or agent
|
|
46
46
|
visa-cli history # Recent transactions with amounts and any generated media URLs
|
|
47
|
-
visa-cli hud enable
|
|
48
|
-
|
|
49
|
-
visa-cli hud
|
|
50
|
-
|
|
47
|
+
visa-cli config hud enable
|
|
48
|
+
# Enable the terminal HUD for Codex and regular shells
|
|
49
|
+
visa-cli config hud doctor
|
|
50
|
+
# Diagnose terminal HUD setup
|
|
51
|
+
visa-cli config hud disable
|
|
52
|
+
# Remove the terminal HUD from your shell
|
|
53
|
+
visa-cli config hud enable claude
|
|
51
54
|
# Legacy: register the Claude Code statusLine renderer
|
|
52
|
-
visa-cli statusline
|
|
55
|
+
visa-cli config statusline
|
|
56
|
+
# Renderer for statusLine integrations
|
|
53
57
|
# MCP (stdio): run the bundled entrypoint (IDE configs use the same path — see getServerEntry in src/clients.ts)
|
|
54
58
|
# node "$(npm root -g)/@visa/cli/dist/mcp-server/index.js"
|
|
55
59
|
```
|
|
@@ -99,14 +103,14 @@ visa-cli status
|
|
|
99
103
|
|
|
100
104
|
---
|
|
101
105
|
|
|
102
|
-
## API
|
|
106
|
+
## API tokens for apps and agents
|
|
103
107
|
|
|
104
|
-
Approved users can create API
|
|
108
|
+
Approved users can create API tokens from the CLI with their existing login:
|
|
105
109
|
|
|
106
110
|
```bash
|
|
107
|
-
visa-cli
|
|
108
|
-
visa-cli
|
|
109
|
-
visa-cli
|
|
111
|
+
visa-cli tokens create my-demo-app --tools generate_image_card,run_llm --daily-cap 5
|
|
112
|
+
visa-cli tokens list
|
|
113
|
+
visa-cli tokens revoke 1
|
|
110
114
|
```
|
|
111
115
|
|
|
112
116
|
The create command prints the raw `vk_...` key once. Store it in your app or agent secret store and send it as `X-Api-Key` to `/v1/api/shortcuts/:tool`.
|