@visa/cli 1.9.1 → 1.9.2
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 +17 -1
- package/dist/cli.js +58 -60
- package/dist/mcp-server/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,8 +41,10 @@ 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 api-key create my-demo-app
|
|
45
|
+
# Create an API key for an app or agent
|
|
44
46
|
visa-cli history # Recent transactions with amounts and any generated media URLs
|
|
45
|
-
visa-cli hud enable #
|
|
47
|
+
visa-cli hud enable # Explicitly pin the Visa HUD below Claude Code input
|
|
46
48
|
visa-cli hud disable # Remove the Visa HUD from Claude Code
|
|
47
49
|
visa-cli statusline # Render the multi-line HUD Claude Code calls automatically
|
|
48
50
|
visa-cli mcp # Start the MCP server
|
|
@@ -85,6 +87,20 @@ visa-cli status
|
|
|
85
87
|
|
|
86
88
|
---
|
|
87
89
|
|
|
90
|
+
## API keys for apps and agents
|
|
91
|
+
|
|
92
|
+
Approved users can create API keys from the CLI with their existing login:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
visa-cli api-key create my-demo-app --tools generate_image_card,run_llm --daily-cap 5
|
|
96
|
+
visa-cli api-key list
|
|
97
|
+
visa-cli api-key revoke 1
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
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`.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
88
104
|
## MCP tools
|
|
89
105
|
|
|
90
106
|
### Account
|