Skip to content

examples: stop printing deprecated --wallet and vapi unlock commands - #147

Open
hdf-cmd wants to merge 1 commit into
vAPI-Network:mainfrom
hdf-cmd:fix/wallet-example-deprecations
Open

hdf-cmd wants to merge 1 commit into
vAPI-Network:mainfrom
hdf-cmd:fix/wallet-example-deprecations

Conversation

@hdf-cmd

@hdf-cmd hdf-cmd commented Dec 4, 2026

Copy link
Copy Markdown

What & why

examples/wallets.ts tells new users to run commands that are deprecated in client 0.17.5. It prints vapi backup --wallet <name> and vapi unlock --wallet <name>, and both of those now emit a deprecation warning as soon as they are run (tested with vapi-network 0.17.5 on Windows, Node 24):

  • --wallet is now --account; --wallet keeps working for one release.
  • vapi unlock is now vapi vault unlock; the old name works for one release.

So the first commands a fresh user copies out of this example already teach stale syntax.

Changes

  • vapi backup --wallet <name> -> vapi backup --account <name>
  • vapi unlock --wallet <name> -> vapi vault unlock (the unlock is vault-wide, so the wallet name argument no longer applies)

Checklist

  • pnpm lint && pnpm typecheck && pnpm test && pnpm build && pnpm pack:check pass locally (strings-only change in an example; CI is the real check here)
  • Tests added or updated for behaviour changes (none, no behaviour change)
  • No runtime dependencies added to a published package
  • Keys, payments, and telemetry stay on the user's machine
  • Docs/README updated if the CLI, MCP tools, or config changed (this PR is that update)
  • Commits are signed off (git commit -s)

Breaking changes

None.

In 0.17.5 both printed commands are deprecated and print a warning when
run: `--wallet` is now `--account`, and `vapi unlock` is now
`vapi vault unlock`. This example tells new users to run the deprecated
forms, so the first commands they copy emit deprecation notices.

- vapi backup --wallet -> vapi backup --account
- vapi unlock --wallet <name> -> vapi vault unlock (the vault unlock is
  vault-wide, not per wallet)

Signed-off-by: 黄栋斐 <2475534900@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant