@needmoretruth/nmts-cli 0.59.1 → 0.61.1

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.
Files changed (220) hide show
  1. package/AGENTS.md +49 -49
  2. package/CHANGELOG.md +128 -99
  3. package/LICENSING.md +8 -8
  4. package/README.ko.md +156 -156
  5. package/README.md +111 -111
  6. package/dist/api-advice.js +34 -34
  7. package/dist/api-key.js +2 -2
  8. package/dist/artifact-about.d.ts +1 -1
  9. package/dist/autonomy.js +12 -12
  10. package/dist/code-access.js +3 -3
  11. package/dist/code-vault.js +1 -1
  12. package/dist/commands/accept-terms.js +4 -4
  13. package/dist/commands/ai-account.js +10 -10
  14. package/dist/commands/balance.js +7 -7
  15. package/dist/commands/create-code-file.js +3 -3
  16. package/dist/commands/create-link.js +36 -41
  17. package/dist/commands/create-pass.js +3 -3
  18. package/dist/commands/create.js +4 -4
  19. package/dist/commands/credits.js +2 -2
  20. package/dist/commands/delete-account.js +3 -3
  21. package/dist/commands/deposit.js +3 -3
  22. package/dist/commands/devices.js +3 -3
  23. package/dist/commands/documents.js +1 -1
  24. package/dist/commands/env.js +13 -13
  25. package/dist/commands/erase.js +5 -5
  26. package/dist/commands/expiring.js +4 -4
  27. package/dist/commands/extend.js +8 -8
  28. package/dist/commands/get.js +2 -2
  29. package/dist/commands/handover.js +2 -2
  30. package/dist/commands/key-manage.js +2 -2
  31. package/dist/commands/key.js +5 -5
  32. package/dist/commands/link.js +2 -2
  33. package/dist/commands/links.js +1 -1
  34. package/dist/commands/listfile.js +3 -3
  35. package/dist/commands/login-passphrase.js +4 -4
  36. package/dist/commands/login.js +9 -9
  37. package/dist/commands/logout.js +1 -1
  38. package/dist/commands/losses.js +7 -7
  39. package/dist/commands/ls.js +7 -7
  40. package/dist/commands/marks.js +1 -1
  41. package/dist/commands/mcp.js +4 -4
  42. package/dist/commands/mode.js +8 -8
  43. package/dist/commands/on-collision.js +4 -4
  44. package/dist/commands/openers-attach.js +1 -1
  45. package/dist/commands/organise.js +1 -1
  46. package/dist/commands/padding.js +3 -3
  47. package/dist/commands/platform.js +2 -2
  48. package/dist/commands/public-code-manage.js +4 -4
  49. package/dist/commands/public-code.js +4 -4
  50. package/dist/commands/pull.js +1 -1
  51. package/dist/commands/push-heavy.js +1 -1
  52. package/dist/commands/push-wallet.js +1 -1
  53. package/dist/commands/push.js +2 -2
  54. package/dist/commands/put-heavy.js +2 -2
  55. package/dist/commands/put-payer.js +1 -1
  56. package/dist/commands/put-wallet.js +5 -5
  57. package/dist/commands/put.js +3 -3
  58. package/dist/commands/rebuild.js +13 -13
  59. package/dist/commands/receive.js +2 -2
  60. package/dist/commands/recovery-list.js +1 -1
  61. package/dist/commands/recovery.js +7 -7
  62. package/dist/commands/rollback.js +2 -2
  63. package/dist/commands/s3.js +3 -3
  64. package/dist/commands/share.js +7 -7
  65. package/dist/commands/shares-sent.js +2 -2
  66. package/dist/commands/support.js +1 -1
  67. package/dist/commands/sweep.js +3 -3
  68. package/dist/commands/tip.js +2 -2
  69. package/dist/commands/trial.js +8 -8
  70. package/dist/commands/unlock.js +6 -6
  71. package/dist/commands/update.js +3 -3
  72. package/dist/commands/usage.js +4 -4
  73. package/dist/commands/verify.js +1 -1
  74. package/dist/commands/wallet-activity.js +3 -3
  75. package/dist/commands/wallet-donate.js +4 -4
  76. package/dist/commands/wallet-hall.js +5 -5
  77. package/dist/commands/wallet-list.js +2 -2
  78. package/dist/commands/wallet-send.js +5 -5
  79. package/dist/commands/wallet-storage-buy.js +1 -1
  80. package/dist/commands/wallet-storage-extend.js +1 -1
  81. package/dist/commands/wallet-storage-ops.js +5 -5
  82. package/dist/commands/wallet-storage.js +1 -1
  83. package/dist/commands/wallet-swap.js +14 -14
  84. package/dist/commands/wallet-use.js +2 -2
  85. package/dist/commands/wallet.js +6 -6
  86. package/dist/consent.js +7 -7
  87. package/dist/credentials.js +1 -1
  88. package/dist/deposit.js +1 -1
  89. package/dist/download-part.js +1 -1
  90. package/dist/download-sink-node.js +3 -3
  91. package/dist/download.js +1 -1
  92. package/dist/drive-edit/errors.js +1 -1
  93. package/dist/drive-edit/folders.js +1 -1
  94. package/dist/drive-edit/trash.js +2 -2
  95. package/dist/drive-erase.js +1 -1
  96. package/dist/environment.js +5 -5
  97. package/dist/errors.js +1 -1
  98. package/dist/extend-budget.js +5 -5
  99. package/dist/extend-chain.js +1 -1
  100. package/dist/extend-plan.js +4 -4
  101. package/dist/gate.js +1 -1
  102. package/dist/handover.js +2 -2
  103. package/dist/heavy-copy.d.ts +1 -1
  104. package/dist/heavy-copy.js +7 -7
  105. package/dist/help-options.js +13 -13
  106. package/dist/help.js +54 -40
  107. package/dist/human-check.js +2 -2
  108. package/dist/kit-file.js +6 -6
  109. package/dist/list-file.js +1 -1
  110. package/dist/manifest-chunk-flow.js +1 -1
  111. package/dist/manifest-create.js +2 -2
  112. package/dist/manifest-write.js +1 -1
  113. package/dist/manifest.js +6 -3
  114. package/dist/mcp-args.js +1 -1
  115. package/dist/mcp-tools/credits.js +5 -5
  116. package/dist/mcp-tools/files.js +6 -6
  117. package/dist/mcp-tools/organise.js +7 -7
  118. package/dist/mcp-tools/reads.js +17 -17
  119. package/dist/mcp-tools/share.js +6 -6
  120. package/dist/mcp-tools/support.js +3 -3
  121. package/dist/mcp-tools/tiers.js +4 -4
  122. package/dist/notice.js +1 -1
  123. package/dist/openers/wallet.js +1 -1
  124. package/dist/platform-sign.js +2 -2
  125. package/dist/product.d.ts +1 -1
  126. package/dist/product.js +1 -1
  127. package/dist/public-codes.js +2 -2
  128. package/dist/recovery-assemble.js +1 -1
  129. package/dist/recovery-map-file.js +1 -1
  130. package/dist/recovery-map.js +1 -1
  131. package/dist/recovery-source.js +1 -1
  132. package/dist/recovery.js +1 -1
  133. package/dist/risk.d.ts +4 -4
  134. package/dist/risk.js +4 -4
  135. package/dist/s3/call.js +1 -1
  136. package/dist/s3/same-file.js +1 -1
  137. package/dist/setup-questions.js +1 -1
  138. package/dist/shared/lib/drive/manifest-index.d.ts +9 -0
  139. package/dist/shared/lib/drive/manifest-index.js +11 -0
  140. package/dist/shared/lib/heavy/order-plan.js +4 -4
  141. package/dist/shared/lib/heavy/sp-upload.js +1 -1
  142. package/dist/shared/lib/upload/relay-limit.d.ts +30 -0
  143. package/dist/shared/lib/upload/relay-limit.js +74 -0
  144. package/dist/shared/lib/vendor/nmt-pow.d.ts +21 -0
  145. package/dist/shared/lib/vendor/nmt-pow.js +56 -0
  146. package/dist/shared/lib/walrus/node-certificate.js +1 -1
  147. package/dist/shared/lib/walrus/node-quorum.js +1 -1
  148. package/dist/sharing-inbox.js +1 -1
  149. package/dist/sharing.js +4 -4
  150. package/dist/standing-tip.js +1 -1
  151. package/dist/storage-control/extend.js +2 -2
  152. package/dist/storage-control/reshape.js +3 -3
  153. package/dist/support-copy.js +4 -4
  154. package/dist/support-wire.js +4 -4
  155. package/dist/update-source.js +1 -1
  156. package/dist/upload-price.d.ts +10 -0
  157. package/dist/upload-price.js +21 -0
  158. package/dist/upload-quote.js +2 -2
  159. package/dist/upload-run.js +1 -1
  160. package/dist/upload-steps.js +1 -1
  161. package/dist/upload-store.js +1 -1
  162. package/dist/upload-wallet-chain.js +1 -1
  163. package/dist/upload-wallet-plan.js +12 -12
  164. package/dist/upload-wallet-put.js +1 -1
  165. package/dist/upload-wallet.js +2 -2
  166. package/dist/upload.js +2 -2
  167. package/dist/wallet-grant.js +3 -3
  168. package/dist/wallet-pay-index.js +1 -1
  169. package/dist/wallet-sign-external.js +5 -5
  170. package/dist/wallet-sign.js +6 -6
  171. package/dist/wallet-swap-words.js +3 -3
  172. package/dist/walrus.js +2 -2
  173. package/docs/commands/accept-terms.md +3 -3
  174. package/docs/commands/ai-account.md +4 -4
  175. package/docs/commands/create.md +8 -8
  176. package/docs/commands/credits.md +9 -9
  177. package/docs/commands/delete-account.md +4 -4
  178. package/docs/commands/deposit.md +7 -7
  179. package/docs/commands/devices.md +4 -4
  180. package/docs/commands/documents.md +5 -5
  181. package/docs/commands/env.md +10 -10
  182. package/docs/commands/extend.md +4 -4
  183. package/docs/commands/folders.md +3 -3
  184. package/docs/commands/get.md +4 -4
  185. package/docs/commands/handover.md +12 -12
  186. package/docs/commands/heavy.md +4 -4
  187. package/docs/commands/key.md +8 -8
  188. package/docs/commands/link.md +9 -9
  189. package/docs/commands/login.md +4 -4
  190. package/docs/commands/logout.md +2 -2
  191. package/docs/commands/losses.md +3 -3
  192. package/docs/commands/ls.md +5 -5
  193. package/docs/commands/marks.md +5 -5
  194. package/docs/commands/mcp.md +9 -9
  195. package/docs/commands/mode.md +6 -6
  196. package/docs/commands/on-collision.md +4 -4
  197. package/docs/commands/openers.md +5 -5
  198. package/docs/commands/padding.md +7 -7
  199. package/docs/commands/platform.md +2 -2
  200. package/docs/commands/public-code.md +8 -8
  201. package/docs/commands/pull.md +2 -2
  202. package/docs/commands/push.md +3 -3
  203. package/docs/commands/put.md +11 -11
  204. package/docs/commands/rebuild.md +5 -5
  205. package/docs/commands/recovery.md +4 -4
  206. package/docs/commands/s3.md +6 -6
  207. package/docs/commands/share.md +8 -8
  208. package/docs/commands/support.md +7 -7
  209. package/docs/commands/tip.md +7 -7
  210. package/docs/commands/trash.md +8 -8
  211. package/docs/commands/trial.md +5 -5
  212. package/docs/commands/unlock.md +4 -4
  213. package/docs/commands/update.md +3 -3
  214. package/docs/commands/usage.md +4 -4
  215. package/docs/commands/verify.md +5 -5
  216. package/docs/commands/wallet.md +25 -25
  217. package/docs/commands/whoami.md +5 -5
  218. package/examples/podman.sh +3 -3
  219. package/package.json +1 -1
  220. package/server.json +2 -2
