@seliseblocks/cli-os 0.1.4 → 0.1.5

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 (389) hide show
  1. package/AI_USAGE_GUIDE.md +328 -58
  2. package/README.md +83 -46
  3. package/dist/commands/auth/client-credentials/delete.d.ts +1 -0
  4. package/dist/commands/auth/client-credentials/delete.js +23 -0
  5. package/dist/commands/auth/client-credentials/list.d.ts +1 -0
  6. package/dist/commands/auth/client-credentials/list.js +14 -0
  7. package/dist/commands/auth/client-credentials/save.d.ts +1 -0
  8. package/dist/commands/auth/client-credentials/save.js +41 -0
  9. package/dist/commands/auth/config/get.d.ts +1 -0
  10. package/dist/commands/auth/config/get.js +14 -0
  11. package/dist/commands/auth/config/save.d.ts +1 -0
  12. package/dist/commands/auth/config/save.js +37 -0
  13. package/dist/commands/auth/idp/create.d.ts +1 -0
  14. package/dist/commands/auth/idp/create.js +46 -0
  15. package/dist/commands/auth/idp/delete.d.ts +1 -0
  16. package/dist/commands/auth/idp/delete.js +23 -0
  17. package/dist/commands/auth/idp/get.d.ts +1 -0
  18. package/dist/commands/auth/idp/get.js +16 -0
  19. package/dist/commands/auth/idp/list.d.ts +1 -0
  20. package/dist/commands/auth/idp/list.js +14 -0
  21. package/dist/commands/auth/idp/status.d.ts +1 -0
  22. package/dist/commands/auth/idp/status.js +27 -0
  23. package/dist/commands/auth/idp/update.d.ts +7 -0
  24. package/dist/commands/auth/idp/update.js +45 -0
  25. package/dist/commands/auth/oidc-clients/delete.d.ts +1 -0
  26. package/dist/commands/auth/oidc-clients/delete.js +23 -0
  27. package/dist/commands/auth/oidc-clients/get.d.ts +1 -0
  28. package/dist/commands/auth/oidc-clients/get.js +16 -0
  29. package/dist/commands/auth/oidc-clients/list.d.ts +1 -0
  30. package/dist/commands/auth/oidc-clients/list.js +14 -0
  31. package/dist/commands/auth/oidc-clients/rotate-secret.d.ts +1 -0
  32. package/dist/commands/auth/oidc-clients/rotate-secret.js +23 -0
  33. package/dist/commands/auth/oidc-clients/save.d.ts +2 -0
  34. package/dist/commands/auth/oidc-clients/save.js +57 -0
  35. package/dist/commands/auth/refresh.js +1 -1
  36. package/dist/commands/data/config/create.d.ts +1 -0
  37. package/dist/commands/data/config/create.js +38 -0
  38. package/dist/commands/data/config/get.d.ts +1 -0
  39. package/dist/commands/data/config/get.js +14 -0
  40. package/dist/commands/data/config/update.d.ts +1 -0
  41. package/dist/commands/data/config/update.js +41 -0
  42. package/dist/commands/data/files/create-folder.d.ts +1 -0
  43. package/dist/commands/data/files/create-folder.js +34 -0
  44. package/dist/commands/data/files/delete-folder.d.ts +1 -0
  45. package/dist/commands/data/files/delete-folder.js +25 -0
  46. package/dist/commands/data/files/delete.d.ts +1 -0
  47. package/dist/commands/data/files/delete.js +28 -0
  48. package/dist/commands/data/files/dms-list.d.ts +1 -0
  49. package/dist/commands/data/files/dms-list.js +27 -0
  50. package/dist/commands/data/files/dms-upload.d.ts +6 -0
  51. package/dist/commands/data/files/dms-upload.js +41 -0
  52. package/dist/commands/data/files/get-many.d.ts +1 -0
  53. package/dist/commands/data/files/get-many.js +24 -0
  54. package/dist/commands/data/files/get.d.ts +1 -0
  55. package/dist/commands/data/files/get.js +21 -0
  56. package/dist/commands/data/files/info.d.ts +1 -0
  57. package/dist/commands/data/files/info.js +30 -0
  58. package/dist/commands/data/files/presigned-upload-url.d.ts +6 -0
  59. package/dist/commands/data/files/presigned-upload-url.js +34 -0
  60. package/dist/commands/data/files/update-additional-info.d.ts +1 -0
  61. package/dist/commands/data/files/update-additional-info.js +26 -0
  62. package/dist/commands/data/files/upload-to-local-storage.d.ts +5 -0
  63. package/dist/commands/data/files/upload-to-local-storage.js +55 -0
  64. package/dist/commands/data/files/upload-to-url.d.ts +8 -0
  65. package/dist/commands/data/files/upload-to-url.js +36 -0
  66. package/dist/commands/data/files/upload.d.ts +7 -0
  67. package/dist/commands/data/files/upload.js +145 -0
  68. package/dist/commands/data/rules/policy/delete.d.ts +1 -0
  69. package/dist/commands/data/rules/policy/delete.js +24 -0
  70. package/dist/commands/data/rules/policy/get.d.ts +1 -0
  71. package/dist/commands/data/rules/policy/get.js +17 -0
  72. package/dist/commands/data/schema/aggregation.d.ts +1 -0
  73. package/dist/commands/data/schema/aggregation.js +26 -0
  74. package/dist/commands/data/schema/change-logs.d.ts +1 -0
  75. package/dist/commands/data/schema/change-logs.js +14 -0
  76. package/dist/commands/data/schema/delete.d.ts +1 -0
  77. package/dist/commands/data/schema/delete.js +24 -0
  78. package/dist/commands/data/schema/fields.d.ts +5 -0
  79. package/dist/commands/data/schema/fields.js +39 -0
  80. package/dist/commands/data/schema/get-by-name.d.ts +1 -0
  81. package/dist/commands/data/schema/get-by-name.js +17 -0
  82. package/dist/commands/data/schema/get.d.ts +1 -0
  83. package/dist/commands/data/schema/get.js +17 -0
  84. package/dist/commands/data/schema/info/list.d.ts +1 -0
  85. package/dist/commands/data/schema/info/list.js +15 -0
  86. package/dist/commands/data/schema/info/save.d.ts +1 -0
  87. package/dist/commands/data/schema/info/save.js +34 -0
  88. package/dist/commands/data/schema/info/update.d.ts +1 -0
  89. package/dist/commands/data/schema/info/update.js +35 -0
  90. package/dist/commands/data/sync.d.ts +7 -0
  91. package/dist/commands/data/sync.js +46 -0
  92. package/dist/commands/data/validation/by-schema-field.d.ts +1 -0
  93. package/dist/commands/data/validation/by-schema-field.js +18 -0
  94. package/dist/commands/data/validation/by-schema.d.ts +1 -0
  95. package/dist/commands/data/validation/by-schema.js +17 -0
  96. package/dist/commands/data/validation/delete.d.ts +1 -0
  97. package/dist/commands/data/validation/delete.js +24 -0
  98. package/dist/commands/data/validation/get.d.ts +1 -0
  99. package/dist/commands/data/validation/get.js +17 -0
  100. package/dist/commands/data/validation/list.d.ts +1 -0
  101. package/dist/commands/data/validation/list.js +25 -0
  102. package/dist/commands/data/validation/save.d.ts +6 -0
  103. package/dist/commands/data/validation/save.js +44 -0
  104. package/dist/commands/deselect.js +1 -1
  105. package/dist/commands/iam/email/available.d.ts +1 -0
  106. package/dist/commands/iam/email/available.js +17 -0
  107. package/dist/commands/iam/organizations/config-get.d.ts +1 -0
  108. package/dist/commands/iam/organizations/config-get.js +14 -0
  109. package/dist/commands/iam/organizations/config-save.d.ts +1 -0
  110. package/dist/commands/iam/organizations/config-save.js +34 -0
  111. package/dist/commands/iam/organizations/create.d.ts +1 -0
  112. package/dist/commands/iam/organizations/create.js +37 -0
  113. package/dist/commands/iam/organizations/get.d.ts +1 -0
  114. package/dist/commands/iam/organizations/get.js +16 -0
  115. package/dist/commands/iam/organizations/list.d.ts +1 -0
  116. package/dist/commands/iam/organizations/list.js +26 -0
  117. package/dist/commands/iam/organizations/my.d.ts +1 -0
  118. package/dist/commands/iam/organizations/my.js +14 -0
  119. package/dist/commands/iam/organizations/update.d.ts +1 -0
  120. package/dist/commands/iam/organizations/update.js +39 -0
  121. package/dist/commands/iam/permissions/by-severity.d.ts +1 -0
  122. package/dist/commands/iam/permissions/by-severity.js +14 -0
  123. package/dist/commands/iam/permissions/create.d.ts +1 -0
  124. package/dist/commands/iam/permissions/create.js +39 -0
  125. package/dist/commands/iam/permissions/get.d.ts +1 -0
  126. package/dist/commands/iam/permissions/get.js +16 -0
  127. package/dist/commands/iam/permissions/list.d.ts +1 -0
  128. package/dist/commands/iam/permissions/list.js +41 -0
  129. package/dist/commands/iam/permissions/update.d.ts +1 -0
  130. package/dist/commands/iam/permissions/update.js +40 -0
  131. package/dist/commands/iam/resources/features.d.ts +1 -0
  132. package/dist/commands/iam/resources/features.js +19 -0
  133. package/dist/commands/iam/resources/groups.d.ts +1 -0
  134. package/dist/commands/iam/resources/groups.js +14 -0
  135. package/dist/commands/iam/roles/assign-permissions.d.ts +1 -0
  136. package/dist/commands/iam/roles/assign-permissions.js +33 -0
  137. package/dist/commands/iam/roles/assignable.d.ts +1 -0
  138. package/dist/commands/iam/roles/assignable.js +14 -0
  139. package/dist/commands/iam/roles/create.d.ts +1 -0
  140. package/dist/commands/iam/roles/create.js +35 -0
  141. package/dist/commands/iam/roles/get.d.ts +1 -0
  142. package/dist/commands/iam/roles/get.js +16 -0
  143. package/dist/commands/iam/roles/list.d.ts +1 -0
  144. package/dist/commands/iam/roles/list.js +34 -0
  145. package/dist/commands/iam/roles/update.d.ts +1 -0
  146. package/dist/commands/iam/roles/update.js +35 -0
  147. package/dist/commands/iam/signup-settings/get.d.ts +1 -0
  148. package/dist/commands/iam/signup-settings/get.js +14 -0
  149. package/dist/commands/iam/signup-settings/save.d.ts +1 -0
  150. package/dist/commands/iam/signup-settings/save.js +32 -0
  151. package/dist/commands/iam/users/access-grant.d.ts +1 -0
  152. package/dist/commands/iam/users/access-grant.js +32 -0
  153. package/dist/commands/iam/users/access-revoke.d.ts +1 -0
  154. package/dist/commands/iam/users/access-revoke.js +24 -0
  155. package/dist/commands/iam/users/activate.d.ts +1 -0
  156. package/dist/commands/iam/users/activate.js +24 -0
  157. package/dist/commands/iam/users/create.d.ts +1 -0
  158. package/dist/commands/iam/users/create.js +39 -0
  159. package/dist/commands/iam/users/deactivate.d.ts +1 -0
  160. package/dist/commands/iam/users/deactivate.js +24 -0
  161. package/dist/commands/iam/users/exists.d.ts +1 -0
  162. package/dist/commands/iam/users/exists.js +17 -0
  163. package/dist/commands/iam/users/get.d.ts +1 -0
  164. package/dist/commands/iam/users/get.js +17 -0
  165. package/dist/commands/iam/users/list.d.ts +1 -0
  166. package/dist/commands/iam/users/list.js +34 -0
  167. package/dist/commands/iam/users/update.d.ts +1 -0
  168. package/dist/commands/iam/users/update.js +35 -0
  169. package/dist/commands/init.js +0 -12
  170. package/dist/commands/localization/assistant/translation-suggestion.d.ts +1 -0
  171. package/dist/commands/localization/assistant/translation-suggestion.js +35 -0
  172. package/dist/commands/localization/config/get-webhook.d.ts +1 -0
  173. package/dist/commands/localization/config/get-webhook.js +14 -0
  174. package/dist/commands/localization/config/save-webhook.d.ts +1 -0
  175. package/dist/commands/localization/config/save-webhook.js +47 -0
  176. package/dist/commands/localization/glossary/delete.d.ts +1 -0
  177. package/dist/commands/localization/glossary/delete.js +24 -0
  178. package/dist/commands/localization/glossary/get.d.ts +1 -0
  179. package/dist/commands/localization/glossary/get.js +17 -0
  180. package/dist/commands/localization/glossary/list.d.ts +1 -0
  181. package/dist/commands/localization/glossary/list.js +22 -0
  182. package/dist/commands/localization/glossary/save.d.ts +1 -0
  183. package/dist/commands/localization/glossary/save.js +38 -0
  184. package/dist/commands/localization/glossary/suggested.d.ts +1 -0
  185. package/dist/commands/localization/glossary/suggested.js +20 -0
  186. package/dist/commands/localization/key/delete-keys.d.ts +1 -0
  187. package/dist/commands/localization/key/delete-keys.js +28 -0
  188. package/dist/commands/localization/key/delete.d.ts +1 -0
  189. package/dist/commands/localization/key/delete.js +24 -0
  190. package/dist/commands/localization/key/generate-uilm-file.d.ts +1 -0
  191. package/dist/commands/localization/key/generate-uilm-file.js +29 -0
  192. package/dist/commands/localization/key/get-by-names.d.ts +1 -0
  193. package/dist/commands/localization/key/get-by-names.js +24 -0
  194. package/dist/commands/localization/key/get-language-file-generation-history.d.ts +1 -0
  195. package/dist/commands/localization/key/get-language-file-generation-history.js +19 -0
  196. package/dist/commands/localization/key/get-localization-timeline.d.ts +1 -0
  197. package/dist/commands/localization/key/get-localization-timeline.js +28 -0
  198. package/dist/commands/localization/key/get-timeline-by-operation-id.d.ts +1 -0
  199. package/dist/commands/localization/key/get-timeline-by-operation-id.js +21 -0
  200. package/dist/commands/localization/key/get-timeline.d.ts +1 -0
  201. package/dist/commands/localization/key/get-timeline.js +25 -0
  202. package/dist/commands/localization/key/get-uilm-exported-files.d.ts +1 -0
  203. package/dist/commands/localization/key/get-uilm-exported-files.js +22 -0
  204. package/dist/commands/localization/key/get-uilm-file.d.ts +1 -0
  205. package/dist/commands/localization/key/get-uilm-file.js +18 -0
  206. package/dist/commands/localization/key/get.d.ts +1 -0
  207. package/dist/commands/localization/key/get.js +17 -0
  208. package/dist/commands/localization/key/list.d.ts +1 -0
  209. package/dist/commands/localization/key/list.js +39 -0
  210. package/dist/commands/localization/key/rollback.d.ts +1 -0
  211. package/dist/commands/localization/key/rollback.js +24 -0
  212. package/dist/commands/localization/key/save.d.ts +1 -0
  213. package/dist/commands/localization/key/save.js +44 -0
  214. package/dist/commands/localization/key/translate-all.d.ts +1 -0
  215. package/dist/commands/localization/key/translate-all.js +30 -0
  216. package/dist/commands/localization/key/translate-and-export.d.ts +7 -0
  217. package/dist/commands/localization/key/translate-and-export.js +132 -0
  218. package/dist/commands/localization/key/translate-key.d.ts +1 -0
  219. package/dist/commands/localization/key/translate-key.js +27 -0
  220. package/dist/commands/localization/key/translate-keys.d.ts +1 -0
  221. package/dist/commands/localization/key/translate-keys.js +31 -0
  222. package/dist/commands/localization/key/uilm-export.d.ts +1 -0
  223. package/dist/commands/localization/key/uilm-export.js +33 -0
  224. package/dist/commands/localization/key/uilm-import.d.ts +1 -0
  225. package/dist/commands/localization/key/uilm-import.js +26 -0
  226. package/dist/commands/localization/language/delete.d.ts +1 -0
  227. package/dist/commands/localization/language/delete.js +24 -0
  228. package/dist/commands/localization/language/list-for-tenant.d.ts +1 -0
  229. package/dist/commands/localization/language/list-for-tenant.js +14 -0
  230. package/dist/commands/localization/language/list.d.ts +1 -0
  231. package/dist/commands/localization/language/list.js +14 -0
  232. package/dist/commands/localization/language/save.d.ts +1 -0
  233. package/dist/commands/localization/language/save.js +36 -0
  234. package/dist/commands/localization/language/set-default.d.ts +1 -0
  235. package/dist/commands/localization/language/set-default.js +24 -0
  236. package/dist/commands/localization/module/list-for-tenant.d.ts +1 -0
  237. package/dist/commands/localization/module/list-for-tenant.js +14 -0
  238. package/dist/commands/localization/module/list.d.ts +1 -0
  239. package/dist/commands/localization/module/list.js +14 -0
  240. package/dist/commands/localization/module/save.d.ts +1 -0
  241. package/dist/commands/localization/module/save.js +32 -0
  242. package/dist/commands/localization/module/tag-glossary.d.ts +1 -0
  243. package/dist/commands/localization/module/tag-glossary.js +28 -0
  244. package/dist/commands/mail/config/delete.d.ts +1 -0
  245. package/dist/commands/mail/config/delete.js +24 -0
  246. package/dist/commands/mail/config/duplicate.d.ts +1 -0
  247. package/dist/commands/mail/config/duplicate.js +24 -0
  248. package/dist/commands/mail/config/get.d.ts +1 -0
  249. package/dist/commands/mail/config/get.js +17 -0
  250. package/dist/commands/mail/config/list.d.ts +1 -0
  251. package/dist/commands/mail/config/list.js +14 -0
  252. package/dist/commands/mail/config/save.d.ts +1 -0
  253. package/dist/commands/mail/config/save.js +44 -0
  254. package/dist/commands/mail/mailbox/get.d.ts +1 -0
  255. package/dist/commands/mail/mailbox/get.js +17 -0
  256. package/dist/commands/mail/mailbox/list.d.ts +1 -0
  257. package/dist/commands/mail/mailbox/list.js +24 -0
  258. package/dist/commands/mail/send.d.ts +1 -0
  259. package/dist/commands/mail/send.js +40 -0
  260. package/dist/commands/mail/sendtoany.d.ts +1 -0
  261. package/dist/commands/mail/sendtoany.js +41 -0
  262. package/dist/commands/mail/template/clone.d.ts +1 -0
  263. package/dist/commands/mail/template/clone.js +33 -0
  264. package/dist/commands/mail/template/delete.d.ts +1 -0
  265. package/dist/commands/mail/template/delete.js +24 -0
  266. package/dist/commands/mail/template/get.d.ts +1 -0
  267. package/dist/commands/mail/template/get.js +17 -0
  268. package/dist/commands/mail/template/list.d.ts +1 -0
  269. package/dist/commands/mail/template/list.js +24 -0
  270. package/dist/commands/mail/template/save.d.ts +1 -0
  271. package/dist/commands/mail/template/save.js +37 -0
  272. package/dist/commands/mfa/backup-codes/generate.d.ts +1 -0
  273. package/dist/commands/mfa/backup-codes/generate.js +22 -0
  274. package/dist/commands/mfa/backup-codes/list.d.ts +1 -0
  275. package/dist/commands/mfa/backup-codes/list.js +14 -0
  276. package/dist/commands/mfa/backup-codes/use.d.ts +1 -0
  277. package/dist/commands/mfa/backup-codes/use.js +18 -0
  278. package/dist/commands/mfa/config-get.d.ts +1 -0
  279. package/dist/commands/mfa/config-get.js +14 -0
  280. package/dist/commands/mfa/config-save.d.ts +1 -0
  281. package/dist/commands/mfa/config-save.js +36 -0
  282. package/dist/commands/mfa/disable.d.ts +1 -0
  283. package/dist/commands/mfa/disable.js +22 -0
  284. package/dist/commands/mfa/generate.d.ts +1 -0
  285. package/dist/commands/mfa/generate.js +22 -0
  286. package/dist/commands/mfa/method-set.d.ts +1 -0
  287. package/dist/commands/mfa/method-set.js +20 -0
  288. package/dist/commands/mfa/resend.d.ts +1 -0
  289. package/dist/commands/mfa/resend.js +20 -0
  290. package/dist/commands/mfa/totp-enable.d.ts +10 -0
  291. package/dist/commands/mfa/totp-enable.js +52 -0
  292. package/dist/commands/mfa/totp-setup.d.ts +1 -0
  293. package/dist/commands/mfa/totp-setup.js +15 -0
  294. package/dist/commands/mfa/totp-verify-setup.d.ts +1 -0
  295. package/dist/commands/mfa/totp-verify-setup.js +17 -0
  296. package/dist/commands/mfa/verify.d.ts +1 -0
  297. package/dist/commands/mfa/verify.js +26 -0
  298. package/dist/commands/new/web.js +115 -15
  299. package/dist/commands/notification/delete.d.ts +1 -0
  300. package/dist/commands/notification/delete.js +24 -0
  301. package/dist/commands/notification/get.d.ts +1 -0
  302. package/dist/commands/notification/get.js +17 -0
  303. package/dist/commands/notification/list.d.ts +1 -0
  304. package/dist/commands/notification/list.js +22 -0
  305. package/dist/commands/notification/save.d.ts +1 -0
  306. package/dist/commands/notification/save.js +34 -0
  307. package/dist/commands/notifier/list.d.ts +1 -0
  308. package/dist/commands/notifier/list.js +23 -0
  309. package/dist/commands/notifier/mark-all-read.d.ts +1 -0
  310. package/dist/commands/notifier/mark-all-read.js +23 -0
  311. package/dist/commands/notifier/mark-read.d.ts +1 -0
  312. package/dist/commands/notifier/mark-read.js +24 -0
  313. package/dist/commands/notifier/notify.d.ts +1 -0
  314. package/dist/commands/notifier/notify.js +39 -0
  315. package/dist/commands/notifier/unread.d.ts +1 -0
  316. package/dist/commands/notifier/unread.js +25 -0
  317. package/dist/commands/projects/get.js +16 -14
  318. package/dist/commands/projects/list.js +2 -7
  319. package/dist/commands/release/builds/list.js +21 -3
  320. package/dist/commands/release/deploy.js +121 -30
  321. package/dist/commands/sdk/client.d.ts +1 -0
  322. package/dist/commands/sdk/client.js +99 -0
  323. package/dist/commands/secrets/get.d.ts +1 -0
  324. package/dist/commands/secrets/get.js +21 -0
  325. package/dist/commands/secrets/save.d.ts +1 -0
  326. package/dist/commands/secrets/save.js +51 -0
  327. package/dist/commands/skill/add.d.ts +1 -0
  328. package/dist/commands/skill/add.js +19 -0
  329. package/dist/commands/skill/list.d.ts +1 -0
  330. package/dist/commands/skill/list.js +15 -0
  331. package/dist/commands/skill/show.d.ts +1 -0
  332. package/dist/commands/skill/show.js +15 -0
  333. package/dist/commands/storage/config/delete.d.ts +1 -0
  334. package/dist/commands/storage/config/delete.js +24 -0
  335. package/dist/commands/storage/config/get.d.ts +1 -0
  336. package/dist/commands/storage/config/get.js +17 -0
  337. package/dist/commands/storage/config/list.d.ts +1 -0
  338. package/dist/commands/storage/config/list.js +14 -0
  339. package/dist/commands/storage/config/save.d.ts +1 -0
  340. package/dist/commands/storage/config/save.js +49 -0
  341. package/dist/index.js +950 -152
  342. package/dist/lib/api.d.ts +1 -1
  343. package/dist/lib/api.js +39 -21
  344. package/dist/lib/args.d.ts +3 -0
  345. package/dist/lib/args.js +15 -0
  346. package/dist/lib/auth.d.ts +5 -2
  347. package/dist/lib/auth.js +23 -35
  348. package/dist/lib/config.js +7 -7
  349. package/dist/lib/json-flag.d.ts +17 -0
  350. package/dist/lib/json-flag.js +55 -0
  351. package/dist/lib/project-info.d.ts +33 -0
  352. package/dist/lib/project-info.js +39 -0
  353. package/dist/lib/prompt.d.ts +2 -0
  354. package/dist/lib/prompt.js +28 -0
  355. package/dist/lib/scaffold-web/dashboard.js +1 -1
  356. package/dist/lib/scaffold-web/root-files.js +1 -1
  357. package/dist/lib/secret-store.js +7 -7
  358. package/dist/lib/skills.d.ts +17 -0
  359. package/dist/lib/skills.js +69 -0
  360. package/dist/lib/token.d.ts +2 -0
  361. package/dist/lib/token.js +12 -0
  362. package/dist/lib/workspace.d.ts +0 -4
  363. package/dist/lib/workspace.js +1 -2
  364. package/dist/skills/blocks-data-gateway-configuration/SKILL.md +204 -0
  365. package/dist/skills/blocks-data-gateway-crud/SKILL.md +223 -0
  366. package/dist/skills/blocks-data-storage/SKILL.md +161 -0
  367. package/dist/skills/blocks-frontend-local-https/SKILL.md +100 -0
  368. package/dist/skills/blocks-iam-access-control/SKILL.md +49 -0
  369. package/dist/skills/blocks-iam-access-control/flows/feature-gating.md +38 -0
  370. package/dist/skills/blocks-iam-access-control/flows/manage-roles-permissions.md +109 -0
  371. package/dist/skills/blocks-iam-account/SKILL.md +169 -0
  372. package/dist/skills/blocks-iam-mfa/SKILL.md +124 -0
  373. package/dist/skills/blocks-iam-organizations/SKILL.md +43 -0
  374. package/dist/skills/blocks-iam-organizations/flows/admin-mutations.md +89 -0
  375. package/dist/skills/blocks-iam-organizations/flows/read-and-switch.md +57 -0
  376. package/dist/skills/blocks-iam-sso-oidc-configuration/SKILL.md +89 -0
  377. package/dist/skills/blocks-iam-sso-oidc-implementation/SKILL.md +80 -0
  378. package/dist/skills/blocks-iam-users/SKILL.md +131 -0
  379. package/dist/skills/blocks-localization-configuration/SKILL.md +149 -0
  380. package/dist/skills/blocks-localization-implementation/SKILL.md +63 -0
  381. package/dist/skills/blocks-mail/SKILL.md +95 -0
  382. package/dist/skills/blocks-notification/SKILL.md +69 -0
  383. package/dist/skills/blocks-notifier/SKILL.md +107 -0
  384. package/dist/skills/blocks-onboarding/SKILL.md +78 -0
  385. package/dist/skills/blocks-release-deployment/SKILL.md +81 -0
  386. package/dist/skills/blocks-secrets/SKILL.md +81 -0
  387. package/dist/skills/blocks-storage-configuration/SKILL.md +93 -0
  388. package/dist/skills/lint.mjs +168 -0
  389. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -4,30 +4,411 @@ import { authStatus } from "./commands/auth/status.js";
