@candledottv/cli 0.11.20 → 0.11.22
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 -2
- package/dist/index.js +6704 -6398
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @candledottv/cli
|
|
2
2
|
|
|
3
|
-
The Candle CLI (current version 0.11.
|
|
3
|
+
The Candle CLI (current version 0.11.22): authorize a device from your browser, keep your own keys
|
|
4
4
|
in an encrypted vault on this machine, hand an agent a TEE wallet it can trade, and manage API
|
|
5
5
|
keys, wallets, and setup health from the terminal. Zero runtime dependencies; the whole thing is
|
|
6
6
|
one self-contained `dist/index.js` that runs under plain Node.
|
|
@@ -16,7 +16,21 @@ unlocks and prints the plan without writing; `--json` returns
|
|
|
16
16
|
`{ ok, renamed: [{ id, address, role, from, to }] }` (plus `dryRun: true` for a dry run).
|
|
17
17
|
Single and batch rename require new labels of at most 64 characters, without edge whitespace,
|
|
18
18
|
control characters or a leading `-`; names are never trimmed. Existing longer labels still
|
|
19
|
-
resolve as targets. A terminal is required. TEE wallets are refused by `vault rename
|
|
19
|
+
resolve as targets. A terminal is required. TEE wallets are refused by `vault rename`; use
|
|
20
|
+
`candle tee rename`.
|
|
21
|
+
|
|
22
|
+
`candle tee rename <label|address|id> <new-label>` renames a TEE wallet on both sides: the label
|
|
23
|
+
Candle holds and, when the wallet's key is in this vault, the vault entry.
|
|
24
|
+
`candle tee rename --pairs-from <file> [--dry-run]` does 1–256 of them from the same file shape
|
|
25
|
+
(lines, or CSV columns `from,to`) under the same label rule (at most 64 characters, never
|
|
26
|
+
trimmed). It is owner only (the device token; an API key cannot rename a wallet). One server
|
|
27
|
+
call renames every row, all or nothing, then one vault commit; the vault is unlocked once, and
|
|
28
|
+
only when a named TEE wallet may be in it. A new name a vault key outside the rename already has
|
|
29
|
+
refuses before the server is called. `--json` returns
|
|
30
|
+
`{ ok, renamed: [{ id, chain, address, from, to, server, vault }] }`. If the vault write fails
|
|
31
|
+
after the server accepted, the command prints address-keyed rows (`<address> <new-label>`, `rerun`
|
|
32
|
+
under `--json`) to run again: the old label no longer resolves on the server, and a re-run leaves
|
|
33
|
+
the server label alone and finishes the vault.
|
|
20
34
|
|
|
21
35
|
## Quick start
|
|
22
36
|
|
|
@@ -103,6 +117,7 @@ emergency procedure, rebinding, trusted wallets and API key access levels are al
|
|
|
103
117
|
| `candle tee status\|disable\|sweep\|fund` | Operate a TEE wallet (Tier 2): `status` shows its server state and on-chain balances, `disable` stops the agent (exit 0 only on a verified stop, 3 while pending), `sweep --rpc-url <url>` moves everything to the pinned vault, signed locally (closing DAMM v2 positions after verifying each server-built close; `--emergency` sweeps when the API cannot be read and moves the position NFT instead), and `fund` prints what your vault signs. On a Hood wallet (0x), `status` shows ETH, USDG and the gas reserve, and `sweep` moves USDG, WETH, every `--token` and then ETH last. See [CLI custody](https://docs.candle.tv/developers/cli-custody). |
|
|
104
118
|
| `candle tee signer new --key <prefix\|label> [--out <pem>] [--force]` | On the trading machine, with that key's API key: generates the key's signer here and waits for the owner to approve it with `keys signer approve`. The key's wallets then trade from this machine. `--out` also writes a plaintext PEM for an SDK process. |
|
|
105
119
|
| `candle tee rebind <wallet...> --to-key <prefix\|label>`, `candle tee rebinds [wallet]` | Move TEE wallets to another key on the same account (owner only, preview then `confirm`; funds and the relay signer do not move), and list the rebind history. |
|
|
120
|
+
| `candle tee rename <label\|address\|id> <new-label>`, `candle tee rename --pairs-from <file> [--dry-run]` | Rename one TEE wallet, or 1–256 from a pairs file: the label Candle holds and the vault entry when there is one (owner only; one server call, all or nothing, then one vault commit). |
|
|
106
121
|
| `candle tee new\|enable` | The legacy path: `new` seals a fresh key in its own `tee-wallets.enc` and `enable <address> --vault <address>` delegates it with a pinned sweep vault. New setups use `vault promote`; `vault import-legacy --tee` migrates an existing store. |
|
|
107
122
|
| `candle swap <from> <to> --amount <n>\|--percent <n> --wallet <tee> [--to <tee>] [--wait]` | Quote, confirm and swap through the TEE wallet's bound key; the first buy after a launch is this command, unless `candle launch --buy` made it. The assets decide the chain (ETH, USDG or a 0x token is Hood; SOL, USDC, CNDL or a mint is Solana). SOL or USDC to ETH or USDG, or back, is a bridge through Relay into this key's own TEE wallet on the other chain (`--to` names it when there are several); `--wait` follows it for up to ten minutes. |
|
|
108
123
|
| `candle swap status <id> [--kind trade\|swap\|launch] [--wait]` | Read an operation without resending it; `--wait` follows a bridge until it ends. |
|