@xano/sdk 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +28 -28
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-DAFGNMQX.js → agent-file-refresh-ZRGNOA6Q.js} +12 -11
- package/dist/{agent-skill-command-6M46ZGOL.js → agent-skill-command-DV26SDA2.js} +51 -50
- package/dist/{answer-shape-CBUQRSXI.js → answer-shape-AVZSKBR6.js} +4 -4
- package/dist/{backend-dir-J2J7JNS6.js → backend-dir-NTMXWE5R.js} +11 -10
- package/dist/{backend-slot-X5AUX2TT.js → backend-slot-DZAUHLTS.js} +3 -3
- package/dist/bin.js +47 -46
- package/dist/{branch-YS2K3VOB.js → branch-IJTBZZFO.js} +8 -8
- package/dist/{branch-commands-BUKVE637.js → branch-commands-4PJEBNRK.js} +26 -25
- package/dist/{chunk-PCHIHVX6.js → chunk-2LF734YB.js} +4 -4
- package/dist/{chunk-ENBGJJJH.js → chunk-3GZMP7II.js} +9 -9
- package/dist/{chunk-R7XZW4SB.js → chunk-3H7R4ISR.js} +2 -2
- package/dist/{chunk-DB7P2SSK.js → chunk-45K2QZBR.js} +3 -3
- package/dist/{chunk-C2SAVXAB.js → chunk-4MX5LMPQ.js} +2 -2
- package/dist/{chunk-IZI3SYXH.js → chunk-5FJ4M4HB.js} +38 -38
- package/dist/{chunk-FBWMKHLO.js → chunk-5SJQAJLF.js} +3 -3
- package/dist/{chunk-E763QI3G.js → chunk-5SKWGCAJ.js} +2 -2
- package/dist/{chunk-JKGRQW6D.js → chunk-5W7S2SCA.js} +4 -4
- package/dist/{chunk-KICERNAP.js → chunk-66ZU2CD5.js} +4 -4
- package/dist/{chunk-F2NFNYCB.js → chunk-6EFXPTHT.js} +3 -3
- package/dist/{chunk-CTUIMNEM.js → chunk-6X73VFCX.js} +2 -2
- package/dist/{chunk-VTMTIBKP.js → chunk-74OPNM2Z.js} +2 -2
- package/dist/{chunk-DZUNF7IH.js → chunk-75QC66XI.js} +2 -2
- package/dist/{chunk-U4BGBU3R.js → chunk-7AKH4QDJ.js} +44 -44
- package/dist/{chunk-CGZSF756.js → chunk-7ZQ73AHJ.js} +28 -28
- package/dist/{chunk-5SMUND4J.js → chunk-A2N2C2WD.js} +6 -6
- package/dist/{chunk-XL7EA62X.js → chunk-AE5CRAKS.js} +5 -5
- package/dist/{chunk-5ONWBQ2C.js → chunk-ASQX477B.js} +7 -7
- package/dist/{chunk-JFPLHK6Y.js → chunk-AXMUYBWQ.js} +2 -2
- package/dist/{chunk-5XDKKE5Y.js → chunk-B6AFJVG4.js} +4 -4
- package/dist/{chunk-4CS4DKQC.js → chunk-BEKEOXNG.js} +2 -2
- package/dist/{chunk-ZSMHS7BU.js → chunk-CJGLAQRD.js} +4 -4
- package/dist/{chunk-M7DIIJPW.js → chunk-DBDTQR23.js} +4 -4
- package/dist/{chunk-RZABQ4YH.js → chunk-DGYXCIBV.js} +4 -4
- package/dist/{chunk-P6HXDOFG.js → chunk-DH6O5NQU.js} +13 -13
- package/dist/{chunk-I2AVVARA.js → chunk-ECQXASG3.js} +2 -2
- package/dist/{chunk-2BHYGUTI.js → chunk-EQXHUWUO.js} +2 -2
- package/dist/{chunk-EGEANMMK.js → chunk-FIERONKM.js} +2 -2
- package/dist/{chunk-A2AOUBJS.js → chunk-FKQX6KU7.js} +3 -2
- package/dist/{chunk-UECNKDDA.js → chunk-FOBVJ2UR.js} +8 -8
- package/dist/{chunk-GRWYO2MS.js → chunk-FXZEZAV2.js} +3 -3
- package/dist/{chunk-H6VVSGKN.js → chunk-G4WRZU5T.js} +7 -7
- package/dist/{chunk-K6BQPFRS.js → chunk-GBSHHNSD.js} +3 -3
- package/dist/{chunk-N3XSXGAL.js → chunk-GCINMMFL.js} +2 -2
- package/dist/{chunk-WZXEQUIM.js → chunk-GDJCWQIK.js} +2 -2
- package/dist/{chunk-ZACMAKZE.js → chunk-GIQIMWTK.js} +14 -14
- package/dist/{chunk-POZ6V4MU.js → chunk-GKQTXUOW.js} +2 -2
- package/dist/{chunk-D4VKPOD4.js → chunk-GRXX2TOJ.js} +13 -112
- package/dist/{chunk-YJK4NPXC.js → chunk-GVHWIDEJ.js} +3 -3
- package/dist/{chunk-UKC65HBQ.js → chunk-HCNIB3EC.js} +4 -4
- package/dist/{chunk-DILYWJVP.js → chunk-HXFLHA5K.js} +2 -2
- package/dist/{chunk-FLDFKG24.js → chunk-IKXXTRMN.js} +4 -4
- package/dist/{chunk-QWWQM4XZ.js → chunk-JAYHFXWH.js} +7 -7
- package/dist/{chunk-6LECAG3Y.js → chunk-JWASCOHO.js} +4 -4
- package/dist/{chunk-DPSR5GRE.js → chunk-K6SWZ6H4.js} +49 -49
- package/dist/{chunk-VA4JK4TW.js → chunk-KMKUH2IO.js} +3 -3
- package/dist/{chunk-UFFIU57H.js → chunk-LSJ3SQEU.js} +4 -4
- package/dist/{chunk-JHQAVWHW.js → chunk-M7O3T7IM.js} +2 -2
- package/dist/{chunk-BXVNRUDB.js → chunk-MGG4CHO4.js} +3 -3
- package/dist/{chunk-7NNLRNXE.js → chunk-MIS6F4HM.js} +4 -4
- package/dist/{chunk-6HTXQAMG.js → chunk-N72XNQNJ.js} +14 -14
- package/dist/{chunk-H7GMGZHI.js → chunk-NDV6CBR7.js} +2 -2
- package/dist/{chunk-6OOZJQJK.js → chunk-NNI5R6V6.js} +68 -68
- package/dist/{chunk-IFXPHVPY.js → chunk-NPYYDTXS.js} +3 -3
- package/dist/{chunk-DYGRTWAI.js → chunk-O44MJTLR.js} +3 -3
- package/dist/{chunk-HDANNK4A.js → chunk-OZWAITII.js} +9 -9
- package/dist/{chunk-ONNSFD73.js → chunk-P7GKTV7N.js} +10 -10
- package/dist/{chunk-373AVIL2.js → chunk-QAEBBTYR.js} +7 -7
- package/dist/{chunk-3ZVSOZZC.js → chunk-QRMKQYCB.js} +2 -2
- package/dist/{chunk-TANWE2ZY.js → chunk-QW7NGUYW.js} +80 -80
- package/dist/{chunk-U4DSFCH5.js → chunk-R3GPRNBT.js} +2 -2
- package/dist/{chunk-SBS2IYTN.js → chunk-RBTZEHXF.js} +3 -3
- package/dist/{chunk-XFQAA2SU.js → chunk-RVAEPPRH.js} +2 -2
- package/dist/{chunk-W5MKVFBQ.js → chunk-RXNMZM6H.js} +5 -5
- package/dist/{chunk-6QJORUHC.js → chunk-RYWNNJK5.js} +2 -2
- package/dist/{chunk-NZ7ML6LG.js → chunk-SH4RY6QX.js} +290 -98
- package/dist/{chunk-ZGNWMGN3.js → chunk-SHHXLI2K.js} +26 -8
- package/dist/{chunk-MLKJUEG3.js → chunk-SL55XKVL.js} +23 -23
- package/dist/{chunk-H5FAYLCR.js → chunk-SPLRKCFV.js} +2 -2
- package/dist/{chunk-XYVPF63S.js → chunk-SXMZNSQ6.js} +8 -8
- package/dist/{chunk-NMHTB346.js → chunk-TT6LN55R.js} +36 -10
- package/dist/{chunk-B5N6EWOM.js → chunk-TXFOQZUQ.js} +3 -3
- package/dist/{chunk-VFRL4G72.js → chunk-UNFQN3TT.js} +3 -3
- package/dist/{chunk-EKS7SAZS.js → chunk-UVHSMANV.js} +53 -61
- package/dist/{chunk-RQHXYL77.js → chunk-V7WCTXEH.js} +5 -7
- package/dist/{chunk-HEMWBHQS.js → chunk-VUWR5YLE.js} +13 -13
- package/dist/{chunk-O6PWEJUV.js → chunk-VXHXSGPU.js} +8 -8
- package/dist/chunk-VYJYDMY6.js +9 -0
- package/dist/{chunk-C4TZP5PQ.js → chunk-WS2X5BB2.js} +5 -5
- package/dist/{chunk-P5JF3U65.js → chunk-WS4BA75E.js} +37 -4
- package/dist/{chunk-HUEFVPYW.js → chunk-WXKSB2N3.js} +3 -3
- package/dist/{chunk-DFCYAEBE.js → chunk-XLP4CNSF.js} +3 -3
- package/dist/{chunk-OCNTMJSY.js → chunk-XPSDDTUZ.js} +3 -3
- package/dist/{chunk-OBRMA2VK.js → chunk-XY4OBD26.js} +3 -3
- package/dist/{chunk-XVOODRNK.js → chunk-Y5XAPLZS.js} +4 -4
- package/dist/{chunk-ZISPEBNM.js → chunk-YCKKL5PD.js} +60 -55
- package/dist/{chunk-XM56DAM7.js → chunk-YR3MNGWZ.js} +8 -8
- package/dist/{chunk-WQZCFVAD.js → chunk-ZC6H2ERE.js} +5 -5
- package/dist/{chunk-UDCKYLBW.js → chunk-ZDVVIJPU.js} +4 -4
- package/dist/{chunk-ENAUSLMP.js → chunk-ZF2CBXT5.js} +3 -3
- package/dist/{chunk-AUYXBKGR.js → chunk-ZOHEHIFS.js} +2 -2
- package/dist/{chunk-3RZ4UJWV.js → chunk-ZPJXWMHK.js} +4 -4
- package/dist/{chunk-A3CT26GX.js → chunk-ZRXDPCMN.js} +2 -2
- package/dist/{chunk-RAGFXELQ.js → chunk-ZYECXDVV.js} +5 -5
- package/dist/cli.js +45 -44
- package/dist/{codegen-command-BAFON45M.js → codegen-command-RDD4GL35.js} +63 -62
- package/dist/codegen.js +2 -2
- package/dist/{commands-IFRAGWGK.js → commands-5ILSWDSV.js} +2 -2
- package/dist/{completion-RTXCODHS.js → completion-UNKBVVDT.js} +2 -2
- package/dist/{config-EHFXNFSP.js → config-NTOASFCA.js} +3 -3
- package/dist/{deploy-command-JW7R3BPW.js → deploy-command-BYAZZF37.js} +52 -51
- package/dist/{deploy-source-ZUPLAL7L.js → deploy-source-QCPZWNJO.js} +27 -26
- package/dist/{dev-env-sync-W7OTV7OD.js → dev-env-sync-6MHK3UHC.js} +46 -45
- package/dist/{display-name-hint-BKPMISQU.js → display-name-hint-MYXCCAOP.js} +10 -10
- package/dist/{env-example-refresh-TS7WBVZQ.js → env-example-refresh-MQWHY7ZS.js} +64 -63
- package/dist/{env-pull-command-5IYXQ2WK.js → env-pull-command-KUIEKBTM.js} +42 -41
- package/dist/{env-target-TQBPLU2S.js → env-target-Y77RLRS5.js} +9 -9
- package/dist/{env-var-command-AKCWYZPB.js → env-var-command-BZWJD75C.js} +37 -36
- package/dist/{ephemeral-CART6DIR.js → ephemeral-VLPRDNEJ.js} +8 -8
- package/dist/{ephemeral-command-SJYH6XRS.js → ephemeral-command-SYKDPALW.js} +43 -42
- package/dist/{ephemeral-state-HPKSKC4Y.js → ephemeral-state-RUOU2GFS.js} +7 -7
- package/dist/{generate-command-FSCFZPOJ.js → generate-command-CSQDQZSW.js} +68 -67
- package/dist/{gitignore-6IJ66XME.js → gitignore-OQGYM7DO.js} +15 -14
- package/dist/{guards-RU4C7TFG.js → guards-JUYBDLZY.js} +6 -6
- package/dist/{impersonate-command-IH4HMSS3.js → impersonate-command-HSFCZBV6.js} +33 -32
- package/dist/{import-RUBCGLCA.js → import-T4ZTOTBT.js} +4 -4
- package/dist/index.d.ts +105 -109
- package/dist/index.js +11 -11
- package/dist/{init-command-STB4YSAK.js → init-command-6Z7QNVDY.js} +50 -51
- package/dist/{init-modules-YIZYPCMM.js → init-modules-BL2SR5RK.js} +7 -7
- package/dist/{init-web-OGKACAOC.js → init-web-DYE2FEXL.js} +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +68 -62
- package/dist/{keep-data-merge-VRKS64JK.js → keep-data-merge-SHF75FC7.js} +24 -24
- package/dist/{lambda-config-reconcile-FXPDH2U5.js → lambda-config-reconcile-VOBVZPWS.js} +3 -3
- package/dist/{landing-record-5EFK7RI6.js → landing-record-7EOLEKH3.js} +17 -16
- package/dist/{live-diff-HARRGFV4.js → live-diff-M2OLXKM6.js} +6 -6
- package/dist/{local-engine-choice-TRTEJVMV.js → local-engine-choice-TOC3UYZZ.js} +30 -29
- package/dist/{local-engine-command-2FK2PE2P.js → local-engine-command-6KSRDZBR.js} +35 -34
- package/dist/{local-engine-deploy-ZZVHBI2X.js → local-engine-deploy-4N4NFZ4T.js} +11 -11
- package/dist/{local-engine-lookup-QFRKO35F.js → local-engine-lookup-AQTUGSBT.js} +2 -2
- package/dist/{local-engine-mcp-bridge-T2EFRRAF.js → local-engine-mcp-bridge-AMYRH4SY.js} +9 -9
- package/dist/{local-engine-mcp-command-FB7EOGG6.js → local-engine-mcp-command-XTP3EATV.js} +41 -48
- package/dist/{local-engine-process-XH35DURU.js → local-engine-process-OD5OSWDG.js} +6 -6
- package/dist/{local-engine-update-check-HAXE7BVG.js → local-engine-update-check-G3YCBXRE.js} +4 -4
- package/dist/{lock-commands-7PBZIRWR.js → lock-commands-437P6BHY.js} +50 -49
- package/dist/{login-command-2O6GRMTH.js → login-command-BNRDAVFV.js} +23 -22
- package/dist/{logout-command-RZXGW3O2.js → logout-command-FCGCHB7Y.js} +13 -12
- package/dist/{loop-QHZD37KX.js → loop-WOAEXMTC.js} +6 -6
- package/dist/{marketplace-command-NCMLGIMS.js → marketplace-command-SUBJZPJV.js} +33 -33
- package/dist/{marketplace-resolve-HPCRNV5O.js → marketplace-resolve-JR4BBJ6K.js} +5 -5
- package/dist/{meta-client-DYYM5F5G.js → meta-client-AYJS3RQ3.js} +10 -10
- package/dist/{module-manifest-EFE6JBZW.js → module-manifest-63I5GRK4.js} +3 -3
- package/dist/node.d.ts +2 -2
- package/dist/node.js +50 -49
- package/dist/{operation-outcome-SHNROAFA.js → operation-outcome-ORQPVJKB.js} +19 -19
- package/dist/{output-target-PSSR3E4N.js → output-target-KNHHNDM3.js} +16 -15
- package/dist/{plan-disclosure-WEMB5ZJ2.js → plan-disclosure-4DUFRGCP.js} +16 -16
- package/dist/{plugin-contributions-U5PAZKBE.js → plugin-contributions-YYEP7IWH.js} +4 -4
- package/dist/{plugin-prompt-O5PAMV5B.js → plugin-prompt-GKCQKNYI.js} +4 -4
- package/dist/{plugin-questions-ZVYNKDRB.js → plugin-questions-P7MA3TYI.js} +3 -3
- package/dist/{preflight-command-6F7JF3YQ.js → preflight-command-32GFVKSN.js} +56 -55
- package/dist/{profile-command-5AOGD6GV.js → profile-command-U2XTKOMF.js} +24 -23
- package/dist/{profile-pointer-VTOZDBHM.js → profile-pointer-JJ7K5O2R.js} +3 -3
- package/dist/{project-dependency-EZNTHMWI.js → project-dependency-X3KCWBK5.js} +6 -6
- package/dist/{project-sdk-ZGJM4WYQ.js → project-sdk-YHJZRCNB.js} +3 -3
- package/dist/promote-command-OO56IZBT.js +148 -0
- package/dist/{prompt-F7UVH4GP.js → prompt-QNMJIWNI.js} +3 -3
- package/dist/{publish-command-6VVSJPLI.js → publish-command-5ZVZ6IYT.js} +55 -54
- package/dist/{pull-command-GE2WUEUF.js → pull-command-LT5PCEIW.js} +66 -65
- package/dist/{pull-superseded-77UZ7CHH.js → pull-superseded-6HADGGC5.js} +3 -3
- package/dist/{release-command-55RTR674.js → release-command-RBUOXIH7.js} +60 -59
- package/dist/{release-ns-command-5XPZ2B6N.js → release-ns-command-LDN5DOKQ.js} +78 -77
- package/dist/{retry-command-S5QALD5Z.js → retry-command-LFZYEVRU.js} +7 -7
- package/dist/{routes-manifest-ET2TTSCL.js → routes-manifest-BMAOL6WN.js} +6 -6
- package/dist/{routes-manifest-file-42FTJHRY.js → routes-manifest-file-MPOVKD6N.js} +9 -9
- package/dist/scaffold.d.ts +0 -5
- package/dist/scaffold.js +2 -2
- package/dist/{secrets-file-N5IF265R.js → secrets-file-7QM3ORGX.js} +15 -14
- package/dist/{secrets-fill-command-35WKBURT.js → secrets-fill-command-OZ537VOD.js} +49 -48
- package/dist/{seed-5YLQRT2D.js → seed-ATGBOEJP.js} +6 -6
- package/dist/{source-resolve-JXGOVJD3.js → source-resolve-QYSWA3QR.js} +17 -17
- package/dist/{static-host-TQP3FXPI.js → static-host-MO4VDHL7.js} +4 -4
- package/dist/{status-command-G3DFRMU7.js → status-command-IEB4K7ME.js} +60 -34
- package/dist/{store-ZE5BXCOW.js → store-AJX4MC7Y.js} +5 -5
- package/dist/{store-BM7SQcUt.d.ts → store-DspGMsFY.d.ts} +112 -118
- package/dist/{sync-baseline-JGAAOS25.js → sync-baseline-IB7MABZO.js} +7 -7
- package/dist/{sync-contributions-7T4CSPVQ.js → sync-contributions-DLV5JZUK.js} +8 -8
- package/dist/{sync-record-ILWS44DG.js → sync-record-NE62ERA3.js} +9 -9
- package/dist/{table-V3LTQUY6.js → table-TFD4ZQXA.js} +8 -8
- package/dist/{tables-command-7NUOZBHX.js → tables-command-IMCVPUFY.js} +35 -34
- package/dist/{tenant-7WUS7Q6V.js → tenant-IIYECNWO.js} +9 -9
- package/dist/{tenant-command-JGEHRKN7.js → tenant-command-77KG76MU.js} +83 -82
- package/dist/{test-command-2LNEA6GK.js → test-command-NSPU4RUO.js} +32 -31
- package/dist/{tests-ENFUACKD.js → tests-JWQRHFCT.js} +5 -5
- package/dist/{token-DWNH44NW.js → token-BDHD7GU3.js} +9 -8
- package/dist/{toolchain-hooks-QIFGPGH2.js → toolchain-hooks-QHJRDCRW.js} +8 -8
- package/dist/{toolchain-modules-F4DUMWTO.js → toolchain-modules-LY7BMYG6.js} +4 -4
- package/dist/{toolchain-peers-K44IINPG.js → toolchain-peers-FQJBTKEB.js} +7 -7
- package/dist/{tracked-backend-ZFXVLBBJ.js → tracked-backend-BIR7YJCE.js} +30 -29
- package/dist/{update-check-KBHT63GJ.js → update-check-JDARCXAX.js} +48 -47
- package/dist/{upgrade-command-CI543AZP.js → upgrade-command-YCADQCIA.js} +51 -50
- package/dist/{whoami-command-77DXENWD.js → whoami-command-IZCTUPM4.js} +12 -11
- package/dist/{workspace-RI5C77BZ.js → workspace-TK52V7WO.js} +4 -4
- package/dist/{workspace-binding-PR57NBGH.js → workspace-binding-3UT6PP4B.js} +11 -10
- package/dist/{workspace-command-6HHVFQKW.js → workspace-command-46OCB6XT.js} +79 -78
- package/dist/{workspace-env-2APJEASO.js → workspace-env-PVPOWFNZ.js} +12 -11
- package/dist/{workspace-export-GHMUSX2P.js → workspace-export-PUEXKZNS.js} +4 -4
- package/dist/{writable-Y6CE2CGK.js → writable-LMMG4AFZ.js} +3 -3
- package/dist/{xano-2A2GT7EH.js → xano-EOUVXNQX.js} +7 -7
- package/dist/{xanosdk-import-HBQH3ZBS.js → xanosdk-import-XXJT365U.js} +5 -5
- package/dist/{xanosdk-project-W45IR3Q7.js → xanosdk-project-CJKRLQ6U.js} +13 -12
- package/guides/README.md +3 -3
- package/guides/authoring.md +11 -11
- package/guides/bundle.md +2 -2
- package/guides/cli.md +179 -176
- package/guides/codegen.md +17 -17
- package/guides/codes.md +3 -3
- package/guides/coverage.md +2 -2
- package/guides/deploying.md +123 -123
- package/guides/environment.md +30 -30
- package/guides/marketplace.md +24 -24
- package/guides/module-contract.md +9 -9
- package/guides/object-kinds.md +4 -4
- package/guides/project-structure.md +4 -4
- package/guides/scaffold.md +22 -22
- package/guides/typed-frontend.md +3 -3
- package/llms/client.md +4 -4
- package/llms/errors.md +2 -2
- package/llms/fields.md +1 -1
- package/llms/kinds-agent-mcp.md +1 -1
- package/llms/kinds-realtime.md +2 -2
- package/llms/lock.md +3 -3
- package/llms/statements-calls.md +1 -1
- package/llms/statements-catalog.md +57 -57
- package/llms/statements-runtime.md +2 -2
- package/llms/tests.md +3 -3
- package/llms/toolchain.md +2 -2
- package/llms-full.txt +113 -110
- package/llms.txt +35 -32
- package/manifest.json +82 -152
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +7 -7
- package/dist/promote-command-O2NRRFLK.js +0 -147
package/guides/codegen.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pulling an existing workspace
|
|
2
2
|
|
|
3
|
-
What `
|
|
3
|
+
What `npx @xano/sdk init --from` writes, how faithful the pull is, and how to read its report.
|
|
4
4
|
|
|
5
5
|
## Running it
|
|
6
6
|
|
|
@@ -8,10 +8,10 @@ A pull is `init` with `xano/` filled from an existing backend instead of the emp
|
|
|
8
8
|
so it is the scaffold command with one extra flag:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
npx @xano/sdk init my-app --from workspace # your real workspace (the one your login is scoped to)
|
|
12
|
+
npx @xano/sdk init my-app --from ephemeral:my-env # a named ephemeral environment
|
|
13
|
+
npx @xano/sdk init my-app --from local:<name> # a running Xano Engine (`local list`) — no login
|
|
14
|
+
npx @xano/sdk init my-app --from ./ws.json # a bundle already on disk — offline, no login
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
`--from` takes any backend in [the CLI's one grammar](cli.md#naming-a-backend) —
|
|
@@ -43,16 +43,16 @@ cd my-existing-app && npx @xano/sdk init --from workspace # add the pulled bac
|
|
|
43
43
|
|
|
44
44
|
### Just the tree: `generate`
|
|
45
45
|
|
|
46
|
-
`
|
|
46
|
+
`npx @xano/sdk generate <source>` writes the same decoded tree `init --from` puts in `xano/`, and nothing
|
|
47
47
|
else — no `package.json`, no frontend, no round-trip check. Use it to drop a backend into a repo
|
|
48
48
|
that already has its own shell, or to read one.
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
npx @xano/sdk generate workspace # → ./xano
|
|
52
|
+
npx @xano/sdk generate release:v1 --out ./backend # a stored release
|
|
53
|
+
npx @xano/sdk generate ephemeral:my-env # also tenant:<name>, local[:<name>]
|
|
54
|
+
npx @xano/sdk generate ./ws.json # a bundle on disk — offline, no login
|
|
55
|
+
npx @xano/sdk generate workspace --branch staging # --branch applies to `workspace` only
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
The output directory must be new, empty, or a tree an earlier decode wrote — `generate` and
|
|
@@ -70,9 +70,9 @@ generating a different backend into a tree cannot carry its old identities forwa
|
|
|
70
70
|
`--branch <label>` reads that branch instead of the live one:
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
npx @xano/sdk init review-staging --from workspace --branch staging
|
|
74
|
+
npx @xano/sdk pull workspace --branch staging # refresh that tree from the same branch
|
|
75
|
+
npx @xano/sdk workspace export --branch staging --path - # the raw bundle, same selector
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Only logic differs. Tables and microservices are shared by every branch, so the schema in the
|
|
@@ -177,7 +177,7 @@ trackable release over release and gateable in CI without scraping output.
|
|
|
177
177
|
Re-pulling is a real workflow: a second `init --from` into the same directory refreshes
|
|
178
178
|
`xano/` and leaves the rest of the project — your `package.json`, your `frontend/` —
|
|
179
179
|
exactly as you left it. No `--force` needed, because the tree carries a marker saying it
|
|
180
|
-
was decoded. It and `
|
|
180
|
+
was decoded. It and `npx @xano/sdk pull` share one planner: before any write it lists the files it
|
|
181
181
|
will delete and the files it will rewrite — telling a file you edited since the last decode
|
|
182
182
|
from one only the source changed — refuses a `xano/` git reports as dirty, and asks; without
|
|
183
183
|
a terminal, `--yes` answers. It removes only files the previous decode wrote; one you added
|
|
@@ -189,9 +189,9 @@ over a `xano/` no decode wrote follows the same rules.
|
|
|
189
189
|
> decodes, so commit before one (an existing `xano/` that isn't a previous pull is a clash, and
|
|
190
190
|
> needs `--force`).
|
|
191
191
|
> It carries schema only — no table rows or stored files.
|
|
192
|
-
> `
|
|
192
|
+
> `npx @xano/sdk deploy` sends it to the Xano Engine on this machine (`--ephemeral`: a disposable
|
|
193
193
|
> ephemeral environment) as a *full replace*;
|
|
194
|
-
> `
|
|
194
|
+
> `npx @xano/sdk promote <release>` or `npx @xano/sdk deploy --to workspace` merges it into your real
|
|
195
195
|
> workspace. Workspace env vars are declared by name only — their values never enter the tree.
|
|
196
196
|
|
|
197
197
|
---
|
package/guides/codes.md
CHANGED
|
@@ -107,7 +107,7 @@ Printed as `! …` on stderr, and as `{ code, message }` in a `--json` document'
|
|
|
107
107
|
| `local.runtime-kept` | Kept the unpacked runtime (…): … still running on it. |
|
|
108
108
|
| `local.stale` | … is running …, but the engine cached here is …. |
|
|
109
109
|
| `local.stop-failed` | … was listed as running but did not stop…. |
|
|
110
|
-
| `local.version-invalid` | … This deploy runs the latest Xano Engine and the field is left as written — set it to a version like "v0.1.5", or run `
|
|
110
|
+
| `local.version-invalid` | … This deploy runs the latest Xano Engine and the field is left as written — set it to a version like "v0.1.5", or run `npx @xano/sdk local update` to pin one. |
|
|
111
111
|
| `lock.ceded-canonical` | A lock entry kept its guid but ceded its canonical to a live object; a rename moves the entry so the object keeps its URL. |
|
|
112
112
|
| `lock.created-in-ci` | This lock was created in CI, which means the repository does not have one. |
|
|
113
113
|
| `lock.dropped-entry` | A stale lock entry was dropped because its identity reappeared under a live name (a reverted or identity-keeping rename). |
|
|
@@ -125,7 +125,7 @@ Printed as `! …` on stderr, and as `{ code, message }` in a `--json` document'
|
|
|
125
125
|
| `lock.rename-unchecked` | Could not evaluate … to check this rename, so nothing confirms "…" was renamed in code. |
|
|
126
126
|
| `lock.repinned-table` | A table's def pins a new guid; xano.lock keeps the old one as `replaced`, so a keep-data deploy into an environment still holding it refuses rather than dropping its rows. |
|
|
127
127
|
| `lock.repointed` | None of xano.lock's entries appear in …, so this tree now points at a different backend. |
|
|
128
|
-
| `lock.root-shadowed` | A xano.lock also sits at the project root, but `
|
|
128
|
+
| `lock.root-shadowed` | A xano.lock also sits at the project root, but `npx @xano/sdk export` reads … (beside …), so …. |
|
|
129
129
|
| `lock.write-failed` | Could not record the source's identities in xano.lock (…). |
|
|
130
130
|
| `login.client-reregistered` | The registered client was rejected — re-registering and retrying once. |
|
|
131
131
|
| `login.no-refresh-token` | No refresh token was issued (offline_access not granted); push will require re-login once the access token expires. |
|
|
@@ -201,7 +201,7 @@ Printed as `! …` on stderr, and as `{ code, message }` in a `--json` document'
|
|
|
201
201
|
| `promote.seed-rows` | "…" carries rows for … table… (…), and they are not written: a promote lands logic on a branch, and tables are shared by every branch. |
|
|
202
202
|
| `promote.server-release` | `promote` lands a release the server holds, so the local pre-flight did not run; what it checked instead is listed. |
|
|
203
203
|
| `promote.suffixed-rename` | … look… like a suffixed rename of a declared name — check it is the object you meant. |
|
|
204
|
-
| `promote.unverified` | Contents NOT verified — the release landed, but verification could not run (…) — check what landed with `
|
|
204
|
+
| `promote.unverified` | Contents NOT verified — the release landed, but verification could not run (…) — check what landed with `npx @xano/sdk workspace export --branch … --path -…` |
|
|
205
205
|
| `publish.unbuilt-source` | The directory being published looks like frontend source, not a build output. |
|
|
206
206
|
| `pull.env-check-failed` | Could not check …/… for missing values (…). |
|
|
207
207
|
| `pull.kept-duplicates` | … kept file… objects the decoded tree declares too. |
|
package/guides/coverage.md
CHANGED
|
@@ -40,7 +40,7 @@ runtime (Xano SDK only compiles), and generating engine-side numeric ids/timesta
|
|
|
40
40
|
|
|
41
41
|
**Deferred (by design)** — folder auto-discovery, and the `service` / `vault` / `branch`
|
|
42
42
|
payload sections. (Round-trip decompile is no longer deferred: that is
|
|
43
|
-
`
|
|
43
|
+
`npx @xano/sdk init --from`, in [Pulling an existing workspace](codegen.md); nor is `workflow_test` — it is a
|
|
44
44
|
first-class kind, see `workflowTest` in [Object kinds](object-kinds.md).) `InferResponse`
|
|
45
45
|
auto-derivation covers the object-literal and single-`db`-variable cases (matching the engine's
|
|
46
46
|
static walk), and follows a CALL into the object it invokes (`s.function.call`/`.run`,
|
|
@@ -55,7 +55,7 @@ can learn the SDK without reading source:
|
|
|
55
55
|
|
|
56
56
|
- **`llms.txt`** — the always-read router: the mental model, the deploy contract, control
|
|
57
57
|
flow, the non-obvious rules in `## Gotchas`, and a `## Topic files` list naming each
|
|
58
|
-
**`llms/*.md`** and when to open it. It does not document the CLI — `
|
|
58
|
+
**`llms/*.md`** and when to open it. It does not document the CLI — `npx @xano/sdk <command>
|
|
59
59
|
--help` and the `cli` array in `manifest.json` do, from the same registry that generates
|
|
60
60
|
the shell completions. The written version is the [CLI guide](cli.md).
|
|
61
61
|
- **`llms/*.md`** — one file per surface (object def shapes, statements, values, fields,
|