4
4
  import { deselectProject } from "./commands/deselect.js";
5
5
  import { doctor } from "./commands/doctor.js";
6
6
  import { dataReload } from "./commands/data/reload.js";
7
+ import { dataSync } from "./commands/data/sync.js";
7
8
  import { dataValidate } from "./commands/data/validate.js";
9
+ import { dataConfigCreate } from "./commands/data/config/create.js";
10
+ import { dataConfigGet } from "./commands/data/config/get.js";
11
+ import { dataConfigUpdate } from "./commands/data/config/update.js";
8
12
  import { dataRulesDeploy } from "./commands/data/rules/deploy.js";
9
13
  import { dataRulesPull } from "./commands/data/rules/pull.js";
14
+ import { dataRulesPolicyDelete } from "./commands/data/rules/policy/delete.js";
15
+ import { dataRulesPolicyGet } from "./commands/data/rules/policy/get.js";
10
16
  import { dataSchemaList } from "./commands/data/schema/list.js";
11
17
  import { dataSchemaPull } from "./commands/data/schema/pull.js";
12
18
  import { dataSchemaPush } from "./commands/data/schema/push.js";
19
+ import { dataSchemaAggregation } from "./commands/data/schema/aggregation.js";
20
+ import { dataSchemaChangeLogs } from "./commands/data/schema/change-logs.js";
21
+ import { dataSchemaDelete } from "./commands/data/schema/delete.js";
22
+ import { dataSchemaFields } from "./commands/data/schema/fields.js";
23
+ import { dataSchemaGet } from "./commands/data/schema/get.js";
24
+ import { dataSchemaGetByName } from "./commands/data/schema/get-by-name.js";
25
+ import { dataSchemaInfoList } from "./commands/data/schema/info/list.js";
26
+ import { dataSchemaInfoSave } from "./commands/data/schema/info/save.js";
27
+ import { dataSchemaInfoUpdate } from "./commands/data/schema/info/update.js";
28
+ import { dataValidationBySchema } from "./commands/data/validation/by-schema.js";
29
+ import { dataValidationBySchemaField } from "./commands/data/validation/by-schema-field.js";
30
+ import { dataValidationDelete } from "./commands/data/validation/delete.js";
31
+ import { dataValidationGet } from "./commands/data/validation/get.js";
32
+ import { dataValidationList } from "./commands/data/validation/list.js";
33
+ import { dataValidationSave } from "./commands/data/validation/save.js";
34
+ import { dataFilesCreateFolder } from "./commands/data/files/create-folder.js";
35
+ import { dataFilesDelete } from "./commands/data/files/delete.js";
36
+ import { dataFilesDeleteFolder } from "./commands/data/files/delete-folder.js";
37
+ import { dataFilesDmsList } from "./commands/data/files/dms-list.js";
38
+ import { dataFilesDmsUpload } from "./commands/data/files/dms-upload.js";
39
+ import { dataFilesGet } from "./commands/data/files/get.js";
40
+ import { dataFilesGetMany } from "./commands/data/files/get-many.js";
41
+ import { dataFilesInfo } from "./commands/data/files/info.js";
42
+ import { dataFilesPresignedUploadUrl } from "./commands/data/files/presigned-upload-url.js";
43
+ import { dataFilesUpdateAdditionalInfo } from "./commands/data/files/update-additional-info.js";
44
+ import { dataFilesUpload } from "./commands/data/files/upload.js";
45
+ import { dataFilesUploadToLocalStorage } from "./commands/data/files/upload-to-local-storage.js";
46
+ import { dataFilesUploadToUrl } from "./commands/data/files/upload-to-url.js";
13
47
  import { iamMe } from "./commands/iam/me.js";