@@ -62,7 +62,7 @@ export async function signAndSubmit(client, payer, input) {
62
62
  answered = await payer.signTransaction({ bytes: input.bytes, chain: chainOf(input.network) });
63
63
  }
64
64
  catch (error) {
65
- throw new NmtsError(`WALLET_REFUSED: the wallet did not sign — ${why(error)}`, {
65
+ throw new NmtsError(`WALLET_REFUSED: the wallet did not sign: ${why(error)}`, {
66
66
  exitCode: 4,
67
67
  nextStep: `${input.refusals.unsigned} A wallet refuses when somebody declines it, when it is on another network, or when it cannot sign this shape at all.`,
68
68
  });
@@ -122,7 +122,7 @@ export function externalBlobSigners(payer) {
122
122
  refused: {
123
123
  what: "The storage network refused the registration",
124
124
  nextStep: `Nothing is stored and no storage was bought. The transaction fee was spent. The usual ` +
125
- `causes are too little WAL or SUI in the paying wallet — ${payer.address} — or a held ` +
125
+ `causes are too little WAL or SUI in the paying wallet (${payer.address}) or a held ` +
126
126
  `storage resource too small for this part once encoded.`,
127
127
  },
128
128
  },
@@ -138,11 +138,11 @@ export function externalBlobSigners(payer) {
138
138
  network,
139
139
  bytes: await tx.build({ client }),
140
140
  refusals: {
141
- unsigned: "The storage is bought and the bytes are on the network; only the certification is unsigned. " +
141
+ unsigned: "The storage is bought and the bytes are on the network. Only the certification is unsigned. " +
142
142
  "Running the same upload again asks for that one signature and buys nothing.",
143
143
  refused: {
144
144
  what: "The storage network refused the certification",
145
- nextStep: `The storage is bought and the bytes are on the network; only the certification failed, ` +
145
+ nextStep: `The storage is bought and the bytes are on the network. Only the certification failed, ` +
146
146
  `and its fee was spent. Running the same upload again certifies again, which costs gas ` +
147
147
  `and nothing else.`,
148
148
  },
@@ -183,7 +183,7 @@ export function externalExtendSigner(payer) {
183
183
  refused: {
184
184
  what: "The storage network refused the extension",
185
185
  nextStep: `The storage was NOT extended and the file still ends when it did. The transaction fee was ` +
186
- `spent. The usual causes are too little WAL or SUI in the paying wallet — ${payer.address} — ` +
186
+ `spent. The usual causes are too little WAL or SUI in the paying wallet (${payer.address}) ` +
187
187
  `or a length the network will no longer sell.`,
188
188
  },
189
189
  },
@@ -136,8 +136,8 @@ export const signExtension = async ({ network, code, wallet, objectIds, epochs }
136
136
  throw new NmtsError(`The storage network refused the extension: ${result.refused}.`, {
137
137
  exitCode: 1,
138
138
  nextStep: `The storage was NOT extended and the file still ends when it did. The transaction fee ` +
139
- `was spent. The usual causes are too little WAL or SUI in this account's wallet — ` +
140
- `\`nmts wallet\` shows both — or a length the network will no longer sell.`,
139
+ `was spent. The usual causes are too little WAL or SUI in this account's wallet ` +
140
+ `(\`nmts wallet\` shows both) or a length the network will no longer sell.`,
141
141
  });
142
142
  }
143
143
  // The wait until a node can read it back already happened inside `signAndRun`.
@@ -161,7 +161,7 @@ export const signTransfer = async ({ network, code, wallet, shape }) => {
161
161
  throw new NmtsError(`The chain refused the transfer: ${result.refused}.`, {
162
162
  exitCode: 1,
163
163
  nextStep: `Nothing was sent. The transaction fee was spent. The usual cause is a balance that moved ` +
164
- `between reading it and signing — \`nmts wallet\` shows both balances now.`,
164
+ `between reading it and signing. \`nmts wallet\` shows both balances now.`,
165
165
  });
166
166
  }
167
167
  return result.digest;
@@ -202,7 +202,7 @@ export const signSwap = async ({ network, code, wallet, shape }) => {
202
202
  throw new NmtsError(`The chain refused the swap: ${refused}.`, {
203
203
  exitCode: 1,
204
204
  nextStep: `Nothing was swapped. The transaction fee was spent. The usual causes are a price that moved ` +
205
- `past the minimum between the quote and the signature — quote again, or allow more slippage — ` +
205
+ `past the minimum between the quote and the signature (quote again, or allow more slippage) ` +
206
206
  `or a balance that moved. \`nmts wallet\` shows both balances now.`,
207
207
  });
208
208
  }
@@ -230,7 +230,7 @@ export const signBlobRegister = async ({ network, code, wallet, relayUrl, ...sha
230
230
  throw new NmtsError(`The storage network refused the registration: ${refused}.`, {
231
231
  exitCode: 1,
232
232
  nextStep: `Nothing is stored and no storage was bought. The transaction fee was spent. The usual causes ` +
233
- `are too little WAL or SUI in this account's wallet — \`nmts wallet\` shows both — or a held ` +
233
+ `are too little WAL or SUI in this account's wallet (\`nmts wallet\` shows both) or a held ` +
234
234
  `resource too small for the part once encoded.`,
235
235
  });
236
236
  }
@@ -248,7 +248,7 @@ export const signBlobCertify = async ({ network, code, wallet, relayUrl, ...shap
248
248
  if (refused !== null) {
249
249
  throw new NmtsError(`The storage network refused the certification: ${refused}.`, {
250
250
  exitCode: 1,
251
- nextStep: `The storage is bought and the bytes are on the network; only the certification failed, and ` +
251
+ nextStep: `The storage is bought and the bytes are on the network. Only the certification failed, and ` +
252
252
  `its fee was spent. Running the same command again certifies again and buys nothing.`,
253
253
  });
254
254
  }
@@ -33,7 +33,7 @@ export function resolveCoin(word, network) {
33
33
  if (coin === null) {
34
34
  throw new NmtsError(`${word.coinType} is not SUI, WAL or Circle's native USDC on ${network}.`, {
35
35
  exitCode: 2,
36
- nextStep: `Nothing was signed. A coin is matched by its whole type, package address included — a coin that only shares the name is a different coin. The USDC this tool swaps is ${swapCoinTypes(network).USDC}.`,
36
+ nextStep: `Nothing was signed. A coin is matched by its whole type, package address included. A coin that only shares the name is a different coin. The USDC this tool swaps is ${swapCoinTypes(network).USDC}.`,
37
37
  });
38
38
  }
39
39
  return coin;
@@ -63,8 +63,8 @@ export function venueName(venue) {
63
63
  }
64
64
  export function quoteLine(q, outCoin, inCoin) {
65
65
  const fee = q.feeRateBps === null ? "venue fee could not be measured" : `venue fee about ${pct(q.feeRateBps)}`;
66
- const via = q.route === "viaUsdc" ? ` — ${inCoin} → USDC → ${outCoin} in one transaction` : "";
66
+ const via = q.route === "viaUsdc" ? `, ${inCoin} → USDC → ${outCoin} in one transaction` : "";
67
67
  const left = q.leftoverInUnits > 0n ? ` (${amountOf(inCoin, q.leftoverInUnits)} ${inCoin} would come back unused)` : "";
68
68
  const mid = q.leftoverMidUnits > 0n ? ` (${amountOf("USDC", q.leftoverMidUnits)} USDC would come back unused)` : "";
69
- return `${q.venue.padEnd(9)} ${amountOf(outCoin, q.outUnits)} ${outCoin} — ${fee}${via}${left}${mid}`;
69
+ return `${q.venue.padEnd(9)} ${amountOf(outCoin, q.outUnits)} ${outCoin}, ${fee}${via}${left}${mid}`;
70
70
  }
package/dist/walrus.js CHANGED
@@ -236,8 +236,8 @@ async function readFrom(network, pathOf, what, options, node) {
236
236
  }
237
237
  throw new NmtsError(`${what} could not be read from the ${network} storage network.`, {
238
238
  exitCode: 5,
239
- nextStep: `Tried: ${tried.join(" · ")}. If every host answered 404, either the bytes are gone or ` +
240
- `this is the wrong network — the same identifier does not exist on both.`,
239
+ nextStep: `Tried: ${tried.join(", ")}. If every host answered 404, either the bytes are gone or ` +
240
+ `this is the wrong network. The same identifier does not exist on both.`,
241
241
  });
242
242
  }
243
243
  /**
@@ -1,7 +1,7 @@
1
- # nmts accept-terms — accept a new version of the Terms
1
+ # nmts accept-terms: accept a new version of the Terms
2
2
 
3
3
  Commands: accept-terms
4
- Tiers: accept-terms=none · accept-terms.accept=high
4
+ Tiers: accept-terms=none, accept-terms.accept=high
5
5
 
6
6
  When new Terms take effect, the server refuses uploads and shares from an account that has not
7
7
  accepted them (`TERMS_ACCEPTANCE_REQUIRED`). `accept-terms --status` says where the account
@@ -10,6 +10,6 @@ stands and reads nothing else.
10
10
  Accepting is the person's act. At a terminal they read the documents (`nmts terms`, `nmts privacy`,
11
11
  `nmts notices` for what changed) and type the two versions. When you are relaying their answer,
12
12
  put the question to them in your own words, then run
13
- `nmts accept-terms --accept-terms <version> --accept-privacy <version> --yes` — the versions they
13
+ `nmts accept-terms --accept-terms <version> --accept-privacy <version> --yes`: the versions they
14
14
  named, never "the current one". It needs the NMTS key, is asked about in every mode but
15
15
  skip-permissions, and has no lock. The other way in is the account screen at nmts.me.
@@ -1,12 +1,12 @@
1
- # nmts ai-account — accounts made under this one for an AI to work in
1
+ # nmts ai-account: accounts made under this one for an AI to work in
2
2
 
3
3
  Commands: ai-account
4
- Tiers: ai-account=none · ai-account.create=high · ai-account.delete=ultra-high
4
+ Tiers: ai-account=none, ai-account.create=high, ai-account.delete=ultra-high
5
5
 
6
6
  An AI account is an ordinary NMTS account with its own NMTS key, its own wallet and its own empty
7
7
  drive, made under this one. It exists so that a program never has to be handed this account's key,
8
8
  which would hand it the files, the wallet and the right to erase. Files reach it by being shared
9
- with it; credits and coins reach it the way they reach any account.
9
+ with it. Credits and coins reach it the way they reach any account.
10
10
 
11
11
  All three verbs need the NMTS key on this machine and prove it the way a sign-in does. An API key
12
12
  cannot reach any of them, on purpose: an agent that could make AI accounts could make more of
@@ -16,7 +16,7 @@ itself, and revoking its key would mean nothing.
16
16
  account id, whether it is active or stopped, and the day it was made.
17
17
 
18
18
  `ai-account create [place]` makes one at the lowest free place, or at the place you name. The new
19
- account's NMTS key is derived here from this account's key and that place — it is never sent — and
19
+ account's NMTS key is derived here from this account's key and that place (it is never sent) and
20
20
  printed once. The same place always gives the same key back, so a place that is erased can be
21
21
  re-used and a key that is lost can be derived again. The first one under an account is made in a
22
22
  browser instead: turning the feature on costs a human check no terminal can pass.
@@ -1,17 +1,17 @@
1
- # nmts create — make a new account
1
+ # nmts create: make a new account
2
2
 
3
3
  Commands: create
4
4
  Tiers: create=high
5
5
 
6
- Signs in with one account's key and creates another, printing the new NMTS key once — nothing
6
+ Signs in with one account's key and creates another, printing the new NMTS key once. Nothing
7
7
  can print it again, because the server stores a one-way verifier and never the NMTS key. This is how a
8
- service that keeps its customers' files in NMTS gives each customer a drive; the first account of
8
+ service that keeps its customers' files in NMTS gives each customer a drive. The first account of
9
9
  all has to be made in a browser. It needs a key with `files:write` and a live human check behind
10
10
  it, and the server allows two a day and five a week per key.
11
11
 
12
12
  There is no lock: the account does not exist yet. The person's acceptance is the two flags,
13
- `--accept-terms <version> --accept-privacy <version>` — a version they read, never "the current
14
- one" — and without them it is refused. With `--json` the NMTS key does not go into the output:
13
+ `--accept-terms <version> --accept-privacy <version>` (a version they read, never "the current
14
+ one") and without them it is refused. With `--json` the NMTS key does not go into the output:
15
15
  `--out <file>` is required and the JSON carries the path. A new account starts with no credits,
16
16
  and the free trial runs its own human check on every application. It stores nothing on this
17
17
  machine and switches nothing over.
@@ -19,8 +19,8 @@ machine and switches nothing over.
19
19
  With a one-time pass in `NMTS_AGENT_PASS` it needs no key and no browser. A person takes the pass
20
20
  at nmts.me/ai by passing the human check there, and accepts the Terms and the Privacy Policy for
21
21
  the account it makes. The pass makes one account, once, within sixty minutes. The new NMTS key is
22
- kept in this tool's own file — sealed under `NMTS_PASSPHRASE` when that is set, otherwise in the
23
- clear at mode 600 — and an API key with read, write and spend is made and kept beside it. The
22
+ kept in this tool's own file (sealed under `NMTS_PASSPHRASE` when that is set, otherwise in the
23
+ clear at mode 600) and an API key with read, write and spend is made and kept beside it. The
24
24
  account starts with its human check live, so `nmts trial apply` works at once. It refuses, before
25
- spending the pass, when this machine already keeps an NMTS key; set `NMTS_CONFIG_DIR` to a new
25
+ spending the pass, when this machine already keeps an NMTS key. Set `NMTS_CONFIG_DIR` to a new
26
26
  folder for the new account. The pass is never an option on the command line.
@@ -1,17 +1,17 @@
1
- # nmts credits — moving credits between your own accounts
1
+ # nmts credits: moving credits between your own accounts
2
2
 
3
3
  Commands: credits
4
- Tiers: credits=none · credits.transfer=medium
4
+ Tiers: credits=none, credits.transfer=medium
5
5
 
6
6
  `nmts credits transfer --to <account identifier> <credits>` moves whole credits from the account
7
- this key belongs to onto another account of the same family — the account a person made, and every
7
+ this key belongs to onto another account of the same family: the account a person made, and every
8
8
  account made under it. `--to` takes the receiving account's identifier: what `nmts whoami` prints
9
9
  for that account, and what the account screen lists beside an AI account. `--json` prints
10
- `{"to":"…","credits":5,"from_balance":80,"to_balance":50}`; without it, both balances are printed
10
+ `{"to":"…","credits":5,"from_balance":80,"to_balance":50}`. Without it, both balances are printed
11
11
  under the line that says how many moved.
12
12
 
13
13
  **It cannot reach anyone else.** A recipient outside the family is refused, and an account that
14
- does not exist is refused in exactly the same words — so this door cannot be used to find out which
14
+ does not exist is refused in exactly the same words, so this door cannot be used to find out which
15
15
  identifiers are real. There is no price, no fee and no third party here: nothing is bought or sold,
16
16
  and the family's total is what it was a moment before.
17
17
 
@@ -20,7 +20,7 @@ week's place for the tree rather than one each. That place lands on one account,
20
20
  reaches the account that needs it.
21
21
 
22
22
  It needs the account's human check to be live, the same as the free trial does. When it is not, the
23
- refusal names `nmts verify` — the code a person types at a browser — rather than a credential
23
+ refusal names `nmts verify` (the code a person types at a browser) rather than a credential
24
24
  problem. It is a **medium** act: asked in the default mode, your judgement in an auto mode. Nothing
25
25
  is spent by moving credits, and running the same command the other way puts them back.
26
26
 
@@ -28,7 +28,7 @@ The credits keep the expiry they already had. The move drains the soonest-expiri
28
28
  sending 100 may arrive as several grants with different dates, and moving them never renews them.
29
29
 
30
30
  Four refusals, none of them worth retrying:
31
- `CREDIT_TRANSFER_OUTSIDE_FAMILY` (name an account of your own) · `CREDIT_TRANSFER_SELF` (that is
32
- the account sending) · `CREDIT_TRANSFER_INSUFFICIENT` (send less — the refusal carries what was
33
- needed and what the account can spend) · `CREDIT_TRANSFER_ZERO` (send some). Nothing is moved and
31
+ `CREDIT_TRANSFER_OUTSIDE_FAMILY` (name an account of your own), `CREDIT_TRANSFER_SELF` (that is
32
+ the account sending), `CREDIT_TRANSFER_INSUFFICIENT` (send less: the refusal carries what was
33
+ needed and what the account can spend), `CREDIT_TRANSFER_ZERO` (send some). Nothing is moved and
34
34
  nothing is held in any of the four.
@@ -1,4 +1,4 @@
1
- # nmts delete-account — erase the account's server record
1
+ # nmts delete-account: erase the account's server record
2
2
 
3
3
  Commands: delete-account
4
4
  Tiers: delete-account=ultra-high
@@ -6,9 +6,9 @@ Tiers: delete-account=ultra-high
6
6
  Erases the account, the file list, every file's record and share, sessions and keys. It cannot be
7
7
  undone. Not erased: the bytes on the storage network (paid through their term, unreadable without
8
8
  the records) and the NMTS key on this machine (`nmts logout` removes it). Storage already paid
9
- for is not refunded — the funds went to the network, never to NMTS.
9
+ for is not refunded. The funds went to the network, never to NMTS.
10
10
 
11
- It is the one act above high. In the default mode a person types a sentence at the terminal; in
12
- both auto modes it is refused whatever is unlocked; under skip-permissions it runs only with
11
+ It is the one act above high. In the default mode a person types a sentence at the terminal. In
12
+ both auto modes it is refused whatever is unlocked. Under skip-permissions it runs only with
13
13
  `--reason "<why>"` and `--yes`, and the reason is the place to say, having thought it through,
14
14
  why this is what the person wants. Do not run it because it would tidy something up.
@@ -1,27 +1,27 @@
1
- # nmts deposit — the credit deposit an upload sets aside
1
+ # nmts deposit: the credit deposit an upload sets aside
2
2
 
3
3
  Commands: deposit
4
- Tiers: deposit=none · deposit.set=low
4
+ Tiers: deposit=none, deposit.set=low
5
5
 
6
6
  Every file paid for with credits sets a deposit aside in the same transaction as the price: whole
7
7
  credits, from 0 to 64, chosen per upload. The deposit is what a later chain operation on that file
8
- is charged against — releasing its storage early, or a storage operation that costs the network a
9
- fee — converted to credits, at least one per operation, and whatever is left comes back when the
8
+ is charged against (releasing its storage early, or a storage operation that costs the network a
9
+ fee), converted to credits, at least one per operation, and whatever is left comes back when the
10
10
  storage period ends. It does not count against the per-file or per-day ceilings, and it returns
11
11
  with the price if the chain never registers the upload.
12
12
 
13
13
  `nmts deposit` prints what this account sets aside by default, `64 (not set)` until somebody
14
- chooses; `nmts deposit <n>` records another number. `put --deposit <n>` and `push --deposit <n>`
14
+ chooses. `nmts deposit <n>` records another number. `put --deposit <n>` and `push --deposit <n>`
15
15
  set it for one run without changing the default, and are refused before anything is sent when the
16
16
  number is not a whole 0 to 64. A wallet-paid upload takes no deposit and refuses the flag: the
17
17
  wallet buys its own storage.
18
18
 
19
- `0` is a real answer and is not withheld. A file with no deposit still releases — it pays twice
19
+ `0` is a real answer and is not withheld. A file with no deposit still releases: it pays twice
20
20
  the same chain fee out of the balance at that moment, and is refused, with both numbers named,
21
21
  when the balance cannot cover it. Every screen that offers 0 says that in the same breath.
22
22
 
23
23
  The default lives in the sealed file list, so the server never learns it and it follows the account
24
- to every device; reading it costs a list read and setting it costs a list write, which is why
24
+ to every device. Reading it costs a list read and setting it costs a list write, which is why
25
25
  setting it is a low act (asked once in the default mode, run in an auto mode). It applies to what
26
26
  is uploaded next: a deposit already set aside on a stored file is that file's and is not moved.
27
27
  `nmts balance` shows what is held, what each file set aside and how much of it has been spent.
@@ -1,9 +1,9 @@
1
- # nmts devices — what is signed in to this account
1
+ # nmts devices: what is signed in to this account
2
2
 
3
3
  Commands: devices
4
- Tiers: devices=none · devices.sign-out=high(sign-out)
4
+ Tiers: devices=none, devices.sign-out=high(sign-out)
5
5
 
6
6
  Lists the devices and keys signed in to this account. `--sign-out <id|all>` ends one or all of
7
- them; whoever is there is signed out at once. It needs the NMTS key beside the API key, is locked
7
+ them. Whoever is there is signed out at once. It needs the NMTS key beside the API key, is locked
8
8
  until a person runs `nmts unlock sign-out`, and asks on every run in every mode but
9
- skip-permissions — at the terminal, or with `--yes` after the person has said so.
9
+ skip-permissions, at the terminal, or with `--yes` after the person has said so.
@@ -1,10 +1,10 @@
1
- # nmts notices, terms, privacy — what NMTS has posted
1
+ # nmts notices, terms, privacy: what NMTS has posted
2
2
 
3
3
  Commands: notices, terms, privacy
4
- Tiers: notices=none · terms=none · privacy=none
4
+ Tiers: notices=none, terms=none, privacy=none
5
5
 
6
- `notices` lists what NMTS has posted; `notices <id>` prints one and `--save <id>` keeps it as a
6
+ `notices` lists what NMTS has posted. `notices <id>` prints one and `--save <id>` keeps it as a
7
7
  file. `terms` prints the Terms of Service in force (`--board` for the message board's own,
8
- `--lang ko` for Korean), `privacy` the Privacy Policy; `--save` writes either under the name the
9
- server gives it, `--out` says where. Each document prints its version at the top — the value
8
+ `--lang ko` for Korean), `privacy` the Privacy Policy. `--save` writes either under the name the
9
+ server gives it, `--out` says where. Each document prints its version at the top: the value
10
10
  `accept-terms` asks for. All three only read.
@@ -1,21 +1,21 @@
1
- # nmts env — where this is running, and what that means
1
+ # nmts env: where this is running, and what that means
2
2
 
3
3
  Commands: env
4
4
  Tiers: env=none
5
5
 
6
- Needs no credential and contacts nothing. Run it first on a machine you have not seen; `--json`
7
- gives the same thing to parse. It reports the operating system; whether this is a Docker or Podman
8
- container and whether root here is root on the host; whether a file written here can be kept
9
- private (measured, not guessed); whether there is a terminal and whether a browser could be
10
- opened; whether an NMTS key and an API key were found and where each came from; if the stored
11
- NMTS key is sealed, whether a passphrase is actually reachable; which agent left a marker here; and
6
+ Needs no credential and contacts nothing. Run it first on a machine you have not seen. `--json`
7
+ gives the same thing to parse. It reports the operating system. Whether this is a Docker or Podman
8
+ container and whether root here is root on the host. Whether a file written here can be kept
9
+ private (measured, not guessed). Whether there is a terminal and whether a browser could be
10
+ opened. Whether an NMTS key and an API key were found and where each came from. If the stored
11
+ NMTS key is sealed, whether a passphrase is actually reachable. Which agent left a marker here. And
12
12
  what the version check last found. The `advice` it returns is written to be repeated to the person
13
- as-is — do that when something in it is a `warn`.
13
+ as-is. Do that when something in it is a `warn`.
14
14
 
15
15
  Codex, Hermes and OpenClaw clear the environment before starting an MCP server, so none of
16
16
  `NMTS_ACCOUNT_CODE`, `NMTS_ACCOUNT_CODE_FILE`, `NMTS_API_KEY` or `NMTS_PASSPHRASE` survives there.
17
- Store the credentials with `nmts login` instead; an empty `agentHosts` list is what those three
17
+ Store the credentials with `nmts login` instead. An empty `agentHosts` list is what those three
18
18
  look like, not evidence that no agent is running.
19
19
 
20
20
  Inside a container, do not put the NMTS key in an environment variable. Write it to a file
21
- and set `NMTS_ACCOUNT_CODE_FILE` to its path — `--secret` mounts, tmpfs and bind mounts all work.
21
+ and set `NMTS_ACCOUNT_CODE_FILE` to its path: `--secret` mounts, tmpfs and bind mounts all work.
@@ -1,4 +1,4 @@
1
- # nmts extend — buy more storage time for one file
1
+ # nmts extend: buy more storage time for one file
2
2
 
3
3
  Commands: extend
4
4
  Tiers: extend=high(wallet)
@@ -17,8 +17,8 @@ developer right after the extension, without a question.
17
17
 
18
18
  Both forms print the price in WAL, the chain fee in SUI measured by a dry run of the exact
19
19
  transaction (`null` in `--json` when it could not be measured, never 0), and what the wallet
20
- holds. A wallet short of either exits 4 with the two numbers before anything else; a balance the
20
+ holds. A wallet short of either exits 4 with the two numbers before anything else. A balance the
21
21
  chain could not read is said as unread, not as zero. A file nowhere near its deadline is refused
22
- rather than extended; `--yes` says to do it anyway. If the purchase succeeds and the server then
23
- fails to record the date, that is reported as itself and must not be retried — the storage is
22
+ rather than extended. `--yes` says to do it anyway. If the purchase succeeds and the server then
23
+ fails to record the date, that is reported as itself and must not be retried: the storage is
24
24
  already bought.
@@ -1,10 +1,10 @@
1
- # nmts mkdir, mv, rename — folders and names
1
+ # nmts mkdir, mv, rename: folders and names
2
2
 
3
3
  Commands: mkdir, mv, rename
4
- Tiers: mkdir=none · mv=none · rename=none
4
+ Tiers: mkdir=none, mv=none, rename=none
5
5
 
6
6
  Free, instant, reversible, and none of them stops to ask. `mkdir <path>` makes a folder and any
7
- missing folder above it. `mv <paths> <folder>` moves things into a folder; `/` is the top of the
7
+ missing folder above it. `mv <paths> <folder>` moves things into a folder. `/` is the top of the
8
8
  drive. `rename <path> <name>` gives one thing a new name and refuses a name already used in that
9
9
  folder rather than numbering it. Paths are matched whole, and a path matching two entries is
10
10
  refused (exit 4).
@@ -1,15 +1,15 @@
1
- # nmts get — fetch one file
1
+ # nmts get: fetch one file
2
2
 
3
3
  Commands: get
4
4
  Tiers: get=none
5
5
 
6
6
  Takes the path exactly as `nmts ls` prints it, fetches the sealed parts, decrypts and checks them,
7
- and writes the file. `--out` chooses where. It will not replace an existing file without `--force`
8
- — "already exists" is the person's decision.
7
+ and writes the file. `--out` chooses where. It will not replace an existing file without `--force`:
8
+ "already exists" is the person's decision.
9
9
 
10
10
  It never leaves a half-right file: bytes go to a temporary name beside the target and are renamed
11
11
  into place only once the hash matches, one part held in memory at a time. `--out -` hands the file
12
- to stdout and writes nothing; in that mode every line for a person, including `--json`, goes to
12
+ to stdout and writes nothing. In that mode every line for a person, including `--json`, goes to
13
13
  stderr, binary bytes are refused when stdout is a terminal, and files over 64 MiB are refused
14
14
  because a pipe cannot be taken back.
15
15
 
@@ -1,25 +1,25 @@
1
- # nmts handover — hand one file to one account outside NMTS
1
+ # nmts handover: hand one file to one account outside NMTS
2
2
 
3
3
  Commands: handover
4
- Tiers: handover=none · handover.make=high(share)
4
+ Tiers: handover=none, handover.make=high(share)
5
5
 
6
6
  `handover make <path> --to <public code | public code file>` writes a handover file: one file of
7
7
  your drive, sealed so that only the recipient's NMTS key decrypts the file inside it. You pass the
8
- handover file on yourself — mail, chat, a USB stick. No share is registered, and the recipient's
8
+ handover file on yourself: mail, chat, a USB stick. No share is registered, and the recipient's
9
9
  side tells the NMTS server nothing about it. `--out <file>` names the handover file (default
10
- `nmts-handover-<YYYY-MM-DD>.nmtshandover` in the current directory, the date in UTC; it never
11
- carries the file's own name); `--force` replaces a file that is already there. Both are checked
10
+ `nmts-handover-<YYYY-MM-DD>.nmtshandover` in the current directory, the date in UTC. It never
11
+ carries the file's own name). `--force` replaces a file that is already there. Both are checked
12
12
  before anything else is done. The handover file is written readable by you only (mode 0600).
13
13
 
14
14
  The recipient is either a public code, which is looked up on the server the way `share` looks it
15
- up — so the server sees whom this account looked up — or the path of their public code file
15
+ up (so the server sees whom this account looked up) or the path of their public code file
16
16
  (`nmts public-code --save` on their side), which is not looked up at all. A public code file is
17
- believed only when the identity inside fingerprints to the code it names; that proves the file is
17
+ believed only when the identity inside fingerprints to the code it names. That proves the file is
18
18
  consistent, not that it came from the recipient, so compare the code it shows with the one they
19
19
  gave you.
20
20
 
21
21
  It is sent from your default public code, the lowest-numbered live one, or from the live code
22
- `--as <n>` names, as for `share`; the recipient sees that code. None of your own codes, live or
22
+ `--as <n>` names, as for `share`. The recipient sees that code. None of your own codes, live or
23
23
  revoked, can be the recipient. When the recipient's public code file names a code its owner has
24
24
  revoked, `make` prints `Its owner has revoked this public code. Ask them for the code they use now.`
25
25
  and still writes the file, because a revoked code still opens what was sealed to it. A typed code
@@ -34,16 +34,16 @@ stored bytes are destroyed. Removing the file from your drive (`rm`, `erase`) do
34
34
 
35
35
  `handover open <file>` opens a handover file with this account's NMTS key and saves the file it
36
36
  carries. Without `--out` it is saved in the current directory under the name the sender gave it,
37
- reduced to its last segment; `--out <file>` saves it at that path instead, as `receive --out` does.
37
+ reduced to its last segment. `--out <file>` saves it at that path instead, as `receive --out` does.
38
38
  It needs the NMTS key and no API key, fetches the pieces straight from Walrus aggregators, checks
39
39
  each piece's position against its own header and the whole file against the hash the sender
40
- sealed; a file that does not match is not written. It refuses a handover file over 1 MiB, a file
40
+ sealed. A file that does not match is not written. It refuses a handover file over 1 MiB, a file
41
41
  made for another NMTS key, a file whose fields do not hold together, a file from a newer version,
42
42
  and a file made on the other network (`--network`).
43
43
 
44
44
  A handover file does not say which of your public codes it was sealed to, so `open` tries them:
45
- code 0 first; then, when an API key on this machine can read your list of codes, your live codes
46
- lowest first and your revoked ones newest first; with no key, codes 1, 2, … up to 64. When the code
45
+ code 0 first. Then, when an API key on this machine can read your list of codes, your live codes
46
+ lowest first and your revoked ones newest first. With no key, codes 1, 2, … up to 64. When the code
47
47
  that opened it is not code 0 it prints `to #n` and the code, or `received with your revoked public
48
48
  code #n` when you have revoked it. When the sender's code is on the revoked list it prints `The
49
49
  sender has since revoked this code.` Both revocation checks fetch one sixteenth of the public
@@ -1,7 +1,7 @@
1
- # nmts heavy — the EVM wallet that pays Filecoin yourself
1
+ # nmts heavy: the EVM wallet that pays Filecoin yourself
2
2
 
3
3
  Commands: heavy
4
- Tiers: heavy=none · heavy.fund=high(wallet)
4
+ Tiers: heavy=none, heavy.fund=high(wallet)
5
5
 
6
6
  NMTS Heavy keeps a file whole in two separate places on Filecoin instead of spreading it across
7
7
  Walrus. Most uploads never need this command: `put --tier heavy` and `push --tier heavy` pay with
@@ -26,10 +26,10 @@ for the storage service: it is a wallet act (`nmts unlock wallet`), prints what
26
26
  only with `--yes`. When the deposit already covers the amount it signs nothing.
27
27
 
28
28
  `--pay evm` uploads pay the storage providers from that deposit. The file stays as long as the
29
- deposit lasts (`heavy wallet` shows the epoch it lasts to); add more with `heavy fund` before then.
29
+ deposit lasts (`heavy wallet` shows the epoch it lasts to). Add more with `heavy fund` before then.
30
30
  `--copies` takes 1 to 12 (default 2), `--providers` names provider ids, and `--evm-wallet N` pays
31
31
  from another derived wallet. On a network whose storage providers this version does not list, it
32
32
  is refused before anything is spent.
33
33
 
34
34
  You need FIL for gas and USDFC in the EVM wallet before `heavy fund`. On the Calibration test
35
- network both come from the public faucets; on mainnet, from an exchange or a swap.
35
+ network both come from the public faucets. On mainnet, from an exchange or a swap.
@@ -1,14 +1,14 @@
1
- # nmts key — API keys made from the NMTS key
1
+ # nmts key: API keys made from the NMTS key
2
2
 
3
3
  Commands: key
4
- Tiers: key=none · key.new=medium · key.list=none · key.revoke=medium
4
+ Tiers: key=none, key.new=medium, key.list=none, key.revoke=medium
5
5
 
6
- `key new` makes an API key with the NMTS key alone — no browser — and stores it as this
7
- machine's credential; `--print` shows it once as well. `--scopes read,write,spend` says what it may
8
- do (default `read`; a program that uploads needs all three), `--days`/`--until` how long it lasts
6
+ `key new` makes an API key with the NMTS key alone (no browser) and stores it as this
7
+ machine's credential. `--print` shows it once as well. `--scopes read,write,spend` says what it may
8
+ do (default `read`. A program that uploads needs all three), `--days`/`--until` how long it lasts
9
9
  (the server clamps at its own ceiling and the reply says the date). `key list` shows every key of
10
- the account — what it may do, when it stops, when it was last used, and which one is this
11
- machine's. `key revoke <id>` ends one and `key revoke all` ends every one; whatever used it stops
10
+ the account: what it may do, when it stops, when it was last used, and which one is this
11
+ machine's. `key revoke <id>` ends one and `key revoke all` ends every one. Whatever used it stops
12
12
  working. All three present the NMTS key's proof, never an API key: an API key cannot list or cut keys, and
13
13
  that is what makes revoking mean something. In the default mode `new` and `revoke` ask first (or
14
- take `--yes`); in an auto mode they are your judgement. NMTS keeps no copy of a key.
14
+ take `--yes`). In an auto mode they are your judgement. NMTS keeps no copy of a key.
@@ -1,34 +1,34 @@
1
- # nmts link — public links to one file
1
+ # nmts link: public links to one file
2
2
 
3
3
  Commands: link, links
4
- Tiers: link=none · link.make=high(share) · link.revoke=low · links=none · links.revoke=low · links.revoke-all=low
4
+ Tiers: link=none, link.make=high(share), link.revoke=low, links=none, links.revoke=low, links.revoke-all=low
5
5
 
6
6
  `link make <path>` makes a public link to one file of your drive and prints it:
7
7
  `https://nmts.me/l/<token>#<secret>`. Anyone with the link can open this file. Cutting the link stops
8
8
  new downloads, but copies already downloaded stay with whoever has them. `--hide-name` leaves the
9
- file's name out; its size stays, because the size is what takes size padding back off.
10
- `--expires <n>d` stops the link after that many days (1d to 3650d); without it the link lasts until
9
+ file's name out. Its size stays, because the size is what takes size padding back off.
10
+ `--expires <n>d` stops the link after that many days (1d to 3650d). Without it the link lasts until
11
11
  it is cut. The secret after `#` is made here and is in no request: the server stores the file key
12
12
  wrapped under it, the name document and the content hash sealed under the file key, and a copy of
13
13
  the secret sealed under this account's key so the link can be printed again. It gives the file to
14
14
  whoever holds the link, so it sits behind the same unlock as `share` and asks on every run.
15
15
 
16
16
  `link list <path>` prints every link made to that file, newest first, with when it was made and how
17
- many times it was downloaded; a live link is printed whole again, a cut one says when and by whom
17
+ many times it was downloaded. A live link is printed whole again, a cut one says when and by whom
18
18
  (`owner`, `operator`, `report`).
19
19
 
20
20
  `link revoke <id>` cuts one link. The server stops handing out the file's pieces for it at once.
21
21
 
22
22
  `link open <link>` downloads and decrypts a file from a public link, without logging in. It asks
23
23
  the server for the token only, opens the file key with the secret, fetches the pieces from Walrus
24
- and checks the whole file against the hash the owner sealed; a file that does not match is not
24
+ and checks the whole file against the hash the owner sealed. A file that does not match is not
25
25
  written. Without `--out` the file is saved in the current directory under the name the owner
26
- showed, reduced to its last segment, or `nmts-link-<token>` when the name was hidden; `--force`
26
+ showed, reduced to its last segment, or `nmts-link-<token>` when the name was hidden. `--force`
27
27
  replaces a file that is already there. A cut, expired or unknown link is refused.
28
28
 
29
29
  `links` prints every live public link this account holds, across all its files, newest first: the
30
- id, the file's path (read from this account's own file list; the server has file ids, not names),
30
+ id, the file's path (read from this account's own file list. The server has file ids, not names),
31
31
  when it was made, how many times it was downloaded, when it expires if it does, and the whole link.
32
32
  `links revoke <id>` cuts one, as `link revoke` does. `links revoke-all` cuts every live link in one
33
- request — all or none — and prints how many were cut; asking again cuts none. Copies already
33
+ request (all or none) and prints how many were cut. Asking again cuts none. Copies already
34
34
  downloaded stay with whoever has them.
@@ -1,7 +1,7 @@
1
- # nmts login — keep the NMTS key on this machine, and take an API key
1
+ # nmts login: keep the NMTS key on this machine, and take an API key
2
2
 
3
3
  Commands: login
4
- Tiers: login=none · login.plain=high(unsafe-code-storage) · login.env=high(plain-env)
4
+ Tiers: login=none, login.plain=high(unsafe-code-storage), login.env=high(plain-env)
5
5
 
6
6
  `nmts login` takes the NMTS key or its 15-word recovery phrase, stores the key sealed under a
7
7
  passphrase, checks whichever API key it finds (`NMTS_API_KEY_FILE`, `NMTS_API_KEY`) with the
@@ -9,13 +9,13 @@ server, and stores that too. It prints the key's public handle and never the key
9
9
  replace a stored key unless the run says so.
10
10
 
11
11
  Every later command needs the passphrase, from `NMTS_PASSPHRASE` or a terminal. A sealed key with
12
- no passphrase in reach is not a usable credential; `nmts env` says which case this machine is in.
12
+ no passphrase in reach is not a usable credential. `nmts env` says which case this machine is in.
13
13
 
14
14
  Two other shapes exist and both are locked until a person opens them once, at a terminal:
15
15
 
16
16
  - `--plain` stores the NMTS key unsealed. Unlock: `nmts unlock unsafe-code-storage`.
17
17
  - `--env` stores nothing and prints the variable to set. Unlock: `nmts unlock plain-env`. The same
18
- unlock covers reading the NMTS key from `NMTS_ACCOUNT_CODE` on every command — an environment
18
+ unlock covers reading the NMTS key from `NMTS_ACCOUNT_CODE` on every command. An environment
19
19
  variable is readable through `docker inspect`, `/proc/<pid>/environ` and most CI logs.
20
20
 
21
21
  Once unlocked, neither asks again: they are standing choices, not per-run questions.
@@ -1,4 +1,4 @@
1
- # nmts logout — remove the stored credentials
1
+ # nmts logout: remove the stored credentials
2
2
 
3
3
  Commands: logout
4
4
  Tiers: logout=none
@@ -6,6 +6,6 @@ Tiers: logout=none
6
6
  Removes the NMTS key and API key this tool stored on this machine. Nothing on the server
7
7
  changes: the key stays valid until revoked (`nmts key revoke`, or the account screen), and the
8
8
  account is untouched. An NMTS key that came from an environment variable or a file is not touched
9
- either — this only forgets what `nmts login` wrote.
9
+ either. This only forgets what `nmts login` wrote.
10
10
 
11
11
  Run it when a machine is handed over or a task is finished on a machine the person does not keep.