14
48
  import { init } from "./commands/init.js";
49
+ import { localizationAssistantTranslationSuggestion } from "./commands/localization/assistant/translation-suggestion.js";
50
+ import { localizationConfigGetWebhook } from "./commands/localization/config/get-webhook.js";
51
+ import { localizationConfigSaveWebhook } from "./commands/localization/config/save-webhook.js";
52
+ import { localizationGlossaryDelete } from "./commands/localization/glossary/delete.js";
53
+ import { localizationGlossaryGet } from "./commands/localization/glossary/get.js";
54
+ import { localizationGlossaryList } from "./commands/localization/glossary/list.js";
55
+ import { localizationGlossarySave } from "./commands/localization/glossary/save.js";
56
+ import { localizationGlossarySuggested } from "./commands/localization/glossary/suggested.js";
57
+ import { localizationKeyDelete } from "./commands/localization/key/delete.js";
58
+ import { localizationKeyDeleteKeys } from "./commands/localization/key/delete-keys.js";
59
+ import { localizationKeyGenerateUilmFile } from "./commands/localization/key/generate-uilm-file.js";
60
+ import { localizationKeyGet } from "./commands/localization/key/get.js";
61
+ import { localizationKeyGetByNames } from "./commands/localization/key/get-by-names.js";
62
+ import { localizationKeyGetLanguageFileGenerationHistory } from "./commands/localization/key/get-language-file-generation-history.js";
63
+ import { localizationKeyGetLocalizationTimeline } from "./commands/localization/key/get-localization-timeline.js";
64
+ import { localizationKeyGetTimeline } from "./commands/localization/key/get-timeline.js";
65
+ import { localizationKeyGetTimelineByOperationId } from "./commands/localization/key/get-timeline-by-operation-id.js";
66
+ import { localizationKeyGetUilmExportedFiles } from "./commands/localization/key/get-uilm-exported-files.js";
67
+ import { localizationKeyGetUilmFile } from "./commands/localization/key/get-uilm-file.js";
68
+ import { localizationKeyList } from "./commands/localization/key/list.js";
69
+ import { localizationKeyRollback } from "./commands/localization/key/rollback.js";
70
+ import { localizationKeySave } from "./commands/localization/key/save.js";
71
+ import { localizationKeyTranslateAll } from "./commands/localization/key/translate-all.js";
72
+ import { localizationKeyTranslateAndExport } from "./commands/localization/key/translate-and-export.js";
73
+ import { localizationKeyTranslateKey } from "./commands/localization/key/translate-key.js";
74
+ import { localizationKeyTranslateKeys } from "./commands/localization/key/translate-keys.js";
75
+ import { localizationKeyUilmExport } from "./commands/localization/key/uilm-export.js";
76
+ import { localizationKeyUilmImport } from "./commands/localization/key/uilm-import.js";
77
+ import { localizationLanguageDelete } from "./commands/localization/language/delete.js";
78
+ import { localizationLanguageList } from "./commands/localization/language/list.js";
79
+ import { localizationLanguageListForTenant } from "./commands/localization/language/list-for-tenant.js";
80
+ import { localizationLanguageSave } from "./commands/localization/language/save.js";
81
+ import { localizationLanguageSetDefault } from "./commands/localization/language/set-default.js";
82
+ import { localizationModuleList } from "./commands/localization/module/list.js";
83
+ import { localizationModuleListForTenant } from "./commands/localization/module/list-for-tenant.js";
84
+ import { localizationModuleSave } from "./commands/localization/module/save.js";
85
+ import { localizationModuleTagGlossary } from "./commands/localization/module/tag-glossary.js";
15
86
  import { localizationPull } from "./commands/localization/pull.js";
16
87
  import { localizationPush } from "./commands/localization/push.js";
17
88
  import { localizationValidate } from "./commands/localization/validate.js";
18
89
  import { login } from "./commands/login.js";
19
90
  import { logout } from "./commands/logout.js";
20
91
  import { newWeb } from "./commands/new/web.js";
21
- import { createProject } from "./commands/projects/create.js";
92
+ // import { createProject } from "./commands/projects/create.js"; // disabled for now
22
93
  import { getProject } from "./commands/projects/get.js";
23
94
  import { listProjects } from "./commands/projects/list.js";
24
95
  import { releaseBuildsGet } from "./commands/release/builds/get.js";
25
96
  import { releaseBuildsList } from "./commands/release/builds/list.js";
26
97
  import { releaseDeploy } from "./commands/release/deploy.js";
27
98
  import { releaseStatus } from "./commands/release/status.js";
99
+ import { sdkClient } from "./commands/sdk/client.js";
100
+ import { skillAdd } from "./commands/skill/add.js";
101
+ import { skillList } from "./commands/skill/list.js";
102
+ import { skillShow } from "./commands/skill/show.js";
28
103
  import { useProject } from "./commands/use.js";
104
+ import { authClientCredentialsDelete } from "./commands/auth/client-credentials/delete.js";
105
+ import { authClientCredentialsList } from "./commands/auth/client-credentials/list.js";
106
+ import { authClientCredentialsSave } from "./commands/auth/client-credentials/save.js";
107
+ import { authConfigGet } from "./commands/auth/config/get.js";
108
+ import { authConfigSave } from "./commands/auth/config/save.js";
109
+ import { authIdpCreate } from "./commands/auth/idp/create.js";
110
+ import { authIdpDelete } from "./commands/auth/idp/delete.js";
111
+ import { authIdpGet } from "./commands/auth/idp/get.js";
112
+ import { authIdpList } from "./commands/auth/idp/list.js";
113
+ import { authIdpStatus } from "./commands/auth/idp/status.js";
114
+ import { authIdpUpdate } from "./commands/auth/idp/update.js";
115
+ import { authOidcClientsDelete } from "./commands/auth/oidc-clients/delete.js";
116
+ import { authOidcClientsGet } from "./commands/auth/oidc-clients/get.js";
117
+ import { authOidcClientsList } from "./commands/auth/oidc-clients/list.js";
118
+ import { authOidcClientsRotateSecret } from "./commands/auth/oidc-clients/rotate-secret.js";
119
+ import { authOidcClientsSave } from "./commands/auth/oidc-clients/save.js";
120
+ import { iamEmailAvailable } from "./commands/iam/email/available.js";
121
+ import { iamOrganizationsConfigGet } from "./commands/iam/organizations/config-get.js";
122
+ import { iamOrganizationsConfigSave } from "./commands/iam/organizations/config-save.js";
123
+ import { iamOrganizationsCreate } from "./commands/iam/organizations/create.js";
124
+ import { iamOrganizationsGet } from "./commands/iam/organizations/get.js";
125
+ import { iamOrganizationsList } from "./commands/iam/organizations/list.js";
126
+ import { iamOrganizationsMy } from "./commands/iam/organizations/my.js";
127
+ import { iamOrganizationsUpdate } from "./commands/iam/organizations/update.js";
128
+ import { iamPermissionsBySeverity } from "./commands/iam/permissions/by-severity.js";
129
+ import { iamPermissionsCreate } from "./commands/iam/permissions/create.js";
130
+ import { iamPermissionsGet } from "./commands/iam/permissions/get.js";
131
+ import { iamPermissionsList } from "./commands/iam/permissions/list.js";
132
+ import { iamPermissionsUpdate } from "./commands/iam/permissions/update.js";
133
+ import { iamResourcesFeatures } from "./commands/iam/resources/features.js";
134
+ import { iamResourcesGroups } from "./commands/iam/resources/groups.js";
135
+ import { iamRolesAssignPermissions } from "./commands/iam/roles/assign-permissions.js";
136
+ import { iamRolesAssignable } from "./commands/iam/roles/assignable.js";
137
+ import { iamRolesCreate } from "./commands/iam/roles/create.js";
138
+ import { iamRolesGet } from "./commands/iam/roles/get.js";
139
+ import { iamRolesList } from "./commands/iam/roles/list.js";
140
+ import { iamRolesUpdate } from "./commands/iam/roles/update.js";
141
+ import { iamSignupSettingsGet } from "./commands/iam/signup-settings/get.js";
142
+ import { iamSignupSettingsSave } from "./commands/iam/signup-settings/save.js";
143
+ import { iamUsersAccessGrant } from "./commands/iam/users/access-grant.js";
144
+ import { iamUsersAccessRevoke } from "./commands/iam/users/access-revoke.js";
145
+ import { iamUsersActivate } from "./commands/iam/users/activate.js";
146
+ import { iamUsersCreate } from "./commands/iam/users/create.js";
147
+ import { iamUsersDeactivate } from "./commands/iam/users/deactivate.js";
148
+ import { iamUsersExists } from "./commands/iam/users/exists.js";
149
+ import { iamUsersGet } from "./commands/iam/users/get.js";
150
+ import { iamUsersList } from "./commands/iam/users/list.js";
151
+ import { iamUsersUpdate } from "./commands/iam/users/update.js";
152
+ import { mailConfigDelete } from "./commands/mail/config/delete.js";
153
+ import { mailConfigDuplicate } from "./commands/mail/config/duplicate.js";
154
+ import { mailConfigGet } from "./commands/mail/config/get.js";
155
+ import { mailConfigList } from "./commands/mail/config/list.js";
156
+ import { mailConfigSave } from "./commands/mail/config/save.js";
157
+ import { mailMailboxGet } from "./commands/mail/mailbox/get.js";
158
+ import { mailMailboxList } from "./commands/mail/mailbox/list.js";
159
+ import { mailSend } from "./commands/mail/send.js";
160
+ import { mailSendToAny } from "./commands/mail/sendtoany.js";
161
+ import { mailTemplateClone } from "./commands/mail/template/clone.js";
162
+ import { mailTemplateDelete } from "./commands/mail/template/delete.js";
163
+ import { mailTemplateGet } from "./commands/mail/template/get.js";
164
+ import { mailTemplateList } from "./commands/mail/template/list.js";
165
+ import { mailTemplateSave } from "./commands/mail/template/save.js";
166
+ import { mfaBackupCodesGenerate } from "./commands/mfa/backup-codes/generate.js";
167
+ import { mfaBackupCodesList } from "./commands/mfa/backup-codes/list.js";
168
+ import { mfaBackupCodesUse } from "./commands/mfa/backup-codes/use.js";
169
+ import { mfaConfigGet } from "./commands/mfa/config-get.js";
170
+ import { mfaConfigSave } from "./commands/mfa/config-save.js";
171
+ import { mfaDisable } from "./commands/mfa/disable.js";
172
+ import { mfaGenerate } from "./commands/mfa/generate.js";
173
+ import { mfaMethodSet } from "./commands/mfa/method-set.js";
174
+ import { mfaResend } from "./commands/mfa/resend.js";
175
+ import { mfaTotpEnable } from "./commands/mfa/totp-enable.js";
176
+ import { mfaTotpSetup } from "./commands/mfa/totp-setup.js";
177
+ import { mfaTotpVerifySetup } from "./commands/mfa/totp-verify-setup.js";
178
+ import { mfaVerify } from "./commands/mfa/verify.js";
179
+ import { notificationDelete } from "./commands/notification/delete.js";
180
+ import { notificationGet } from "./commands/notification/get.js";
181
+ import { notificationList } from "./commands/notification/list.js";
182
+ import { notificationSave } from "./commands/notification/save.js";
183
+ import { notifierList } from "./commands/notifier/list.js";
184
+ import { notifierMarkAllRead } from "./commands/notifier/mark-all-read.js";
185
+ import { notifierMarkRead } from "./commands/notifier/mark-read.js";
186
+ import { notifierNotify } from "./commands/notifier/notify.js";
187
+ import { notifierUnread } from "./commands/notifier/unread.js";
188
+ import { secretsGet } from "./commands/secrets/get.js";
189
+ import { secretsSave } from "./commands/secrets/save.js";
190
+ import { storageConfigDelete } from "./commands/storage/config/delete.js";
191
+ import { storageConfigGet } from "./commands/storage/config/get.js";
192
+ import { storageConfigList } from "./commands/storage/config/list.js";
193
+ import { storageConfigSave } from "./commands/storage/config/save.js";
29
194
  import { CliActionableError } from "./lib/errors.js";
30
- const [command, subcommand, ...rest] = process.argv.slice(2);
195
+ // Every command below is reachable with either colon or space separators,
196
+ // e.g. "auth:status" and "auth status" both resolve to authStatus. Keys are
197
+ // the canonical colon-joined form; the deepest is 4 segments
198
+ // (e.g. iam:users:access:grant).
199
+ const commands = {
200
+ "auth:status": authStatus,
201
+ "auth:refresh": authRefresh,
202
+ "doctor": doctor,
203
+ "init": () => init(),
204
+ "login": login,
205
+ "logout": logout,
206
+ "projects:list": listProjects,
207
+ "use": useProject,
208
+ "deselect": deselectProject,
209
+ "data:schema:list": dataSchemaList,
210
+ "data:schema:pull": dataSchemaPull,
211
+ "data:schema:push": dataSchemaPush,
212
+ "data:rules:pull": dataRulesPull,
213
+ "data:rules:deploy": dataRulesDeploy,
214
+ "data:reload": dataReload,
215
+ "data:sync": dataSync,
216
+ "data:validate": dataValidate,
217
+ "data:config:get": dataConfigGet,
218
+ "data:config:create": dataConfigCreate,
219
+ "data:config:update": dataConfigUpdate,
220
+ "data:schema:get": dataSchemaGet,
221
+ "data:schema:get-by-name": dataSchemaGetByName,
222
+ "data:schema:aggregation": dataSchemaAggregation,
223
+ "data:schema:change-logs": dataSchemaChangeLogs,
224
+ "data:schema:delete": dataSchemaDelete,
225
+ "data:schema:fields": dataSchemaFields,
226
+ "data:schema:info:list": dataSchemaInfoList,
227
+ "data:schema:info:save": dataSchemaInfoSave,
228
+ "data:schema:info:update": dataSchemaInfoUpdate,
229
+ "data:rules:policy:get": dataRulesPolicyGet,
230
+ "data:rules:policy:delete": dataRulesPolicyDelete,
231
+ "data:validation:list": dataValidationList,
232
+ "data:validation:get": dataValidationGet,
233
+ "data:validation:by-schema": dataValidationBySchema,
234
+ "data:validation:by-schema-field": dataValidationBySchemaField,
235
+ "data:validation:save": dataValidationSave,
236
+ "data:validation:delete": dataValidationDelete,
237
+ "data:files:get": dataFilesGet,
238
+ "data:files:get-many": dataFilesGetMany,
239
+ "data:files:info": dataFilesInfo,
240
+ "data:files:upload": dataFilesUpload,
241
+ "data:files:presigned-upload-url": dataFilesPresignedUploadUrl,
242
+ "data:files:upload-to-url": dataFilesUploadToUrl,
243
+ "data:files:upload-to-local-storage": dataFilesUploadToLocalStorage,
244
+ "data:files:update-additional-info": dataFilesUpdateAdditionalInfo,
245
+ "data:files:delete": dataFilesDelete,
246
+ "data:files:dms-list": dataFilesDmsList,
247
+ "data:files:dms-upload": dataFilesDmsUpload,
248
+ "data:files:create-folder": dataFilesCreateFolder,
249
+ "data:files:delete-folder": dataFilesDeleteFolder,
250
+ "localization:validate": localizationValidate,
251
+ "localization:push": localizationPush,
252
+ "localization:pull": localizationPull,
253
+ "localization:assistant:translation-suggestion": localizationAssistantTranslationSuggestion,
254
+ "localization:config:get-webhook": localizationConfigGetWebhook,
255
+ "localization:config:save-webhook": localizationConfigSaveWebhook,
256
+ "localization:glossary:save": localizationGlossarySave,
257
+ "localization:glossary:list": localizationGlossaryList,
258
+ "localization:glossary:get": localizationGlossaryGet,
259
+ "localization:glossary:suggested": localizationGlossarySuggested,
260
+ "localization:glossary:delete": localizationGlossaryDelete,
261
+ "localization:key:save": localizationKeySave,
262
+ "localization:key:list": localizationKeyList,
263
+ "localization:key:get-by-names": localizationKeyGetByNames,
264
+ "localization:key:get-timeline": localizationKeyGetTimeline,
265
+ "localization:key:get-localization-timeline": localizationKeyGetLocalizationTimeline,
266
+ "localization:key:get-timeline-by-operation-id": localizationKeyGetTimelineByOperationId,
267
+ "localization:key:get": localizationKeyGet,
268
+ "localization:key:delete": localizationKeyDelete,
269
+ "localization:key:delete-keys": localizationKeyDeleteKeys,
270
+ "localization:key:get-uilm-file": localizationKeyGetUilmFile,
271
+ "localization:key:generate-uilm-file": localizationKeyGenerateUilmFile,
272
+ "localization:key:translate-all": localizationKeyTranslateAll,
273
+ "localization:key:translate-and-export": localizationKeyTranslateAndExport,
274
+ "localization:key:translate-key": localizationKeyTranslateKey,
275
+ "localization:key:translate-keys": localizationKeyTranslateKeys,
276
+ "localization:key:uilm-import": localizationKeyUilmImport,
277
+ "localization:key:uilm-export": localizationKeyUilmExport,
278
+ "localization:key:get-uilm-exported-files": localizationKeyGetUilmExportedFiles,
279
+ "localization:key:get-language-file-generation-history": localizationKeyGetLanguageFileGenerationHistory,
280
+ "localization:key:rollback": localizationKeyRollback,
281
+ "localization:language:save": localizationLanguageSave,
282
+ "localization:language:list": localizationLanguageList,
283
+ "localization:language:list-for-tenant": localizationLanguageListForTenant,
284
+ "localization:language:delete": localizationLanguageDelete,
285
+ "localization:language:set-default": localizationLanguageSetDefault,
286
+ "localization:module:save": localizationModuleSave,
287
+ "localization:module:list": localizationModuleList,
288
+ "localization:module:list-for-tenant": localizationModuleListForTenant,
289
+ "localization:module:tag-glossary": localizationModuleTagGlossary,
290
+ "release:deploy": releaseDeploy,
291
+ "release:status": releaseStatus,
292
+ "release:builds:list": releaseBuildsList,
293
+ "release:builds:get": releaseBuildsGet,
294
+ "iam:users:list": iamUsersList,
295
+ "iam:users:get": iamUsersGet,
296
+ "iam:users:create": iamUsersCreate,
297
+ "iam:users:update": iamUsersUpdate,
298
+ "iam:users:activate": iamUsersActivate,
299
+ "iam:users:deactivate": iamUsersDeactivate,
300
+ "iam:users:access:grant": iamUsersAccessGrant,
301
+ "iam:users:access:revoke": iamUsersAccessRevoke,
302
+ "iam:users:exists": iamUsersExists,
303
+ "iam:email:available": iamEmailAvailable,
304
+ "iam:roles:list": iamRolesList,
305
+ "iam:roles:get": iamRolesGet,
306
+ "iam:roles:create": iamRolesCreate,
307
+ "iam:roles:update": iamRolesUpdate,
308
+ "iam:roles:assign-permissions": iamRolesAssignPermissions,
309
+ "iam:roles:assignable": iamRolesAssignable,
310
+ "iam:permissions:list": iamPermissionsList,
311
+ "iam:permissions:get": iamPermissionsGet,
312
+ "iam:permissions:create": iamPermissionsCreate,
313
+ "iam:permissions:update": iamPermissionsUpdate,
314
+ "iam:permissions:by-severity": iamPermissionsBySeverity,
315
+ "iam:resources:groups": iamResourcesGroups,
316
+ "iam:resources:features": iamResourcesFeatures,
317
+ "iam:organizations:list": iamOrganizationsList,
318
+ "iam:organizations:get": iamOrganizationsGet,
319
+ "iam:organizations:create": iamOrganizationsCreate,
320
+ "iam:organizations:update": iamOrganizationsUpdate,
321
+ "iam:organizations:my": iamOrganizationsMy,
322
+ "iam:organizations:config:get": iamOrganizationsConfigGet,
323
+ "iam:organizations:config:save": iamOrganizationsConfigSave,
324
+ "iam:signup-settings:get": iamSignupSettingsGet,
325
+ "iam:signup-settings:save": iamSignupSettingsSave,
326
+ "mfa:config:get": mfaConfigGet,
327
+ "mfa:config:save": mfaConfigSave,
328
+ "mfa:totp:setup": mfaTotpSetup,
329
+ "mfa:totp:verify-setup": mfaTotpVerifySetup,
330
+ "mfa:totp:enable": mfaTotpEnable,
331
+ "mfa:generate": mfaGenerate,
332
+ "mfa:resend": mfaResend,
333
+ "mfa:verify": mfaVerify,
334
+ "mfa:method:set": mfaMethodSet,
335
+ "mfa:disable": mfaDisable,
336
+ "mfa:backup-codes:list": mfaBackupCodesList,
337
+ "mfa:backup-codes:generate": mfaBackupCodesGenerate,
338
+ "mfa:backup-codes:use": mfaBackupCodesUse,
339
+ "mail:config:list": mailConfigList,
340
+ "mail:config:get": mailConfigGet,
341
+ "mail:config:save": mailConfigSave,
342
+ "mail:config:delete": mailConfigDelete,
343
+ "mail:config:duplicate": mailConfigDuplicate,
344
+ "mail:template:list": mailTemplateList,
345
+ "mail:template:get": mailTemplateGet,
346
+ "mail:template:save": mailTemplateSave,
347
+ "mail:template:delete": mailTemplateDelete,
348
+ "mail:template:clone": mailTemplateClone,
349
+ "mail:mailbox:list": mailMailboxList,
350
+ "mail:mailbox:get": mailMailboxGet,
351
+ "mail:send": mailSend,
352
+ "mail:sendtoany": mailSendToAny,
353
+ "notification:list": notificationList,
354
+ "notification:get": notificationGet,
355
+ "notification:save": notificationSave,
356
+ "notification:delete": notificationDelete,
357
+ "notifier:notify": notifierNotify,
358
+ "notifier:list": notifierList,
359
+ "notifier:unread": notifierUnread,
360
+ "notifier:mark-read": notifierMarkRead,
361
+ "notifier:mark-all-read": notifierMarkAllRead,
362
+ "secrets:get": secretsGet,
363
+ "secrets:save": secretsSave,
364
+ "storage:config:list": storageConfigList,
365
+ "storage:config:get": storageConfigGet,
366
+ "storage:config:save": storageConfigSave,
367
+ "storage:config:delete": storageConfigDelete,
368
+ "auth:idp:list": authIdpList,
369
+ "auth:idp:get": authIdpGet,
370
+ "auth:idp:create": authIdpCreate,
371
+ "auth:idp:update": authIdpUpdate,
372
+ "auth:idp:delete": authIdpDelete,
373
+ "auth:idp:status": authIdpStatus,
374
+ "auth:config:get": authConfigGet,
375
+ "auth:config:save": authConfigSave,
376
+ "auth:client-credentials:list": authClientCredentialsList,
377
+ "auth:client-credentials:save": authClientCredentialsSave,
378
+ "auth:client-credentials:delete": authClientCredentialsDelete,
379
+ "auth:oidc-clients:list": authOidcClientsList,
380
+ "auth:oidc-clients:get": authOidcClientsGet,
381
+ "auth:oidc-clients:save": authOidcClientsSave,
382
+ "auth:oidc-clients:delete": authOidcClientsDelete,
383
+ "auth:oidc-clients:rotate-secret": authOidcClientsRotateSecret,
384
+ "auth:remove": authRemove,
385
+ "iam:me": iamMe,
386
+ "projects:get": getProject,
387
+ "new:web": newWeb,
388
+ "skill:list": skillList,
389
+ "skill:show": skillShow,
390
+ "skill:add": skillAdd,
391
+ "sdk:client": sdkClient,
392
+ };
393
+ const MAX_COMMAND_WORDS = 4;
394
+ function resolveCommand(argv) {
395
+ const words = [];
396
+ let tokensConsumed = 0;
397
+ for (const token of argv) {
398
+ if (token.startsWith("-"))
399
+ break;
400
+ words.push(...token.split(":").filter(Boolean));
401
+ tokensConsumed++;
402
+ const handler = commands[words.join(":")];
403
+ if (handler)
404
+ return { handler, args: argv.slice(tokensConsumed) };
405
+ if (words.length >= MAX_COMMAND_WORDS)
406
+ break;
407
+ }
408
+ return null;
409
+ }
410
+ const argv = process.argv.slice(2);
411
+ const [command, subcommand] = argv;
31
412
  try {
32
413
  if (command === "--version" || command === "-v" || command === "version") {
33
414
  await printVersion();
@@ -35,101 +416,12 @@ try {
35
416
  else if (!command || command === "help" || command === "--help" || command === "-h") {
36
417
  printHelp();
37
418
  }
38
- else if (command === "auth:remove" || (command === "auth" && subcommand === "remove")) {
39
- await authRemove(command === "auth" ? rest : [subcommand, ...rest].filter(Boolean));
40
- }
41
- else if (command === "auth:status") {
42
- await authStatus([subcommand, ...rest].filter(Boolean));
43
- }
44
- else if (command === "auth:refresh") {
45
- await authRefresh([subcommand, ...rest].filter(Boolean));
46
- }
47
- else if (command === "auth" && subcommand === "status") {
48
- await authStatus(rest);
49
- }
50
- else if (command === "auth" && subcommand === "refresh") {
51
- await authRefresh(rest);
52
- }
53
- else if (command === "doctor") {
54
- await doctor([subcommand, ...rest].filter(Boolean));
55
- }
56
- else if (command === "init") {
57
- await init();
58
- }
59
- else if (command === "login") {
60
- await login([subcommand, ...rest].filter(Boolean));
61
- }
62
- else if (command === "logout") {
63
- await logout([subcommand, ...rest].filter(Boolean));
64
- }
65
- else if (command === "iam:me" || (command === "iam" && subcommand === "me")) {
66
- await iamMe(command === "iam" ? rest : [subcommand, ...rest].filter(Boolean));
67
- }
68
- else if (command === "projects:list") {
69
- await listProjects([subcommand, ...rest].filter(Boolean));
70
- }
71
- else if (command === "projects" && subcommand === "list") {
72
- await listProjects(rest);
73
- }
74
- else if (command === "projects:create" || (command === "projects" && subcommand === "create")) {
75
- await createProject(command === "projects" ? rest : [subcommand, ...rest].filter(Boolean));
76
- }
77
- else if (command === "projects:get" || (command === "projects" && subcommand === "get")) {
78
- await getProject(command === "projects" ? rest : [subcommand, ...rest].filter(Boolean));
79
- }
80
- else if (command === "use") {
81
- await useProject([subcommand, ...rest].filter(Boolean));
82
- }
83
- else if (command === "deselect") {
84
- await deselectProject([subcommand, ...rest].filter(Boolean));
85
- }
86
- else if (command === "new" && subcommand === "web") {
87
- await newWeb(rest);
88
- }
89
- else if (command === "data:schema:list") {
90
- await dataSchemaList([subcommand, ...rest].filter(Boolean));
91
- }
92
- else if (command === "data:schema:pull") {
93
- await dataSchemaPull([subcommand, ...rest].filter(Boolean));
94
- }
95
- else if (command === "data:schema:push") {
96
- await dataSchemaPush([subcommand, ...rest].filter(Boolean));
97
- }
98
- else if (command === "data:rules:pull") {
99
- await dataRulesPull([subcommand, ...rest].filter(Boolean));
100
- }
101
- else if (command === "data:rules:deploy") {
102
- await dataRulesDeploy([subcommand, ...rest].filter(Boolean));
103
- }
104
- else if (command === "data:reload") {
105
- await dataReload([subcommand, ...rest].filter(Boolean));
106
- }
107
- else if (command === "data:validate") {
108
- await dataValidate([subcommand, ...rest].filter(Boolean));
109
- }
110
- else if (command === "localization:validate") {
111
- await localizationValidate([subcommand, ...rest].filter(Boolean));
112
- }
113
- else if (command === "localization:push") {
114
- await localizationPush([subcommand, ...rest].filter(Boolean));
115
- }
116
- else if (command === "localization:pull") {
117
- await localizationPull([subcommand, ...rest].filter(Boolean));
118
- }
119
- else if (command === "release:deploy") {
120
- await releaseDeploy([subcommand, ...rest].filter(Boolean));
121
- }
122
- else if (command === "release:status") {
123
- await releaseStatus([subcommand, ...rest].filter(Boolean));
124
- }
125
- else if (command === "release:builds:list") {
126
- await releaseBuildsList([subcommand, ...rest].filter(Boolean));
127
- }
128
- else if (command === "release:builds:get") {
129
- await releaseBuildsGet([subcommand, ...rest].filter(Boolean));
130
- }
131
419
  else {
132
- throw new Error(`Unknown command: ${[command, subcommand].filter(Boolean).join(" ")}`);
420
+ const resolved = resolveCommand(argv);
421
+ if (!resolved) {
422
+ throw new Error(`Unknown command: ${[command, subcommand].filter(Boolean).join(" ")}`);
423
+ }
424
+ await resolved.handler(resolved.args);
133
425
  }
134
426
  }
135
427
  catch (error) {
@@ -154,25 +446,36 @@ function toCliError(error) {
154
446
  return { code: error.code, message: error.message, nextStep: error.nextStep };
155
447
  }
156
448
  const message = error instanceof Error ? error.message : String(error);
157
- if (message.includes("is not logged in") || message.includes("Run 'blocks-os login' first")) {
158
- return { code: "not_logged_in", message, nextStep: "blocks-os login" };
449
+ if (message.includes("is not logged in") || message.includes("Run 'blocks login' first")) {
450
+ return {
451
+ code: "not_logged_in",
452
+ message,
453
+ nextStep: "blocks login, then blocks projects list, then blocks use <tenantId>"
454
+ };
159
455
  }
160
456
  if (message.includes("token expired") || message.includes("refresh token") || message.includes("cannot decrypt")) {
161
- return { code: "auth_repair_required", message, nextStep: "blocks-os login" };
457
+ return { code: "auth_repair_required", message, nextStep: "blocks login" };
162
458
  }
163
459
  if (message.includes("No project selected")) {
164
- return { code: "project_not_selected", message, nextStep: "blocks-os use <tenantId>" };
460
+ return {
461
+ code: "project_not_selected",
462
+ message,
463
+ nextStep: "blocks projects list, then blocks use <tenantId>"
464
+ };
165
465
  }
166
466
  if (message.startsWith("Blocks API 401") || message.startsWith("Blocks API 403")) {
167
- return { code: "api_auth_failed", message, nextStep: "blocks-os auth:status && blocks-os login" };
467
+ return { code: "api_auth_failed", message, nextStep: "blocks auth status && blocks login" };
168
468
  }
169
469
  return { code: "command_failed", message };
170
470
  }
171
471
  function printHelp() {
172
- console.log(`Blocks OS CLI
472
+ console.log(`Blocks CLI
173
473
 
174
474
  Usage:
175
- blocks-os <command> [options]
475
+ blocks <command> [options]
476
+
477
+ Namespaced commands use spaces, e.g. 'blocks data schema list'.
478
+ ':' also works if you prefer it: 'blocks data:schema:list'.
176
479
 
177
480
  Global options:
178
481
  --version Print CLI version.
@@ -184,132 +487,627 @@ Global options:
184
487
  --yes Skip mutation confirmation after explicit approval.
185
488
 
186
489
  Setup and health:
187
- blocks-os init
490
+ blocks init
188
491
  Create local Blocks workspace files: blocks.json, data schema/rules folders,
189
- release deploy config, and .env.example.
492
+ and .env.example.
190
493
 
191
- blocks-os doctor [--json]
494
+ blocks doctor [--json]
192
495
  Check local Node.js, OIDC config, token cache, selected project, and config
193
496
  file locations. Does not mutate cloud resources.
194
497
 
195
498
  Auth:
196
- blocks-os login
499
+ blocks login
197
500
  Device-code login. Prints a verification URL and user code, opens the
198
501
  browser to the verification page when possible so you only need to click
199
502
  approve, then polls until the device is authorized; stores account access
200
503
  and refresh tokens and auto-refreshes later.
201
504
 
202
- blocks-os auth:status [--json]
505
+ blocks auth status [--json]
203
506
  Show only whether account/project access and refresh tokens are missing,
204
507
  valid, expired, or available. Does not print account config values.
205
508
 
206
- blocks-os auth:refresh [--project] [--json]
509
+ blocks auth refresh [--project] [--json]
207
510
  Force account token refresh, or project token refresh with --project.
208
511
 
209
- blocks-os auth:remove <account>
512
+ blocks auth remove <account>
210
513
  Clear cached tokens and stored local credentials for that account. The
211
514
  packaged default OS account is restored from package defaults.
212
515
 
213
- blocks-os logout
516
+ blocks logout
214
517
  Revoke the current refresh token when possible and remove local session data.
215
518
 
216
519
  Projects:
217
- blocks-os projects:list [--json]
520
+ blocks projects list [--json]
218
521
  List accessible Blocks projects via /os/v4/Project/Gets using the account
219
522
  token. Read-only.
220
523
 
221
- blocks-os projects:get [tenantId] [--json]
524
+ blocks projects get [tenantId] [--deployment] [--json]
222
525
  Read one project from Project/Gets. Uses selected project when tenantId is
223
- omitted. Read-only.
224
-
225
- blocks-os projects:create <name> [--env dev] [--yes] [--dry-run] [--json]
226
- Create a Blocks project/environment via /os/v4/Project/Create using the
227
- account token. Mutating; supports dry-run and confirmation.
526
+ omitted. Pass --deployment to also include the environment, tenantGroupId,
527
+ and linked repo assets (from Project/GetAsset) that 'release deploy' uses
528
+ to resolve its target. Read-only.
228
529
 
229
- blocks-os use <project-tenant-id>
530
+ blocks use <project-tenant-id>
230
531
  Save the selected project tenant globally and in blocks.json when present.
231
532
  Does not call cloud APIs.
232
533
 
233
- blocks-os deselect
534
+ blocks deselect
234
535
  Clear the selected project tenant (globally and in blocks.json) and drop
235
536
  its cached impersonation token. Use this to recover when an impersonated
236
- project token has expired or failed, then run 'blocks-os use <tenantId>'
537
+ project token has expired or failed, then run 'blocks use <tenantId>'
237
538
  again to reselect and re-impersonate.
238
539
 
239
540
  IAM:
240
- blocks-os iam:me [--json]
241
- Read the current user from IAM using the account token. This is the only IAM
242
- admin surface exposed in the MVP.
541
+ blocks iam me [--json]
542
+ Read the current user from IAM using the account token (bootstrapping/CLI
543
+ operator identity, not a project resource). Every other iam * command below
544
+ is project-scoped: it requires a selected project and calls IAM using an
545
+ impersonated project token only, never the account token.
546
+
547
+ Users (/iam/v4/iam/users*):
548
+ blocks iam users list [--page 1] [--page-size 20] [--email <e>] [--name <n>]
549
+ [--organization-id <id>] [--sort-by <field>] [--sort-desc]
550
+ [--filter '<json>'] [--json]
551
+ Query users. --filter merges a raw JSON filter object over the convenience flags.
552
+ blocks iam users get <id> [--organization-id <id>] [--json]
553
+ blocks iam users create --email <e>|--user-name <n> [--first-name] [--last-name]
554
+ [--password] [--phone-number] [--organization-id]
555
+ [--roles a,b] [--permissions a,b] [--body '<json>'|--file <path>]
556
+ [--dry-run] [--yes] [--json]
557
+ blocks iam users update <id> [--first-name] [--last-name] [--phone-number]
558
+ [--organization-id] [--roles a,b] [--permissions a,b]
559
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
560
+ blocks iam users activate <userId> [--reason <text>] [--dry-run] [--yes] [--json]
561
+ blocks iam users deactivate <userId> [--dry-run] [--yes] [--json]
562
+ blocks iam users access grant <userId> [--roles a,b] [--permissions a,b]
563
+ [--organization-id] [--dry-run] [--yes] [--json]
564
+ blocks iam users access revoke <userId> [--organization-id] [--dry-run] [--yes] [--json]
565
+ blocks iam users exists <email> [--json]
566
+ blocks iam email available <email> [--json]
567
+
568
+ Roles (/iam/v4/iam/roles*):
569
+ blocks iam roles list [--page] [--page-size] [--search] [--slugs a,b]
570
+ [--organization-id] [--filter '<json>'] [--json]
571
+ blocks iam roles get <id> [--json]
572
+ blocks iam roles create --name <n> [--slug] [--description] [--parent-role-slug]
573
+ [--can-create-own] [--body '<json>'|--file <path>]
574
+ [--dry-run] [--yes] [--json]
575
+ blocks iam roles update <itemId> [--name] [--description] [--parent-role-slug]
576
+ [--propagate-to-other-org] [--can-create-own]
577
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
578
+ blocks iam roles assign-permissions <slug> [--add-permissions a,b]
579
+ [--remove-permissions a,b] [--organization-id]
580
+ [--dry-run] [--yes] [--json]
581
+ blocks iam roles assignable [--json]
582
+
583
+ Permissions (/iam/v4/iam/permissions*):
584
+ blocks iam permissions list [--page] [--page-size] [--search] [--type <0-3>]
585
+ [--severity <0-4>] [--resource-group] [--tags a,b]
586
+ [--resources a,b] [--is-built-in] [--is-archived]
587
+ [--roles a,b] [--organization-id] [--filter '<json>'] [--json]
588
+ blocks iam permissions get <id> [--json]
589
+ blocks iam permissions create --name <n> [--type] [--description] [--resource]
590
+ [--resource-group] [--tags a,b] [--severity] [--is-built-in]
591
+ [--dependent-permissions a,b] [--body '<json>'|--file <path>]
592
+ [--dry-run] [--yes] [--json]
593
+ blocks iam permissions update <id> [same flags as create, plus --is-archived]
594
+ [--dry-run] [--yes] [--json]
595
+ blocks iam permissions by-severity [--json]
596
+
597
+ Resources (/iam/v4/iam/resource*):
598
+ blocks iam resources groups [--json]
599
+ blocks iam resources features [--search <text>] [--is-built-in] [--json]
600
+
601
+ Organizations (/iam/v4/iam/organizations*):
602
+ blocks iam organizations list [--page] [--page-size] [--search] [--ids a,b]
603
+ [--is-disabled] [--parent-organization-id] [--json]
604
+ blocks iam organizations get <id> [--json]
605
+ blocks iam organizations create --name <n> [--description] [--email] [--phone-number]
606
+ [--website-url] [--default-roles a,b] [--default-permissions a,b]
607
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
608
+ blocks iam organizations update <id> [--name] [--description] [--email]
609
+ [--phone-number] [--website-url] [--industry] [--time-zone]
610
+ [--currency] [--locale] [--is-enabled]
611
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
612
+ blocks iam organizations my [--json]
613
+ blocks iam organizations config get [--json]
614
+ blocks iam organizations config save [--allow-org-creation-from-cloud]
615
+ [--allow-org-creation-from-construct] [--allow-org-creation-from-signup]
616
+ [--allow-org-creation-from-portal] [--multi-org-enabled]
617
+ [--consent-for-multi-org-enable] [--body '<json>'|--file <path>]
618
+ [--dry-run] [--yes] [--json]
619
+
620
+ Signup settings (/iam/v4/iam/signup-settings):
621
+ blocks iam signup-settings get [--json]
622
+ blocks iam signup-settings save [--email-password-signup] [--sso-signup]
623
+ [--default-roles a,b] [--default-permissions a,b]
624
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
625
+
626
+ MFA (/iam/v4/mfa*, project-scoped: requires a selected project, impersonated project token only):
627
+ blocks mfa config get [--json]
628
+ Read the tenant's MFA policy.
629
+ blocks mfa config save [--enable] [--require-for-all-users] [--allow-user-opt-out]
630
+ [--allow-backup-codes] [--backup-codes-count <n>]
631
+ [--user-mfa-type 0,1] [--required-roles a,b] [--exempt-roles a,b]
632
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
633
+ Save the tenant's MFA policy.
634
+ blocks mfa totp setup [--json]
635
+ Start TOTP enrollment for the impersonated user.
636
+ blocks mfa totp verify-setup <code> [--json]
637
+ Confirm TOTP enrollment.
638
+ blocks mfa totp enable --mfa-type <n> [--code <c>] [--dry-run] [--yes] [--json]
639
+ Composed enrollment: totp setup -> (scan the printed QR/secret, enter the code --
640
+ interactively prompted if --code is omitted) -> totp verify-setup -> method set
641
+ --mfa-type <n> -> backup-codes generate. One sitting, one confirmation.
642
+ --mfa-type is required and not defaulted: the numeric value meaning "TOTP" is
643
+ tenant-defined and undocumented here (same value plain mfa method set expects) --
644
+ look it up rather than guessing.
645
+ blocks mfa generate --mfa-type <n> [--send-phone-number-as-email-domain <domain>] [--json]
646
+ Send an OTP challenge; returns an mfaId to pass to resend/verify.
647
+ blocks mfa resend <mfaId> [--send-phone-number-as-email-domain <domain>] [--json]
648
+ blocks mfa verify <mfaId> <code> --auth-type <n> [--from-token-call] [--json]
649
+ blocks mfa method set --mfa-type <n> [--json]
650
+ Switch the impersonated user's active MFA method.
651
+ blocks mfa disable [--dry-run] [--yes] [--json]
652
+ blocks mfa backup-codes list [--json]
653
+ blocks mfa backup-codes generate [--dry-run] [--yes] [--json]
654
+ blocks mfa backup-codes use <userId> <code> [--json]
655
+
656
+ Mail (/os/v4/Mail/* — project-scoped: requires a selected project, impersonated project token only):
657
+ blocks mail config list [--json]
658
+ List SMTP/inbound mail configurations for the selected project.
659
+ blocks mail config get <name> [--json]
660
+ blocks mail config save [--configuration-id <id>] [--name <n>] [--host <h>] [--port <n>]
661
+ [--enable-ssl] [--sender-name] [--sender-address] [--sender-username]
662
+ [--account-password] [--inbound] [--provider <0|1>]
663
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
664
+ Upsert: omit --configuration-id to create; pass it to update.
665
+ blocks mail config delete <configurationId> [--dry-run] [--yes] [--json]
666
+ blocks mail config duplicate <configurationId> [--dry-run] [--yes] [--json]
667
+ blocks mail template list [--page-number] [--page-size] [--search] [--sort-by] [--sort-desc]
668
+ [--configuration-id] [--language] [--json]
669
+ blocks mail template get <itemId> [--json]
670
+ blocks mail template save [--item-id <id>] [--configuration-id] [--name] [--language]
671
+ [--subject] [--template-body] [--json-content] [--image-id]
672
+ [--image-url] [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
673
+ Upsert: omit --item-id to create; pass it to update.
674
+ blocks mail template delete <itemId> [--dry-run] [--yes] [--json]
675
+ blocks mail template clone <itemId> [--configuration-id] [--language] [--name] [--subject]
676
+ [--dry-run] [--yes] [--json]
677
+ blocks mail mailbox list [--page-number] [--page-size] [--status] [--search]
678
+ [--start-date] [--end-date] [--inbound] [--json]
679
+ blocks mail mailbox get <messageId> [--json]
680
+ blocks mail send [--to a,b] [--cc a,b] [--bcc a,b] [--reply-to a,b] [--purpose <p>]
681
+ [--language <culture>] [--subject-data-context '<json>']
682
+ [--body-data-context '<json>'] [--attachments '<json>']
683
+ [--send-phone-number-as-email] [--project-key <key>]
684
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
685
+ Send an email through the tenant's default mail configuration
686
+ (/logic/v4/Mail/Send). --project-key defaults to the selected project.
687
+ blocks mail sendtoany [same flags as mail send, plus --is-test-mail]
688
+ [--dry-run] [--yes] [--json]
689
+ Same as mail send but via /logic/v4/Mail/SendToAny, which lets the mail
690
+ provider route the send (e.g. mark it --is-test-mail).
691
+
692
+ Notification (/os/v4/Notification/* — project-scoped: requires a selected project, impersonated project token only):
693
+ blocks notification list [--page] [--page-size] [--sort-by] [--sort-desc] [--filter] [--json]
694
+ blocks notification get <itemId> [--json]
695
+ blocks notification save [--name <n>] [--channel <0|1>] [--type <0-3>] [--enable-persistence]
696
+ [--notify-method] [--update] [--body '<json>'|--file <path>]
697
+ [--dry-run] [--yes] [--json]
698
+ Pass --update when saving over an existing notification configuration.
699
+ blocks notification delete <itemId> [--dry-run] [--yes] [--json]
700
+
701
+ Notifier (/logic/v4/Notifier/* — real-time/offline notification sends and inbox reads;
702
+ project-scoped: requires a selected project, impersonated project token only.
703
+ Distinct from 'notification' above, which manages notification channel
704
+ configuration, not sending):
705
+ blocks notifier notify [--user-ids a,b] [--roles a,b] [--connection-id <id>]
706
+ [--subscription-filters '<json>'] [--denormalized-payload <text>]
707
+ [--save-denormalized-payload-as-object] [--response-key]
708
+ [--response-value] [--content-available] [--configuration-name]
709
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
710
+ Push a notification to specific users/roles, or everyone matching a subscription
711
+ filter. Target with at least one of --user-ids/--roles/--subscription-filters.
712
+ blocks notifier list [--unread-only] [--page] [--page-size] [--sort-by] [--sort-desc]
713
+ [--filter] [--json]
714
+ List the signed-in user's notifications (GetNotifications). Read-only.
715
+ blocks notifier unread [--user-id <id>] [--context <c>] [--action-name <a>] [--value <v>]
716
+ [--order-by <1|2>] [--json]
717
+ Read unread notifications matching a subscription filter. Sent as query
718
+ parameters even though swagger documents this endpoint as GET with a JSON
719
+ body -- the Fetch spec forbids a body on GET. Read-only.
720
+ blocks notifier mark-read <id> [--dry-run] [--yes] [--json]
721
+ blocks notifier mark-all-read [--dry-run] [--yes] [--json]
722
+
723
+ Secrets (/os/v4/Secrets/* — project-scoped: requires a selected project, impersonated project
724
+ token only; generic tenant secret storage, e.g. captcha provider config):
725
+ blocks secrets get <secretKey> [--page-number 0] [--page-size 10] [--json]
726
+ blocks secrets save --secret-key <key> [--item-id <id>] --key-value-pairs '<json>'
727
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
728
+ Upsert: omit --item-id to create, pass it to update. --key-value-pairs is a flat
729
+ JSON object of provider-specific fields, e.g.
730
+ --key-value-pairs '{"isEnable":"true","provider":"recaptcha","captchaKey":"...","captchaSecret":"..."}'.
731
+
732
+ Storage (/os/v4/Storage/* — project-scoped: requires a selected project, impersonated project token only):
733
+ blocks storage config list [--json]
734
+ blocks storage config get <name> [--json]
735
+ blocks storage config save [--item-id <id>] [--name <n>] [--strategy] [--connection-string]
736
+ [--secret-key] [--access-key] [--region-endpoint] [--host] [--port]
737
+ [--username] [--password] [--remote-base-path] [--update]
738
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
739
+ Upsert: omit --item-id to create; pass --update to update.
740
+ blocks storage config delete <name> [--dry-run] [--yes] [--json]
741
+
742
+ Auth Admin (/iam/v4/auth/identity-providers*, /config, /client-credentials, /oidc-clients —
743
+ project-scoped: requires a selected project, impersonated project token only):
744
+ blocks auth idp list [--json]
745
+ blocks auth idp get <id> [--json]
746
+ blocks auth idp create --provider <p> --provider-type <t> --protocol <proto>
747
+ --client-id <id> [--client-secret] [--display-name] [--issuer]
748
+ [--scope] [--redirect-uris a,b] [--active]
749
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
750
+ Rich provider configs (JWKS, private keys, initial roles, etc.) go in --body/--file;
751
+ the flags above cover the common OAuth/OIDC fields.
752
+ blocks auth idp update <id> [same flags as create, all optional] [--dry-run] [--yes] [--json]
753
+ provider/providerType/protocol/clientId are immutable: omit them, or echo the
754
+ existing values exactly if you also pass --body/--file.
755
+ blocks auth idp delete <id> [--dry-run] [--yes] [--json]
756
+ Irreversible; also deletes the related OIDC client registration.
757
+ blocks auth idp status <id> --active|--active=false [--dry-run] [--yes] [--json]
758
+ Enable/disable a provider without deleting its configuration.
759
+ blocks auth config get [--json]
760
+ blocks auth config save [--refresh-token-minutes] [--absolute-refresh-token-minutes]
761
+ [--access-token-minutes] [--remember-me-refresh-token-minutes]
762
+ [--wrong-attempts-to-lock] [--account-lock-duration-minutes]
763
+ [--oidc-enabled] [--logout-on-password-change]
764
+ [--password-strength-regex] [--body '<json>'|--file <path>]
765
+ [--dry-run] [--yes] [--json]
766
+ blocks auth client-credentials list [--json]
767
+ clientSecret is included in list responses; treat CLI output as sensitive.
768
+ blocks auth client-credentials save --name <n> [--item-id <id>] [--roles a,b]
769
+ [--permissions a,b] [--access-token-valid-minutes] [--active]
770
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
771
+ Omit --item-id to create; pass it to update. The response's clientSecret is
772
+ shown once and is not retrievable again afterward.
773
+ blocks auth client-credentials delete <id> [--dry-run] [--yes] [--json]
774
+
775
+ blocks auth oidc-clients list [--json]
776
+ List registered OAuth 2.0 / OIDC client applications for the tenant. client_secret
777
+ is excluded from list/get responses.
778
+ blocks auth oidc-clients get <clientId> [--json]
779
+ blocks auth oidc-clients save [--item-id <id>] [--client-display-name] [--client-type]
780
+ [--redirect-uris a,b] [--post-logout-redirect-uris a,b]
781
+ [--scope] [--allowed-scopes a,b] [--allowed-response-types a,b]
782
+ [--require-pkce] [--require-consent] [--require-mfa]
783
+ [--allowed-mfa-methods 0,1] [--front-channel-logout-uri]
784
+ [--back-channel-logout-uri] [--auto-redirect]
785
+ [--external-discovery-endpoint] [--active] [--login-mode]
786
+ [--client-logo-url] [--client-brand-color] [--use-tokens-cookie]
787
+ [--register-as-identity-provider] [--device-flow-client]
788
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
789
+ Upsert: omit --item-id to register a new client, pass it to update an existing one.
790
+ The response's client_secret is shown once and is not retrievable again afterward.
791
+ blocks auth oidc-clients delete <clientId> [--dry-run] [--yes] [--json]
792
+ Irreversible; revokes all tokens issued to the client.
793
+ blocks auth oidc-clients rotate-secret <clientId> [--dry-run] [--yes] [--json]
794
+ Generates a new client_secret, shown once; the old secret stops working immediately.
243
795
 
244
796
  Data:
245
- blocks-os data:validate [--json]
797
+ blocks data validate [--json]
246
798
  Validate local blocks/data/schemas/*.json and blocks/data/rules.json before
247
799
  pushing. Local-only.
248
800
 
249
- blocks-os data:schema:list [--json]
801
+ blocks data schema list [--json]
250
802
  List project schemas via /data/v4/schemas using an impersonated project
251
803
  token. Read-only.
252
804
 
253
- blocks-os data:schema:pull [--json]
805
+ blocks data schema pull [--json]
254
806
  Download project schemas into blocks/data/schemas/*.json. Writes local files
255
807
  only.
256
808
 
257
- blocks-os data:schema:push [--dry-run] [--yes] [--json]
809
+ blocks data schema push [--dry-run] [--yes] [--json]
258
810
  Create or update project schemas via /data/v4/schemas/define. Mutating;
259
811
  uses POST for create and PUT for update.
260
812
 
261
- blocks-os data:rules:pull [--json]
813
+ blocks data rules pull [--json]
262
814
  Download data-access policies into blocks/data/rules.json. Writes local
263
815
  files only.
264
816
 
265
- blocks-os data:rules:deploy [--dry-run] [--yes] [--json]
817
+ blocks data rules deploy [--dry-run] [--yes] [--json]
266
818
  Apply schema security and data-access policies. Mutating; supports dry-run
267
819
  and confirmation.
268
820
 
269
- blocks-os data:reload [--dry-run] [--yes] [--json]
821
+ blocks data reload [--dry-run] [--yes] [--json]
270
822
  Reload Data schema configuration so staged schema/rule changes become live.
271
823
  Mutating; calls POST /data/v4/schema-configurations/reload.
272
824
 
825
+ blocks data sync [--dry-run] [--yes] [--json]
826
+ Composed flow: validate local schemas/rules, then data schema push ->
827
+ data rules deploy -> data reload, so pushed changes actually go live in one
828
+ step. Validation runs first and hard-fails before anything is sent if it
829
+ finds errors. Prints 3 separate step outputs (one per underlying command),
830
+ not one combined document. One confirmation covers the whole flow.
831
+
832
+ Data source configuration (/data/v4/configurations) - check this first; by default a
833
+ project's Data Gateway runs on Blocks-managed storage and data config get is all you need.
834
+ Only create/update a configuration if you're pointing the gateway at your own database.
835
+ blocks data config get [--json]
836
+ blocks data config create --connection-string <cs> [--database-name <name>]
837
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
838
+ blocks data config update --item-id <id> [--connection-string] [--database-name]
839
+ [--collection-name-editable] [--collection-name-pattern]
840
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
841
+
842
+ Raw Schema API (/data/v4/schemas* - beyond the file-oriented list/pull/push above):
843
+ blocks data schema get <id> [--json]
844
+ blocks data schema get-by-name <schemaName> [--json]
845
+ Full field-level detail by collection name (info-by-name).
846
+ blocks data schema aggregation [--keyword] [--schema-name] [--collection-name]
847
+ [--schema-type <1|2>] [--page] [--page-size] [--sort-by]
848
+ [--sort-desc] [--json]
849
+ Schemas plus an access-level summary (Public/User/Custom x Read/Write/Edit/Delete).
850
+ blocks data schema change-logs [--json]
851
+ Unadapted schema change logs; data reload clears these.
852
+ blocks data schema delete <id> [--dry-run] [--yes] [--json]
853
+ Irreversible.
854
+ blocks data schema info list [--json]
855
+ Entity-type schema collections with basic info.
856
+ blocks data schema info save --schema-name <n> [--collection-name] [--schema-type <1|2>]
857
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
858
+ Create schema metadata only (no fields yet) - pair with data schema fields.
859
+ blocks data schema info update --item-id <id> [--schema-name] [--collection-name]
860
+ [--schema-type <1|2>] [--body '<json>'|--file <path>]
861
+ [--dry-run] [--yes] [--json]
862
+ blocks data schema fields --schema-id <schemaDefinitionItemId> [--deletable-fields a,b]
863
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
864
+ Add/update field definitions; the 'fields' array (name/type/isArray/isPIIData/
865
+ isUniqueData/description) goes in --body/--file, e.g.
866
+ --body '{"fields":[{"name":"email","type":"string"}]}'.
867
+
868
+ Data-access policies, single-item ops (beyond the file-oriented rules pull/deploy above):
869
+ blocks data rules policy get <schemaName> [--json]
870
+ blocks data rules policy delete <itemId> [--dry-run] [--yes] [--json]
871
+
872
+ Data validation (/data/v4/data-validations* - field-level validation rules; no file-oriented
873
+ workflow exists for this yet, use these directly):
874
+ blocks data validation list [--schema-id] [--field-name] [--keyword] [--page]
875
+ [--page-size] [--sort-by] [--sort-desc] [--json]
876
+ blocks data validation get <validationId> [--json]
877
+ blocks data validation by-schema <schemaId> [--json]
878
+ blocks data validation by-schema-field <schemaId> <fieldName> [--json]
879
+ blocks data validation save --schema-id <id> --field-name <name> [--item-id]
880
+ --body '<json>' (must include a "validations" array, e.g.
881
+ '{"validations":[{"type":1,"value":"^[0-9]+$","isActive":true}]}')
882
+ [--dry-run] [--yes] [--json]
883
+ Upsert: omit --item-id to create, pass it to update.
884
+ blocks data validation delete <validationId> [--dry-run] [--yes] [--json]
885
+
886
+ Files / DMS (/data/v4/Files/* - storage and document management; no SDK required, but see
887
+ the blocks-data-storage skill if writing this into app code instead of scripting it):
888
+ blocks data files get <fileId> [--version] [--configuration-name] [--json]
889
+ blocks data files get-many <fileId...>|--file-ids a,b [--configuration-name] [--json]
890
+ blocks data files info [--name] [--tenant-id] [--page] [--page-size] [--sort-by]
891
+ [--sort-desc] [--json]
892
+ blocks data files upload --file <localPath> [--name] [--parent-id] [--tags]
893
+ [--access-modifier Public|Private] [--content-type]
894
+ [--configuration-name] [--module-name <1-11>] [--local-storage]
895
+ [--dry-run] [--yes] [--json]
896
+ Composed flow: presigned-upload-url -> PUT the file -> dms-upload, threading the
897
+ returned uploadUrl/fileId automatically (content-type is inferred from the file
898
+ extension if omitted). Pass --local-storage to use the one-call
899
+ upload-to-local-storage path instead, for local-storage-backed projects.
900
+ blocks data files presigned-upload-url --name <fileName> [--parent-directory-id]
901
+ [--access-modifier Public|Private] [--configuration-name]
902
+ [--module-name <1-11>] [--meta-data] [--tags]
903
+ [--body '<json>'|--file <path>] [--json]
904
+ Cloud-storage upload, step 1 of 2. Returns an uploadUrl and fileId; PUT the bytes next
905
+ with data files upload-to-url.
906
+ blocks data files upload-to-url --url <presignedUrl> --file <localPath>
907
+ --content-type <type> [--blob-type BlockBlob] [--no-blob-type-header]
908
+ [--dry-run] [--yes] [--json]
909
+ Step 2. Provider-direct PUT - no Blocks auth headers by design.
910
+ blocks data files upload-to-local-storage --file <localPath> [--name] [--item-id]
911
+ [--parent-directory-id] [--tags] [--access-modifier Public|Private]
912
+ [--configuration-name] [--meta-data] [--additional-properties '<json>']
913
+ [--dry-run] [--yes] [--json]
914
+ One-call alternative to the two commands above, for local-storage-backed projects.
915
+ blocks data files update-additional-info <itemId> --additional-properties '<json>'
916
+ [--dry-run] [--yes] [--json]
917
+ blocks data files delete <fileId> [--configuration-name] [--event-queue-name]
918
+ [--dry-run] [--yes] [--json]
919
+ blocks data files dms-list [--parent-id] [--search] [--configuration-name] [--take]
920
+ [--skip] [--json]
921
+ Combined folder+file listing for a DMS parent ("" = root).
922
+ blocks data files dms-upload --file-storage-id <id> --artifact-name <name>
923
+ [--parent-id] [--tags a,b] [--body '<json>'|--file <path>]
924
+ [--dry-run] [--yes] [--json]
925
+ Registers an uploaded file (fileId from presigned-upload-url/upload-to-local-storage)
926
+ so it appears in a DMS folder. Upload alone does not make a file visible in a folder.
927
+ blocks data files create-folder <name> [--parent-id] [--description] [--tags a,b]
928
+ [--configuration-name] [--dry-run] [--yes] [--json]
929
+ blocks data files delete-folder <folderId> [--configuration-name]
930
+ [--dry-run] [--yes] [--json]
931
+
273
932
  Localization:
274
- blocks-os localization:validate --module <name> --language <culture> [--file <path>] [--json]
933
+ blocks localization validate --module <name> --language <culture> [--file <path>] [--json]
275
934
  Validate a local i18n JSON dictionary. Supports nested JSON input and
276
935
  validates the flattened key/value set locally.
277
936
 
278
- blocks-os localization:push --module <name> --language <culture> [--file <path>] [--route <route>] [--context <text>] [--dry-run] [--yes] [--json]
937
+ blocks localization push --module <name> --language <culture> [--file <path>] [--route <route>] [--context <text>] [--dry-run] [--yes] [--json]
279
938
  Create or update Localization keys from a local i18n JSON dictionary via
280
939
  /localization/v4/Key/SaveKeys. Creates the module first when it is missing.
281
940
 
282
- blocks-os localization:pull --module <name> --language <culture> [--out <path>] [--json]
941
+ blocks localization pull --module <name> --language <culture> [--out <path>] [--json]
283
942
  Download published cloud localization via
284
943
  /localization/v4/Key/GetCloudUilmFile and write a local JSON dictionary.
285
944
 
945
+ Raw API (/localization/v4/* — project-scoped: requires a selected project, impersonated
946
+ project token only). These call the Localization service endpoints directly,
947
+ in addition to the file-oriented validate/push/pull commands above.
948
+
949
+ blocks localization assistant translation-suggestion --source-text <text>
950
+ --destination-language <culture> [--current-language]
951
+ [--element-type] [--element-application-context]
952
+ [--element-detail-context] [--temperature] [--max-character-length]
953
+ [--glossary-ids a,b] [--module-id] [--destination-language-code]
954
+ [--body '<json>'|--file <path>] [--json]
955
+
956
+ blocks localization config get-webhook [--json]
957
+ blocks localization config save-webhook --url <url> --content-type <type>
958
+ --secret <s> --header-key <k> [--item-id <id>] [--is-disabled]
959
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
960
+
961
+ blocks localization glossary save --name <n> [--item-id] [--language] [--type]
962
+ [--context] [--additional-note] [--is-global] [--module-ids a,b]
963
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
964
+ blocks localization glossary list [--search] [--page-number] [--page-size]
965
+ [--is-global] [--module-id] [--json]
966
+ blocks localization glossary get <itemId> [--json]
967
+ blocks localization glossary suggested <itemId> [--max-results <n>] [--json]
968
+ blocks localization glossary delete <itemId> [--dry-run] [--yes] [--json]
969
+
970
+ blocks localization key save --key-name <n> --module-id <id> [--item-id] [--value]
971
+ [--culture] [--routes a,b] [--glossary-ids a,b] [--context]
972
+ [--is-new-key] [--is-partially-translated] [--should-publish]
973
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
974
+ blocks localization key list [--key-search-text] [--search-key] [--module-ids a,b]
975
+ [--page-number] [--page-size] [--sort-by] [--sort-desc]
976
+ [--is-partially-translated] [--missing-languages a,b]
977
+ [--create-date-start] [--create-date-end]
978
+ [--last-update-date-start] [--last-update-date-end]
979
+ [--glossary-id] [--body '<json>'|--file <path>] [--json]
980
+ blocks localization key get-by-names <keyName...>|--key-names a,b [--module-id] [--json]
981
+ blocks localization key get <itemId> [--json]
982
+ blocks localization key delete <itemId> [--dry-run] [--yes] [--json]
983
+ blocks localization key delete-keys <itemId...>|--item-ids a,b [--dry-run] [--yes] [--json]
984
+ blocks localization key get-timeline [--entity-id] [--user-id] [--page-number]
985
+ [--page-size] [--sort-by] [--sort-desc] [--create-date-start]
986
+ [--create-date-end] [--json]
987
+ blocks localization key get-localization-timeline [--user-id] [--log-from]
988
+ [--log-from-values a,b] [--exclude-log-from-values a,b]
989
+ [--page-number] [--page-size] [--sort-by] [--sort-desc]
990
+ [--create-date-start] [--create-date-end] [--json]
991
+ blocks localization key get-timeline-by-operation-id <operationId> [--page-number]
992
+ [--page-size] [--json]
993
+ blocks localization key get-uilm-file --module <name> --language <culture> [--json]
994
+ blocks localization key generate-uilm-file --module-id <id> [--guid]
995
+ [--dry-run] [--yes] [--json]
996
+ blocks localization key translate-all --module-id <id> [--default-language]
997
+ [--message-co-relation-id] [--dry-run] [--yes] [--json]
998
+ blocks localization key translate-key <keyId> --default-language <culture>
999
+ [--message-co-relation-id] [--dry-run] [--yes] [--json]
1000
+ blocks localization key translate-keys <keyId...>|--key-ids a,b --default-language <culture>
1001
+ [--message-co-relation-id] [--project-key]
1002
+ [--dry-run] [--yes] [--json]
1003
+ blocks localization key translate-and-export --module-id <id> [--default-language]
1004
+ [--wait] [--poll-interval <seconds>] [--timeout <seconds>]
1005
+ [--guid] [--output-type <0-5>] [--app-ids a,b] [--languages a,b]
1006
+ [--reference-file-id] [--caller-tenant-id] [--start-date]
1007
+ [--end-date] [--dry-run] [--yes] [--json]
1008
+ Composed flow: translate-all -> generate-uilm-file -> uilm-export. Without --wait,
1009
+ fires all 3 back to back (same as running them by hand). With --wait, polls
1010
+ GetTimelineByOperationId (using a generated messageCoRelationId) between translate
1011
+ and generate, since translation runs async and there's no documented explicit
1012
+ "done" field to check -- it stops once the timeline entry count settles across 2
1013
+ polls, or times out with a clear next-step message. Prints one output block per
1014
+ step, not a single combined document.
1015
+ blocks localization key uilm-import <fileId> [--message-co-relation-id]
1016
+ [--dry-run] [--yes] [--json]
1017
+ blocks localization key uilm-export [--output-type <0-5>] [--app-ids a,b] [--languages a,b]
1018
+ [--reference-file-id] [--caller-tenant-id] [--start-date]
1019
+ [--end-date] [--message-co-relation-id] [--dry-run] [--yes] [--json]
1020
+ blocks localization key get-uilm-exported-files [--search] [--page-number] [--page-size]
1021
+ [--create-date-start] [--create-date-end] [--json]
1022
+ blocks localization key get-language-file-generation-history [--page-number]
1023
+ [--page-size] [--json]
1024
+ blocks localization key rollback <itemId> [--dry-run] [--yes] [--json]
1025
+
1026
+ blocks localization language save --language-name <n> --language-code <c> [--item-id]
1027
+ [--is-default] [--body '<json>'|--file <path>]
1028
+ [--dry-run] [--yes] [--json]
1029
+ blocks localization language list [--json]
1030
+ blocks localization language list-for-tenant [--json]
1031
+ blocks localization language delete <languageName> [--dry-run] [--yes] [--json]
1032
+ blocks localization language set-default <languageName> [--dry-run] [--yes] [--json]
1033
+
1034
+ blocks localization module save --module-name <n> [--item-id]
1035
+ [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json]
1036
+ blocks localization module list [--json]
1037
+ blocks localization module list-for-tenant [--json]
1038
+ blocks localization module tag-glossary <moduleId> --glossary-ids a,b
1039
+ [--dry-run] [--yes] [--json]
1040
+
286
1041
  Release:
287
- blocks-os release:deploy --repo-id <repoId> [--dry-run] [--yes] [--json]
288
- Trigger a manual Release build/deploy for a configured repository using an
289
- impersonated project token. Mutating; no artifact upload is performed by
290
- this CLI.
1042
+ blocks release deploy [--domain <customDomain>] [--wait] [--poll-interval <seconds>]
1043
+ [--timeout <seconds>] [--dry-run] [--yes] [--json]
1044
+ Deploy the selected project's environment. Resolves everything from state
1045
+ you already have: the repo linked to this project (Project/GetAsset) and
1046
+ that repo's connected branch (Build/repo-details) -- no --repo-id needed.
1047
+ Aborts if the connected branch doesn't match this environment's name.
1048
+ Pass --domain to also set the custom deployment domain before deploying.
1049
+ Pass --wait to poll release status on the resulting build until it reaches
1050
+ a terminal state (or --timeout elapses, default 900s) instead of returning
1051
+ immediately with just a build id.
1052
+ Mutating; no artifact upload is performed by this CLI.
291
1053
 
292
- blocks-os release:status <buildId> [--json]
1054
+ blocks release status <buildId> [--json]
293
1055
  Read Release build status by build id using an impersonated project
294
1056
  token. Read-only.
295
1057
 
296
- blocks-os release:builds:list --repo-id <repoId> [--json]
1058
+ blocks release builds list [repoId] [--repo-id <repoId>] [--json]
297
1059
  List Release build details for a repository using an impersonated project
298
- token. Read-only.
1060
+ token. When repoId is omitted, resolves it from the selected project's
1061
+ linked repo assets (Project/GetAsset, account token) -- auto-picked if
1062
+ there's exactly one, otherwise you're prompted to choose. Read-only.
299
1063
 
300
- blocks-os release:builds:get <buildId> [--json]
301
- Alias for release:status. Read-only.
1064
+ blocks release builds get <buildId> [--json]
1065
+ Alias for release status. Read-only.
302
1066
 
303
1067
  Scaffold:
304
- blocks-os new web <name> --x-blocks-key <tenantId> --app-domain <domain> [--client-id <oidcClientId>]
305
- [--blocks-api-url <url>] [--oidc-url <url>]
306
- Create a Vite React starter app with a real browser Authorization Code +
307
- PKCE login flow against Blocks IAM (login page, /login/callback handler,
308
- route guards), plus Data schema listing, Release build lookup, environment
309
- config, and safe .gitignore defaults.
310
- --blocks-api-url defaults to the OS API (os.seliseblocks.com) if omitted -
311
- pass the runtime Data/IAM/Localization gateway URL explicitly (typically
312
- https://api.seliseblocks.com) for the scaffolded app to work at runtime.
1068
+ blocks new web <name> [--app-domain <domain>] [--client-id <oidcClientId>]
1069
+ [--x-blocks-key <tenantId>] [--blocks-api-url <url>] [--oidc-url <url>]
1070
+ Create a Vite React starter app that talks to Blocks exclusively through
1071
+ @seliseblocks/client (a single createBlocksClient() instance) using the SDK
1072
+ hosted IdP flow: blocksClient.auth.idp.redirectToProvider() on login click
1073
+ and blocksClient.auth.idp.callback() on /login/callback. Includes route
1074
+ guards, auto-refresh through auth.oidc.refreshToken(), live
1075
+ auth/iam/data/localization SDK examples, environment config, and safe
1076
+ .gitignore defaults.
1077
+ Uses the selected project (see 'use') unless --x-blocks-key overrides it.
1078
+ --app-domain and --client-id are resolved from the project when omitted:
1079
+ if the project has one domain it's used automatically, otherwise you're
1080
+ prompted to choose; the OIDC client is picked from a list of the
1081
+ project's existing clients, or you can create a minimal one (display
1082
+ name + redirect URI, active, registered as a Blocks OIDC identity
1083
+ provider) on the spot, or skip and register one later from the portal or
1084
+ 'auth oidc-clients save'.
1085
+ --blocks-api-url defaults to https://api.seliseblocks.com if omitted -
1086
+ pass a different Data/IAM/Localization/OS gateway URL explicitly only if
1087
+ your project uses a non-default one.
313
1088
  --oidc-url defaults to https://iam.seliseblocks.com.
1089
+
1090
+ Skills:
1091
+ blocks skill list [--json]
1092
+ List bundled blocks-skills/*/SKILL.md agent context docs (name +
1093
+ description). Local-only, no cloud calls.
1094
+ blocks skill show <name> [--json]
1095
+ Print one skill's full SKILL.md content.
1096
+ blocks skill add <name> [--dir <path>]
1097
+ Copy a bundled skill's SKILL.md into <path>/<name>/SKILL.md in the
1098
+ current directory (default --dir is 'blocks-skills'), for use in a
1099
+ project outside this monorepo. Overwrites silently, same as
1100
+ 'data schema pull'.
1101
+
1102
+ SDK:
1103
+ blocks sdk client [--app-domain <domain>] [--client-id <oidcClientId>]
1104
+ [--x-blocks-key <tenantId>] [--blocks-api-url <url>] [--oidc-url <url>] [--json]
1105
+ Read-only: "I want to use the Blocks SDK -- show me the client." Resolves this
1106
+ project's @seliseblocks/client config (same values 'new web' scaffolds with,
1107
+ using the selected project unless --x-blocks-key overrides it, and the
1108
+ project's registered domain/OIDC client when --app-domain/--client-id are
1109
+ omitted) and prints a ready-to-paste createBlocksClient(...) snippet.
1110
+ Passing both --app-domain and --client-id skips the project lookup entirely
1111
+ (no login required). Never writes a file; to scaffold a new app use 'new web'.
314
1112
  `);
315
1113
  }