caffeinated-whale-cli 3.6.0__tar.gz → 3.6.1__tar.gz
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.
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/PKG-INFO +99 -20
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/README.md +98 -19
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/pyproject.toml +1 -1
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/__init__.py +1 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/apps.py +37 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/axi.py +175 -14
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/commands/deps_ui.py +197 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/init.py +4 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/new_bench.py +17 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/new_site.py +22 -6
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/serve.py +72 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/status.py +8 -13
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/update.py +35 -6
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/core/app_deps.py +1512 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/apps.py +128 -7
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/doctor.py +1 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/new_bench.py +24 -2
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/new_site.py +76 -19
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/open.py +3 -3
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/protocol.py +3 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/resolvers.py +332 -85
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/restore.py +1 -5
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/scale.py +5 -12
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/site_icons.py +2 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/start.py +26 -35
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/status.py +17 -15
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/supervision.py +12 -102
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/update.py +454 -33
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/update_preflight.py +88 -152
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/core/url.py +254 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/jobs.py +31 -16
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Advisories-BwD5d9yc.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Advisories-CBgZMwoM.js +2 -2
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/AppNameCell-BObY_ijk.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Apps-BnpRL5vk.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Apps-BPPyCuW1.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Backups-DuZG945Y.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Backups-CXylE2hz.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Bench-878vypnM.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Bench-CBUzHhFz.js +2 -2
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-KxqdaA8H.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-BpVXcqf6.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/DevModeBadge-CKqzZ3pg.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/DevModeBadge-ByEvdhaS.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-EFBOFauz.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-C8wxDC1C.js +2 -2
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Instance-CsVGeq1a.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Instance-B7fJ6p1L.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Instances-BI1D39oe.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Instances-CJfx2228.js +1 -1
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Job-ByQ4ybGX.js +3 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/JobState-B_BoXGfD.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/JobState-CGY7L4t8.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Jobs-CeUUynPG.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Jobs-mqf4ySNT.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/ListRows.vue_vue_type_script_setup_true_lang-K_Z_kwi_.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/ListRows.vue_vue_type_script_setup_true_lang-hOfO_scP.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/PageHead-WMcwe55i.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/PageHead-ywkLInll.js +1 -1
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/PageHeader.vue_vue_type_script_setup_true_lang-BdNq_puu.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-iRcuHiHD.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-BuHUhl3r.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-QpCX2Up4.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-DnzlCsvD.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Schedules-DWuj2QdS.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Schedules-CNxjmssz.js +1 -1
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Site-5FDMZIun.js +9 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Sites-nJuY7saH.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/Sites-C5CVzP_x.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/TabButtons.vue_vue_type_script_setup_true_lang-Bz6tZ6dW.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/TabButtons.vue_vue_type_script_setup_true_lang-BP3gtvhb.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-CjQYYLzZ.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-CFzuYIvo.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-MA1-_mrL.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-CMG2Wd6w.js +1 -1
- caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/index-CyatF_BF.js +39 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/index-CxwZM3Uv.css → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/index-D3Z22wSo.css +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/set-menu-Bw0p19lg.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/set-menu-BN1T1yXA.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/tabs-DDTAQ6JL.js → caffeinated_whale_cli-3.6.1/src/caffeinated_whale_cli/webui/dist/assets/tabs-DftXRAc4.js +1 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/index.html +2 -2
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli.egg-info/SOURCES.txt +30 -28
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/__init__.py +0 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/core/url.py +0 -154
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/AppNameCell-bnOE2s0N.js +0 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Job-8lgOZR6Q.js +0 -3
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/PageHeader.vue_vue_type_script_setup_true_lang-B8sbkm9C.js +0 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Site-DbHMvR70.js +0 -9
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/index-Bd3H8ap1.js +0 -39
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/LICENSE +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/setup.cfg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/__main__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/bridge.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/admin.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/backup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/backups.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/config.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/db_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/doctor.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/integrations.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/label.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/list.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/open.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/remote.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/restart.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/restore.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/rm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/rm_site.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/run.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/scale.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/schedule.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/self_update.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/setup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/start.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/stop.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/ui.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/unlock.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/commands/where.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/accounts.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/advisories.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/app_catalog.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/auto_inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/backup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/backup_crypto.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/backup_drill.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/backup_store.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/bench_ops.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/bench_read.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/cloudflare.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/community.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/config.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/cred_bridge.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/credbridge.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/daemon_recovery.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/db_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/db_password.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/directory.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/docker.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/editors.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/envelope.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/errors.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/exec_stream.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/failure_causes.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/fleet.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/git_refs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/hosts.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/init.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/integrations.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/label.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/ldap_client.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/list.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/metrics.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/npm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/publish.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/remote_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/restart.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/rm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/rm_site.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/run.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/s3.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/schedules.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/self_update.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/setup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/site_logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/stop.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/transfer.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/unlock.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/updates.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/version.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/webapi.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/core/where.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/main.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/update_notice.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/agent_hooks.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/auto_inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/bench_labels.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/bench_sites.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/cache.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/completion_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/config_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/console.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/cred_daemon.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/daemon_identity.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/db_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/docker_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/port_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/sendme_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/shared_home.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/signals.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/startup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/tips.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/toon.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/utils/vscode_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/Inter-Italic.var-BGHziHgI.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/Inter.var-C9xDBOS3.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/ListRows-CejsiiPF.css +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/code-insiders--L5huIRx.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/code-ofeWxTsy.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/cursor-jGcLH-b0.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/assets/opsz-DreOFYE_.css +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/csp.json +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/logo-whale.png +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.6.1}/src/caffeinated_whale_cli/webui/dist/theme-boot.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: caffeinated-whale-cli
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.1
|
|
4
4
|
Summary: A CLI tool to help manage Frappe Docker instances.
|
|
5
5
|
Author-email: Christopher McKay <mckay.christopher73@outlook.com>
|
|
6
6
|
License: MIT
|
|
@@ -461,6 +461,9 @@ cwcli new-bench [OPTIONS] PROJECT_NAME BENCH_NAME
|
|
|
461
461
|
| `--frappe-url TEXT` | A Frappe fork to build from (private forks use the credential bridge) |
|
|
462
462
|
| `--erpnext` | Install ERPNext on the first site |
|
|
463
463
|
| `-a`, `--app TEXT` | An extra app (git URL or name) to fetch and install on the first site (repeatable) |
|
|
464
|
+
| `--with-deps` | Fetch and install the apps each `--app` requires first; the apps are checked after the bench is built, so without it an app with a missing required app is reported as failed |
|
|
465
|
+
| `--ignore-frappe-range` | Install an extra app although its declared Frappe range does not fit the new bench |
|
|
466
|
+
| `--dep-source APP=URL` | Which of the apps catalog's repositories named APP to fetch a required app from, when it holds several; a repository not in the catalog is refused (repeatable) |
|
|
464
467
|
| `--admin-password TEXT` | Administrator password for the first site |
|
|
465
468
|
| `--db-root-password TEXT` | The instance's existing MariaDB root password; it does not set a new one (default: the one remembered at init, else `123`; env `CWCLI_DB_ROOT_PASSWORD`) |
|
|
466
469
|
| `-y`, `--yes` | Auto-start a stopped instance without prompting |
|
|
@@ -496,6 +499,9 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
496
499
|
|--------|-------------|
|
|
497
500
|
| `--bench TEXT` | Which bench: its numeric index or label |
|
|
498
501
|
| `-a`, `--app TEXT` | An app already on the bench to install on the site (repeatable) |
|
|
502
|
+
| `--with-deps` | Fetch and install the apps the picked apps require first (see [compatibility and required apps](#apps---manage-frappe-apps)); a script without it refuses when one is missing |
|
|
503
|
+
| `--ignore-frappe-range` | Install although an app's declared Frappe range does not fit the bench |
|
|
504
|
+
| `--dep-source APP=URL` | Which of the apps catalog's repositories named APP to fetch a required app from, when it holds several; a repository not in the catalog is refused (repeatable) |
|
|
499
505
|
| `--default` | Make it the bench's default site |
|
|
500
506
|
| `--dev-mode` | Turn developer mode on for the new site |
|
|
501
507
|
| `--admin-password TEXT` | Administrator password |
|
|
@@ -506,6 +512,7 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
506
512
|
The Administrator password is resolved the same way as for `new-bench`: the flag, then `CWCLI_ADMIN_PASSWORD`, then a hidden prompt, and a non-interactive session with neither refuses with exit 2.
|
|
507
513
|
A site name that already exists on the bench is refused, and every `--app` must already be in the bench's `apps/` folder (fetch one first with `cwcli apps install <project> <app> --fetch-only`).
|
|
508
514
|
cwcli checks the MariaDB root password with one connection before it creates the site, so a wrong one fails in seconds with nothing changed.
|
|
515
|
+
Every picked app's Frappe range and required apps are checked before the site is created, exactly as for `apps install`, and the apps are installed in dependency order, so a refusal leaves no site behind.
|
|
509
516
|
|
|
510
517
|
```bash
|
|
511
518
|
CWCLI_ADMIN_PASSWORD=... cwcli new-site my-project shop.localhost --app erpnext --default
|
|
@@ -644,7 +651,7 @@ cwcli start [OPTIONS] [PROJECT_NAME]...
|
|
|
644
651
|
|
|
645
652
|
- **Idempotent:** a re-run on an already-running bench is a clean no-op ("already running: N/N processes up"), never a second supervisor stack
|
|
646
653
|
- **Per-process supervision:** each Procfile process runs under supervisord, so one can be restarted or auto-healed without disturbing the others
|
|
647
|
-
- **Waits for the web server:** on a genuine launch, `start` blocks until the bench's **own** web port actually answers before reporting the bench as running, so a scripted `cwcli start && cwcli status` never catches a transient `degraded`. The port is read from that bench's `sites/common_site_config.json`, never assumed - waiting on a hardcoded `:8000` meant `--bench 1` watched bench 0's port and then warned that a healthy bench had not started. If
|
|
654
|
+
- **Waits for the web server:** on a genuine launch, `start` blocks until the bench's **own** web port actually answers before reporting the bench as running, so a scripted `cwcli start && cwcli status` never catches a transient `degraded`. The port is read from that bench's `webserver_port` in `sites/common_site_config.json`, or, when that key is absent, from the `web:` line of the bench's Procfile (see [Site addresses](#site-addresses)), never assumed - waiting on a hardcoded `:8000` meant `--bench 1` watched bench 0's port and then warned that a healthy bench had not started. If neither names a port, the wait is **skipped** (`web_ready` stays unset) rather than spent on a guess. A timeout (60s) does not fail the start (the stack IS launched) - it prints a warning naming the real port and telling you to check `cwcli status` / `cwcli logs`
|
|
648
655
|
- **Host port verification:** on both a genuine launch and an idempotent no-op, `start` warns when the bench's web server has no live host port binding. The warning names the container port and advises recreating the instance with `cwcli init`
|
|
649
656
|
- **Recovers a missing compose network:** when a Docker or WSL crash has removed the instance's own network (`<project>_default`), `start` recreates it, reconnects the stopped containers with their service aliases, and prints a warning, so the instance starts without manual repair. No container is recreated. A missing network the project does not own, or a recreate that fails, stops the start with the exact `docker network` command to run
|
|
650
657
|
- **Port Conflict Detection:** Automatically checks if required ports are available
|
|
@@ -1345,6 +1352,18 @@ It flags an app whose `apps/<app>` is a symlink (naming the real directory it po
|
|
|
1345
1352
|
An app absent from `apps/` is fetched with `bench get-app` (honoring `--branch`); an app already present **and registered** (in `sites/apps.txt`) is not fetched again, so pre-warmed benches install it without failing on the existing directory. A repository URL is matched to the app already on the bench by that checkout's git remote, so a repository named differently from its app (`field-service` holding `field_service`) is recognized too; `bench get-app` alone would clone it into `apps/field-service` and then fail renaming that clone onto the existing `apps/field_service`. A present directory that is *not* a valid install - the leftover of an earlier fetch that cloned but failed at its `pip install` step - is refused with an actionable message telling you to remove it and re-run, rather than reporting a false "get-app ok" and then dumping a raw install traceback on every retry. When a fresh fetch itself fails, the partial `apps/<app>` directory it created is removed so a retry genuinely re-fetches (a pre-existing app directory is never touched).
|
|
1346
1353
|
Each app is a known app name **or** a git URL (passed straight to `bench get-app` when a fetch is needed, so custom apps not in bench's registry work). Apps may be given positionally (matching `apps update`/`apps checkout` and `axi apps install`) or with `-a`/`--app`; both forms combine, and repeat either to install more than one.
|
|
1347
1354
|
`--fetch-only` ensures the app is present without installing it on any site.
|
|
1355
|
+
**Compatibility and required apps.** Before anything is fetched, install reads what each app declares at the exact ref that will land: its Frappe range in `pyproject.toml` (`[tool.bench.frappe-dependencies]`, for example `frappe = ">=15.0.0,<17.0.0"`) and its `required_apps` in `<app>/hooks.py`.
|
|
1356
|
+
An app already on the bench is read from that copy; any other app is read from its repository on the host, so nothing reaches the instance until the check passes.
|
|
1357
|
+
Each range is compared with the version on the bench in bench's own dialect (semantic_version's `SimpleSpec`, so `>=16.0.0` does not accept a `16.0.0-dev` Frappe), and a range bench cannot parse (a space-separated `">=15.0.0 <16.0.0"`) is refused, because bench stops on it too.
|
|
1358
|
+
A Frappe range that does not fit the bench refuses the install with nothing fetched and names the `version-N` branch to pick; `--ignore-frappe-range` installs anyway when you know the declared range is wrong.
|
|
1359
|
+
A range that names another app (`toolkit = ">=0.22.0"`) and does not fit is refused too, with no override: cwcli never switches another app's branch as part of an install, because that moves it for every site on the bench.
|
|
1360
|
+
A required app that the bench does not have, or that a target site does not have installed, is shown as an ordered plan, dependencies first, and fetched and installed only with your consent: a terminal shows the plan and asks once, `--with-deps` answers yes for a script, and a script without it refuses with exit 1 and names the flag.
|
|
1361
|
+
cwcli finds a missing required app in the apps catalog only (your GitHub, every glab host, and Frappe's marketplace index), never by guessing a repository name; an `org/repo` entry only narrows the catalog match to that repository.
|
|
1362
|
+
A required app the catalog does not hold refuses the install as not found in your app sources: add its source to the apps catalog, or fetch it yourself with `--fetch-only`.
|
|
1363
|
+
When the catalog holds several repositories with that name, a terminal asks which to fetch, preselecting the one whose own Frappe range fits; a script passes `--dep-source APP=URL`, which picks only among those repositories (a URL the catalog does not hold is refused before anything is fetched).
|
|
1364
|
+
A required app is fetched at the same branch name as the app that requires it, else `version-N` for the bench's Frappe, else its default branch, and only at a ref whose own Frappe range fits.
|
|
1365
|
+
After each fetch, install reads the fetched copy again and stops before any site install if its declarations changed since the check (the repository moved in between).
|
|
1366
|
+
An app that declares nothing is never given a constraint it did not state, and a declaration that could not be read is reported as a note, never treated as a pass or a refusal.
|
|
1348
1367
|
`--if-not-present` makes install idempotent: an app already installed on a target site is skipped (reported, not reinstalled, with its install hooks never rerun) and the command still exits 0, so "ensure this app is installed" is a single call whose exit code a script can trust; an app the site does not have is still installed normally, and a genuine install failure still exits non-zero.
|
|
1349
1368
|
A bench that is already running may still serve code it loaded before the install and fail to see the new app: install therefore **resynchronises** that bench - it restarts every cwcli-supervised program that runs the bench's Python (`web`, `schedule`, and every worker) and requires every changed site to answer Frappe before it reports success.
|
|
1350
1369
|
Each restart is announced as it happens and the step is reported as a `restart-processes` row, and the command exits non-zero rather than claiming success for a site it could not confirm.
|
|
@@ -1370,6 +1389,10 @@ A checked-out branch the remote's fetch refspec does not cover (a narrow clone s
|
|
|
1370
1389
|
Uncommitted changes and unpushed commits that the reset would discard are reported as data loss, and refuse the update through the data-loss guard below.
|
|
1371
1390
|
Any other check that cannot run or times out is reported as unverified and never blocks.
|
|
1372
1391
|
No preflight can predict a failing patch, schema sync or asset build in the new code; those still surface only in the real run.
|
|
1392
|
+
**Required apps and ranges, for every update.** Every `apps update`, not only a core update, first fetches each named app's tracked branch (objects only, never the checked-out code) and reads what its new code declares.
|
|
1393
|
+
A `required_apps` entry the bench does not have, or that a site with the app installed lacks, refuses the update with nothing pulled, because neither bench nor the migrate would fetch or install it.
|
|
1394
|
+
`--with-deps` fetches and installs those apps on the affected sites first (with the same catalog lookup, branch rule and checks as `apps install`), then the pull and migrate run as usual; `--dep-source APP=URL` picks among the catalog's repositories when it holds several.
|
|
1395
|
+
A new Frappe range that no longer fits the bench is the same `frappe-dependencies` blocker as for a core update, and `--fix-branches` switches the app the same way.
|
|
1373
1396
|
`--no-preflight` skips the checks, for a false positive such as a remote that only a proxy-configured fetch can reach; bench then fails wherever it fails.
|
|
1374
1397
|
It does not skip the data-loss guard below.
|
|
1375
1398
|
The findings ride the report as `preflight` (each with a stable `code`, `severity`, `app`/`site`, `message` and `remedy`) plus `preflight_blocked`, on `--json` and `cwcli axi apps update` alike.
|
|
@@ -1483,8 +1506,9 @@ cwcli update [OPTIONS] PROJECT_NAME
|
|
|
1483
1506
|
| `--skip-maintenance` | Skip enabling maintenance mode for affected sites during update |
|
|
1484
1507
|
| `--skip-requirements` | Do not run `bench setup requirements --python` before migrating (it runs by default for every app on the bench); the output says it was skipped |
|
|
1485
1508
|
| `--force` | Destructive. Updating `frappe`: run the core reset even though it discards uncommitted or unpushed work in that app (see [the data-loss guard](#apps---manage-frappe-apps)). Other apps: hard-reset an app whose `git pull` hits a conflict instead of failing. Either way, re-own app repositories git refuses for dubious ownership |
|
|
1486
|
-
| `--fix-branches` |
|
|
1487
|
-
| `--
|
|
1509
|
+
| `--fix-branches` | Switch an app whose declared frappe-dependencies do not fit this bench to the matching `version-N` branch first, instead of refusing |
|
|
1510
|
+
| `--with-deps` | When an app's new code requires an app the bench or a site lacks, fetch and install it on the sites that have the app first, instead of refusing |
|
|
1511
|
+
| `--no-preflight` | Skip the checks that run before the update: the [`frappe` preflight](#apps---manage-frappe-apps) for a core update, and the required-apps and Frappe-range check for every update; the data-loss guard still runs |
|
|
1488
1512
|
| `-y`, `--yes` | Auto-start stopped containers without prompting |
|
|
1489
1513
|
|
|
1490
1514
|
**What It Does:**
|
|
@@ -2145,13 +2169,15 @@ never started and bench 1 genuinely serves, and reporting `online` there would r
|
|
|
2145
2169
|
as "nothing is started" while a bench serves real traffic. With `--bench` the
|
|
2146
2170
|
instance token is that one bench's token by construction.
|
|
2147
2171
|
|
|
2148
|
-
**The web port is never guessed.**
|
|
2149
|
-
|
|
2150
|
-
`
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2172
|
+
**The web port is never guessed.** Each bench's web port is its `webserver_port`
|
|
2173
|
+
in `sites/common_site_config.json`, or, when that key is absent, the port the
|
|
2174
|
+
`web:` line of the bench's Procfile binds (a bench served by its hostname removes the
|
|
2175
|
+
key on purpose; see [Site addresses](#site-addresses)). If neither names a port,
|
|
2176
|
+
`status` reports `web_port: null` / `web_port_verified: false`, makes **no** HTTP
|
|
2177
|
+
request for that bench, and warns (`status.web_port_unknown`) - it does not fall back
|
|
2178
|
+
to `:8000`, because on a multi-bench instance that measures a *different* bench's web
|
|
2179
|
+
server. A bench whose port is unknown does not `degraded` on that account: cwcli not
|
|
2180
|
+
knowing where to look is a gap in cwcli's knowledge, not a fault in the bench.
|
|
2155
2181
|
|
|
2156
2182
|
**The probe names the bench's site.** Frappe is multi-tenant and routes by the
|
|
2157
2183
|
`Host` header, so a request naming no site is correctly answered `404` by a
|
|
@@ -2161,9 +2187,12 @@ the report says which site it asked for (`web_site`). That keeps the code
|
|
|
2161
2187
|
attributable the same way the port does: it is that site's code, not a claim about
|
|
2162
2188
|
the bench as a whole. A bench with no site recorded probes without a `Host` header,
|
|
2163
2189
|
as before, and reports `web_site: null`. The human `cwcli status` web line shows the
|
|
2164
|
-
**host-reachable**
|
|
2165
|
-
|
|
2166
|
-
the bench
|
|
2190
|
+
**host-reachable** port the probe went to (`web <site>:<host-port> -> <code>`),
|
|
2191
|
+
resolved by mapping the bench's container web port through the container's live host
|
|
2192
|
+
bindings. It names where the bench was probed, not the site's address: the init banner
|
|
2193
|
+
and `cwcli axi url` print the address Frappe builds (see
|
|
2194
|
+
[Site addresses](#site-addresses)), which may be the site's `host_name` or carry
|
|
2195
|
+
`webserver_port`. When that
|
|
2167
2196
|
host binding cannot be resolved it falls back to the container port labelled
|
|
2168
2197
|
`(in-container)` so nobody tries to open an unreachable address.
|
|
2169
2198
|
|
|
@@ -2281,6 +2310,9 @@ Remove bench on a stopped instance starts only its containers, and stops them ag
|
|
|
2281
2310
|
Restarting an instance from the page brings back exactly the benches that were serving (under cwcli's supervisor or `bench start`), unlike `cwcli restart <project>`, which brings back the first bench.
|
|
2282
2311
|
The long-job forms cover `init`, `apps install`, `apps update`, `apps checkout`, `backup`, `migrate`, `run-tests`, `build`, `setup-wizard`, and `self-update`.
|
|
2283
2312
|
`apps update` runs the same preflight as the CLI and shows every finding in the job view before the reset begins.
|
|
2313
|
+
When an update's new code needs an app the bench or a site lacks, the job page offers "Fetch and install it, then retry", which runs the same update again with `--with-deps`.
|
|
2314
|
+
The Install sheet, New site and New bench show the [compatibility and required apps](#apps---manage-frappe-apps) plan live as you pick the app, branch and sites: each app at the ref that would land, its Frappe range against the bench, and each required app with where it comes from and the install order.
|
|
2315
|
+
Start stays disabled while something would refuse the install; the Install sheet's checkbox is the consent to fetch the required apps, New site and New bench add them to the picks with the reason shown, and a Frappe range you know is wrong can be overridden by typing the app's name.
|
|
2284
2316
|
A failed job leads with its plain cause (for example MariaDB rejecting the database root password, or git failing to authenticate) when cwcli recognizes one in the failing step's output, and otherwise says it did not and points at that output.
|
|
2285
2317
|
Interrupt requests use the command's cleanup path; Detach only leaves the page, and an active record whose process disappears becomes `unknown` instead of being reported as failed or successful.
|
|
2286
2318
|
On Windows a job that has not begun its cleanup five minutes after Interrupt, or has not finished it two minutes after beginning, is terminated; one that never began is marked `unknown` because its cleanup may not have run.
|
|
@@ -2364,6 +2396,41 @@ When this machine's Docker stops answering (it refuses the connection, or three
|
|
|
2364
2396
|
A single slow answer from an overloaded Docker is not treated as an outage.
|
|
2365
2397
|
Everything recovers by itself once Docker answers again, with no daemon restart.
|
|
2366
2398
|
|
|
2399
|
+
#### Site addresses
|
|
2400
|
+
|
|
2401
|
+
The site page's **Open site** opens the address Frappe itself builds for the site, with the same rule as `frappe.utils.get_url`, which also builds the site's OAuth and SSO redirect URLs.
|
|
2402
|
+
The `cwcli open` and `cwcli init` banners and `cwcli axi url` print the same address.
|
|
2403
|
+
cwcli reads the site's config merged with the bench's (`sites/<site>/site_config.json` overrides `sites/common_site_config.json`) and builds the address in two steps:
|
|
2404
|
+
|
|
2405
|
+
1. The start of the address is the site's `host_name` (or `hostname`), used as written. Without one, it is the site name, with `https://` when `ssl_certificate` is set and `http://` otherwise. cwcli adds `http://` when `host_name` names no scheme, as Frappe does.
|
|
2406
|
+
2. When that start names no port and neither `restart_supervisor_on_update` nor `restart_systemd_on_update` is set, Frappe adds `:<http_port>`, or `:<webserver_port>` when `http_port` is not set. For example, a site named `site.example.com` on a bench with `webserver_port: 8000` gets `http://site.example.com:8000`, and without either key it gets `http://site.example.com`.
|
|
2407
|
+
|
|
2408
|
+
A `localhost` or `*.localhost` address always opens through the port Docker publishes for it, because the host reaches it only that way.
|
|
2409
|
+
When the address names no port, or names the bench's own web port inside the container (the port Frappe adds from `webserver_port`), cwcli gives it the host port Docker publishes for that web port.
|
|
2410
|
+
For example, an instance created with `--port 21000` opens `http://dev.localhost:8000` as `http://dev.localhost:21000`.
|
|
2411
|
+
A port that is already one of the instance's published host ports, such as `host_name: http://dev.localhost:21000` on that instance, is kept as written.
|
|
2412
|
+
For any other port, cwcli shows no address instead of guessing one.
|
|
2413
|
+
|
|
2414
|
+
`webserver_port` is optional.
|
|
2415
|
+
On a bench that serves its sites by hostname through a reverse proxy, administrators remove it: it is the only way to stop Frappe from adding the bench's internal port to the URLs it builds, such as the OAuth and SSO redirect URLs that go into an identity provider.
|
|
2416
|
+
Without the key, cwcli reads the port the bench's web process listens on from the `web:` line of the bench's Procfile (`bench serve --port 8000`), so Open site, `status`, `start`, process restarts, `scale` and publishing keep working.
|
|
2417
|
+
A `bench serve` with no `--port` listens on 8000.
|
|
2418
|
+
cwcli uses 8000 for such a bench only while no process outside that bench listens on it; on a multi-bench instance where a sibling bench holds 8000, cwcli reports the port as unknown instead of measuring the sibling.
|
|
2419
|
+
|
|
2420
|
+
When Frappe adds `webserver_port` to an address whose name is not `localhost` or `*.localhost`, the address includes the bench's port.
|
|
2421
|
+
That is what Frappe reports for the site, so cwcli keeps the port, but the web UI asks before it opens the address.
|
|
2422
|
+
The warning's "Is ... not the right address?" question lists the commands that remove the key and restart the bench's processes, for example:
|
|
2423
|
+
|
|
2424
|
+
```bash
|
|
2425
|
+
cwcli run my-project config remove-common-config webserver_port # bench's own command
|
|
2426
|
+
cwcli run my-project --site site.example.com set-config webserver_port None # when the site's config sets it
|
|
2427
|
+
cwcli stop my-project --bench 0
|
|
2428
|
+
cwcli start my-project --bench 0
|
|
2429
|
+
```
|
|
2430
|
+
|
|
2431
|
+
After the change, copy any OAuth or SSO redirect URL from Frappe again, because URLs made while the key was set include the port.
|
|
2432
|
+
`cwcli axi url` reports the same case as `internal_port: true`, with a `url.internal_port` warning and the commands in `fix`.
|
|
2433
|
+
|
|
2367
2434
|
**Under WSL:** a Windows browser reaches `http://localhost:8765` through WSL's
|
|
2368
2435
|
localhost forwarding; the address `cwcli ui` prints already works from there.
|
|
2369
2436
|
|
|
@@ -3091,6 +3158,14 @@ cwcli axi apps install frappe-one https://github.com/me/myapp --site erp.localho
|
|
|
3091
3158
|
# Idempotent: skip (do not reinstall) an app already on the site and exit 0, so a
|
|
3092
3159
|
# CI step can trust the exit code. A real install failure still exits non-zero.
|
|
3093
3160
|
cwcli axi apps install frappe-one hrms --site erp.localhost --if-not-present
|
|
3161
|
+
# An app that requires another app the site lacks is exit 2 naming --with-deps;
|
|
3162
|
+
# a Frappe range that does not fit is exit 1 with nothing fetched (there is no
|
|
3163
|
+
# override here: the human `cwcli apps install --ignore-frappe-range` is the hatch).
|
|
3164
|
+
cwcli axi apps install frappe-one booking --site erp.localhost --with-deps
|
|
3165
|
+
|
|
3166
|
+
# Read-only: what installing an app would do, as TOON (the order, each range
|
|
3167
|
+
# against the bench, where each required app comes from). Exit 1 when it would refuse.
|
|
3168
|
+
cwcli axi apps plan frappe-one https://github.com/me/myapp --site erp.localhost --branch develop
|
|
3094
3169
|
|
|
3095
3170
|
# Provision a new instance, bench, and site; the report prints as ONE TOON
|
|
3096
3171
|
# document. BLOCKS for the full 10-20 minute run (like axi apps update) and
|
|
@@ -3117,24 +3192,28 @@ cwcli axi config
|
|
|
3117
3192
|
cwcli axi doctor
|
|
3118
3193
|
```
|
|
3119
3194
|
|
|
3120
|
-
`cwcli axi ls`, `cwcli axi where`, `cwcli axi backup`, `cwcli axi unlock`, `cwcli axi stop`, `cwcli axi start`, `cwcli axi status`, `cwcli axi restart`, `cwcli axi inspect`, `cwcli axi benches`, and `cwcli axi label` run on the same logic core as their human counterparts; only the output (always TOON, never JSON) and choice-handling differ. `cwcli axi start` never prompts: an ambiguous multi-bench project is a `--bench` usage error (exit 2), and an unresolved port conflict is a `CONFLICT` error naming `--yes` (exit 1). `cwcli axi unlock` follows `cwcli axi backup`'s conventions exactly: an ambiguous multi-bench project is a `--bench` usage error (exit 2) and a stopped instance is a usage error pointing at `cwcli start` (exit 2). `cwcli axi stop` is idempotent for an agent - stopping an already-stopped project is a success, not an error. `cwcli axi where` answers from the cache, which outlives the instances it describes, so every match carries `project_state` (`present`, `absent`, or `unverified`) and the document carries `verified`: an agent must read those before acting on a hit, because an `absent` row describes an instance that no longer exists and an `unverified` row means the liveness check could not run. An unreachable Docker daemon degrades the whole answer to `unverified` rather than vouching for it, and `--no-verify` skips the check (reporting `unverified`) when a caller has already established liveness. `cwcli axi status` always exits 0, leading with the instance `overall` aggregate (`offline`/`online`/`running`/`degraded`). It reports **every** bench, in one document, under `benches[N]` - with no `--bench` it used to refuse a multi-bench project with exit 2 and send you off to `cwcli axi benches` to poll once per bench, reassembling the instance view from documents that never said which bench they described. The shape is uniform, so `supervisor_up`, `web_http_code`, `processes` and `not_cwcli_supervised` live inside `benches[i]` even for a single-bench project (`benches[0].processes`), and there is one parse path rather than a branch on bench count. Each bench also carries `bench_present` (`present`/`absent`/`unverified`) - the bench LIST comes from the cache, and a bench whose directory was deleted has no marker and no supervisord, which is indistinguishable from one that was simply never started, so it used to read as `online`; the token answers that, and `overall` keeps its four tokens. Each bench also carries `index`, `bench_path`, `label`, its own `overall`, `web_port`/`web_port_verified` (the port that bench's `web_http_code` was actually measured on), and `web_site` (the site it was measured FOR - Frappe routes by `Host`, so the code belongs to that site, and a probe naming no site is answered `404` by a healthy bench). When that port cannot be
|
|
3195
|
+
`cwcli axi ls`, `cwcli axi where`, `cwcli axi backup`, `cwcli axi unlock`, `cwcli axi stop`, `cwcli axi start`, `cwcli axi status`, `cwcli axi restart`, `cwcli axi inspect`, `cwcli axi benches`, and `cwcli axi label` run on the same logic core as their human counterparts; only the output (always TOON, never JSON) and choice-handling differ. `cwcli axi start` never prompts: an ambiguous multi-bench project is a `--bench` usage error (exit 2), and an unresolved port conflict is a `CONFLICT` error naming `--yes` (exit 1). `cwcli axi unlock` follows `cwcli axi backup`'s conventions exactly: an ambiguous multi-bench project is a `--bench` usage error (exit 2) and a stopped instance is a usage error pointing at `cwcli start` (exit 2). `cwcli axi stop` is idempotent for an agent - stopping an already-stopped project is a success, not an error. `cwcli axi where` answers from the cache, which outlives the instances it describes, so every match carries `project_state` (`present`, `absent`, or `unverified`) and the document carries `verified`: an agent must read those before acting on a hit, because an `absent` row describes an instance that no longer exists and an `unverified` row means the liveness check could not run. An unreachable Docker daemon degrades the whole answer to `unverified` rather than vouching for it, and `--no-verify` skips the check (reporting `unverified`) when a caller has already established liveness. `cwcli axi status` always exits 0, leading with the instance `overall` aggregate (`offline`/`online`/`running`/`degraded`). It reports **every** bench, in one document, under `benches[N]` - with no `--bench` it used to refuse a multi-bench project with exit 2 and send you off to `cwcli axi benches` to poll once per bench, reassembling the instance view from documents that never said which bench they described. The shape is uniform, so `supervisor_up`, `web_http_code`, `processes` and `not_cwcli_supervised` live inside `benches[i]` even for a single-bench project (`benches[0].processes`), and there is one parse path rather than a branch on bench count. Each bench also carries `bench_present` (`present`/`absent`/`unverified`) - the bench LIST comes from the cache, and a bench whose directory was deleted has no marker and no supervisord, which is indistinguishable from one that was simply never started, so it used to read as `online`; the token answers that, and `overall` keeps its four tokens. Each bench also carries `index`, `bench_path`, `label`, its own `overall`, `web_port`/`web_port_verified` (the port that bench's `web_http_code` was actually measured on), and `web_site` (the site it was measured FOR - Frappe routes by `Host`, so the code belongs to that site, and a probe naming no site is answered `404` by a healthy bench). When that port cannot be determined it is `null`/`false` and **no probe was made** - cwcli never falls back to `:8000`, because on a multi-bench instance that reports a different bench's web server as this one's. A stopped instance carries `benches: []`. `cwcli axi stop` takes `--bench <index|label>` to stop ONE bench's dev processes, leaving sibling benches and every container running - the inverse of `cwcli axi start --bench`; without it, it stops the whole instance's containers, and either form is idempotent. `cwcli axi restart` requires `--process`; an unknown/ambiguous process is a usage error listing the valid labels (exit 2). `cwcli axi inspect` serves whichever freshness tier answers the request (`served_from` names it) and, unlike every other bench-scoped verb, has deliberately NO `--yes` - a stopped project on the refresh path is a usage error (exit 2) naming `cwcli start`, and a drift escalation that can no longer discover the bench serves the cached data with `degraded: true` and a warning (exit 0). It takes `--bench <index|label>` like every other bench-scoped verb, narrowing the emitted report to one bench; every tier still discovers/refreshes/caches every bench regardless of the selector, and an unknown selector is a `bench.not_found` error (exit 1). Every site also carries `installed_apps_verified`: only a full read actually re-observes an app's installed version and git ref, so a cache or partial read carries the remembered list forward unverified and, when that list is non-empty, adds a warning naming `--update` - an agent must not treat an unverified `installed_apps` entry as the live git state. `cwcli axi benches` is the discovery verb behind every other verb's `--bench`: when a bench-scoped verb reports "multiple benches; pass `--bench <index|label>`", this is what tells you the valid values, and a project that has never been inspected is a structured error naming `cwcli axi inspect` rather than an empty list. Its rows come from the cache, which outlives the benches it describes, so every row carries `state` (`present`, `absent`, or `unverified`) and the document carries `verified` - the same contract `cwcli axi where` uses, cross-checked here against the running container in one exec. An agent must read `state` before acting on a row: `absent` means that bench directory no longer exists, and `unverified` means the check could not run (a stopped project, an unreachable daemon, or `--no-verify`) - never a confirmation. A stale row is reported, never pruned; `cwcli axi inspect <project> --update` is what refreshes it. `cwcli axi label` never starts a stopped project (the label marker lives inside the bench), and listing is deliberately `cwcli axi benches` rather than a mode of the mutation verb. `cwcli axi self-update --check` is read-only and **exits 0 whenever the check succeeds, including when an update is available** - the answer is the `is_outdated` field, not the exit code, because on the agent surface a non-zero exit means an error. This deliberately differs from the human `cwcli self-update --check`, which exits 1 when an update is available so shell scripts can gate on it; the mutating `cwcli axi self-update` is deliberately not offered. `cwcli axi config` is the read-only counterpart of `cwcli config show`: one TOON document carrying the search paths, all three auto-inspect state stores, the credential-bridge state, the tips setting, and the file locations. **No config-mutating axi verbs exist** (no `paths add`/`remove`, no `cache clear`, no `auto-inspect enable`/`disable`): an agent rewriting the user's search paths or wiping the cache is a product decision that deserves its own evidence, so mutations stay on the human `cwcli config` surface (whose reads all have `--json`). `cwcli axi doctor` is the read-only, system-wide counterpart of `cwcli doctor`: one TOON document listing every check with a machine-readable `status` (`pass`/`warn`/`fail`) an agent gates on directly, never by parsing the `detail` text. It exits 0 whenever every check is pass/warn and non-zero only when a check fails, exactly matching the human command, so a fleet can run it before driving any instance and `&&`-chain on the result.
|
|
3121
3196
|
|
|
3122
|
-
`cwcli axi url <project>` answers two questions no other `axi` verb does: what
|
|
3123
|
-
`cwcli axi status`'s `web_http_code` is measured against the bench's CONTAINER-internal port and never states
|
|
3124
|
-
|
|
3197
|
+
`cwcli axi url <project>` answers two questions no other `axi` verb does: what address a site is opened at, and whether its bench is answering HTTP for it right now.
|
|
3198
|
+
`cwcli axi status`'s `web_http_code` is measured against the bench's CONTAINER-internal port and never states that address.
|
|
3199
|
+
The address is built the way the web UI's Open site builds it (see [Site addresses](#site-addresses)): the site's `host_name`, else the site name, with `webserver_port` added the way Frappe's `get_url` adds it; a `localhost`/`*.localhost` address opens on its published host port. `source` says whether the address came from `host_name` or from the site name.
|
|
3200
|
+
When Frappe adds `webserver_port` to an address whose name is not a localhost one, the document carries `internal_port: true`, `webserver_port_in` (which config files set the key), a `url.internal_port` warning, and `fix`, the commands that remove the key and restart the bench's processes.
|
|
3201
|
+
The probe is a fresh `curl` run **every invocation**, inside the container against the bench's own web port (`webserver_port`, else the port the Procfile's `web:` line binds), with the site as the `Host` header.
|
|
3125
3202
|
`cwcli axi status` also performs a fresh one-shot probe; only the human `cwcli status --watch` path suppresses HTTP probing.
|
|
3126
3203
|
Like other single-bench verbs such as `cwcli axi logs`, a stopped project is a usage error naming `cwcli start` (exit 2, no `--yes`) and an ambiguous multi-bench project with no `--bench` is a usage error naming it.
|
|
3127
3204
|
`--site` sends that site as the `Host` header (Frappe routes by `Host`); omitted, it falls back to the bench's own representative site (its default, else its only/first cached site), reported so the observation stays attributable, and a bench with no site at all is probed host-less rather than guessing one.
|
|
3128
|
-
|
|
3205
|
+
A bench whose web port cannot be determined is `url: null` / `reachable: false` with a warning that names the two files to repair; a missing live host binding names `cwcli axi scale` when the bench lies beyond the published range.
|
|
3206
|
+
A localhost `host_name` that names a port this instance does not publish is also `url: null`, with a `url.port_unpublished` warning naming that address and how to correct the site's `host_name`; `reason` carries the warning's text in every `url: null` case.
|
|
3129
3207
|
Neither case guesses `:8000`.
|
|
3130
3208
|
`http_code` is whatever code curl saw, verbatim: a 404 or 500 still counts as `reachable: true`, exactly as `cwcli axi status` already treats "any code is serving".
|
|
3131
3209
|
There is no human `cwcli url` yet.
|
|
3132
|
-
Use `cwcli open`'s banner for the
|
|
3210
|
+
Use `cwcli open`'s banner for the address and `cwcli status` for the HTTP observation.
|
|
3133
3211
|
|
|
3134
3212
|
`cwcli axi apps update` blocks until the update finishes and emits ONE terminal document, exactly as `cwcli axi backup` does for a minutes-long `bench backup`: progress is deliberately not streamed, because N documents on stdout would break the one-TOON-document contract and an agent needs a verdict it can branch on rather than a progress bar (use `cwcli logs`/`cwcli status --watch` if you want live progress). Its exit code is `0` only when the report's `ok` is true; any failed phase, any stuck site, or any unknown outcome exits `1`, and an ambiguous multi-bench project is a `--bench` usage error (exit 2). A stopped project is likewise a usage error pointing at `cwcli start` (exit 2) - there is deliberately no `--yes` on this verb, because starting a container is UI-coupled and the core stays UI-pure about it, so an agent composes `cwcli axi start` then this verb, exactly as `cwcli axi unlock`/`cwcli axi backup` already document. **`failed_*` and `unknown_*` are not the same thing and must not be collapsed:** a `failed_*` item ran and failed, so retrying it is safe, while an `unknown_*` item's output stream was lost - its exit code is unknowable and **it may still be running**, so retrying it (a migration above all) can do real harm. Check before retrying. There is deliberately no `cwcli axi update`: the deprecated `cwcli update` spelling does not get an agent-facing verb. JSON output stays on the human commands (`cwcli ls --json`, `cwcli where --json`, `cwcli apps update --json`). `--force` is available here too and is **destructive**: an app whose git update hits a conflict is hard-reset to its remote tracking branch (discarding local changes) so the update completes, reported in the `force_reset_apps` field; it fires only on a conflict and never on a non-conflict failure. `--skip-requirements` is offered here too: the requirements step that runs before any migrate is skipped and the document says `requirements: skipped`.
|
|
3135
3213
|
Updating `frappe` runs the same preflight as the human command before the core reset.
|
|
3136
3214
|
Its findings are the `preflight` table (`severity,code,app,site,message,remedy`); branch on `code`, never on the message.
|
|
3137
3215
|
A blocker sets `preflight_blocked: true` and exits 1 with nothing run, and `--no-preflight` is available here too, because it skips predictions rather than a safety gate.
|
|
3216
|
+
On this verb `--no-preflight` skips only those core-reset predictions: the required-apps and Frappe-range check still runs for every update and still blocks, because the agent surface has no Frappe-range override.
|
|
3138
3217
|
The data-loss guard runs here too, under `--no-preflight` as well: uncommitted or unpushed work in any app (or work that could not be checked) sets `data_loss_refused: true`, names the apps in `data_loss_apps`, and exits 1 with nothing run.
|
|
3139
3218
|
`--force` accepts the loss; the reset then runs and `data_loss_apps` names the apps it was allowed to discard work in.
|
|
3140
3219
|
|
|
@@ -420,6 +420,9 @@ cwcli new-bench [OPTIONS] PROJECT_NAME BENCH_NAME
|
|
|
420
420
|
| `--frappe-url TEXT` | A Frappe fork to build from (private forks use the credential bridge) |
|
|
421
421
|
| `--erpnext` | Install ERPNext on the first site |
|
|
422
422
|
| `-a`, `--app TEXT` | An extra app (git URL or name) to fetch and install on the first site (repeatable) |
|
|
423
|
+
| `--with-deps` | Fetch and install the apps each `--app` requires first; the apps are checked after the bench is built, so without it an app with a missing required app is reported as failed |
|
|
424
|
+
| `--ignore-frappe-range` | Install an extra app although its declared Frappe range does not fit the new bench |
|
|
425
|
+
| `--dep-source APP=URL` | Which of the apps catalog's repositories named APP to fetch a required app from, when it holds several; a repository not in the catalog is refused (repeatable) |
|
|
423
426
|
| `--admin-password TEXT` | Administrator password for the first site |
|
|
424
427
|
| `--db-root-password TEXT` | The instance's existing MariaDB root password; it does not set a new one (default: the one remembered at init, else `123`; env `CWCLI_DB_ROOT_PASSWORD`) |
|
|
425
428
|
| `-y`, `--yes` | Auto-start a stopped instance without prompting |
|
|
@@ -455,6 +458,9 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
455
458
|
|--------|-------------|
|
|
456
459
|
| `--bench TEXT` | Which bench: its numeric index or label |
|
|
457
460
|
| `-a`, `--app TEXT` | An app already on the bench to install on the site (repeatable) |
|
|
461
|
+
| `--with-deps` | Fetch and install the apps the picked apps require first (see [compatibility and required apps](#apps---manage-frappe-apps)); a script without it refuses when one is missing |
|
|
462
|
+
| `--ignore-frappe-range` | Install although an app's declared Frappe range does not fit the bench |
|
|
463
|
+
| `--dep-source APP=URL` | Which of the apps catalog's repositories named APP to fetch a required app from, when it holds several; a repository not in the catalog is refused (repeatable) |
|
|
458
464
|
| `--default` | Make it the bench's default site |
|
|
459
465
|
| `--dev-mode` | Turn developer mode on for the new site |
|
|
460
466
|
| `--admin-password TEXT` | Administrator password |
|
|
@@ -465,6 +471,7 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
465
471
|
The Administrator password is resolved the same way as for `new-bench`: the flag, then `CWCLI_ADMIN_PASSWORD`, then a hidden prompt, and a non-interactive session with neither refuses with exit 2.
|
|
466
472
|
A site name that already exists on the bench is refused, and every `--app` must already be in the bench's `apps/` folder (fetch one first with `cwcli apps install <project> <app> --fetch-only`).
|
|
467
473
|
cwcli checks the MariaDB root password with one connection before it creates the site, so a wrong one fails in seconds with nothing changed.
|
|
474
|
+
Every picked app's Frappe range and required apps are checked before the site is created, exactly as for `apps install`, and the apps are installed in dependency order, so a refusal leaves no site behind.
|
|
468
475
|
|
|
469
476
|
```bash
|
|
470
477
|
CWCLI_ADMIN_PASSWORD=... cwcli new-site my-project shop.localhost --app erpnext --default
|
|
@@ -603,7 +610,7 @@ cwcli start [OPTIONS] [PROJECT_NAME]...
|
|
|
603
610
|
|
|
604
611
|
- **Idempotent:** a re-run on an already-running bench is a clean no-op ("already running: N/N processes up"), never a second supervisor stack
|
|
605
612
|
- **Per-process supervision:** each Procfile process runs under supervisord, so one can be restarted or auto-healed without disturbing the others
|
|
606
|
-
- **Waits for the web server:** on a genuine launch, `start` blocks until the bench's **own** web port actually answers before reporting the bench as running, so a scripted `cwcli start && cwcli status` never catches a transient `degraded`. The port is read from that bench's `sites/common_site_config.json`, never assumed - waiting on a hardcoded `:8000` meant `--bench 1` watched bench 0's port and then warned that a healthy bench had not started. If
|
|
613
|
+
- **Waits for the web server:** on a genuine launch, `start` blocks until the bench's **own** web port actually answers before reporting the bench as running, so a scripted `cwcli start && cwcli status` never catches a transient `degraded`. The port is read from that bench's `webserver_port` in `sites/common_site_config.json`, or, when that key is absent, from the `web:` line of the bench's Procfile (see [Site addresses](#site-addresses)), never assumed - waiting on a hardcoded `:8000` meant `--bench 1` watched bench 0's port and then warned that a healthy bench had not started. If neither names a port, the wait is **skipped** (`web_ready` stays unset) rather than spent on a guess. A timeout (60s) does not fail the start (the stack IS launched) - it prints a warning naming the real port and telling you to check `cwcli status` / `cwcli logs`
|
|
607
614
|
- **Host port verification:** on both a genuine launch and an idempotent no-op, `start` warns when the bench's web server has no live host port binding. The warning names the container port and advises recreating the instance with `cwcli init`
|
|
608
615
|
- **Recovers a missing compose network:** when a Docker or WSL crash has removed the instance's own network (`<project>_default`), `start` recreates it, reconnects the stopped containers with their service aliases, and prints a warning, so the instance starts without manual repair. No container is recreated. A missing network the project does not own, or a recreate that fails, stops the start with the exact `docker network` command to run
|
|
609
616
|
- **Port Conflict Detection:** Automatically checks if required ports are available
|
|
@@ -1304,6 +1311,18 @@ It flags an app whose `apps/<app>` is a symlink (naming the real directory it po
|
|
|
1304
1311
|
An app absent from `apps/` is fetched with `bench get-app` (honoring `--branch`); an app already present **and registered** (in `sites/apps.txt`) is not fetched again, so pre-warmed benches install it without failing on the existing directory. A repository URL is matched to the app already on the bench by that checkout's git remote, so a repository named differently from its app (`field-service` holding `field_service`) is recognized too; `bench get-app` alone would clone it into `apps/field-service` and then fail renaming that clone onto the existing `apps/field_service`. A present directory that is *not* a valid install - the leftover of an earlier fetch that cloned but failed at its `pip install` step - is refused with an actionable message telling you to remove it and re-run, rather than reporting a false "get-app ok" and then dumping a raw install traceback on every retry. When a fresh fetch itself fails, the partial `apps/<app>` directory it created is removed so a retry genuinely re-fetches (a pre-existing app directory is never touched).
|
|
1305
1312
|
Each app is a known app name **or** a git URL (passed straight to `bench get-app` when a fetch is needed, so custom apps not in bench's registry work). Apps may be given positionally (matching `apps update`/`apps checkout` and `axi apps install`) or with `-a`/`--app`; both forms combine, and repeat either to install more than one.
|
|
1306
1313
|
`--fetch-only` ensures the app is present without installing it on any site.
|
|
1314
|
+
**Compatibility and required apps.** Before anything is fetched, install reads what each app declares at the exact ref that will land: its Frappe range in `pyproject.toml` (`[tool.bench.frappe-dependencies]`, for example `frappe = ">=15.0.0,<17.0.0"`) and its `required_apps` in `<app>/hooks.py`.
|
|
1315
|
+
An app already on the bench is read from that copy; any other app is read from its repository on the host, so nothing reaches the instance until the check passes.
|
|
1316
|
+
Each range is compared with the version on the bench in bench's own dialect (semantic_version's `SimpleSpec`, so `>=16.0.0` does not accept a `16.0.0-dev` Frappe), and a range bench cannot parse (a space-separated `">=15.0.0 <16.0.0"`) is refused, because bench stops on it too.
|
|
1317
|
+
A Frappe range that does not fit the bench refuses the install with nothing fetched and names the `version-N` branch to pick; `--ignore-frappe-range` installs anyway when you know the declared range is wrong.
|
|
1318
|
+
A range that names another app (`toolkit = ">=0.22.0"`) and does not fit is refused too, with no override: cwcli never switches another app's branch as part of an install, because that moves it for every site on the bench.
|
|
1319
|
+
A required app that the bench does not have, or that a target site does not have installed, is shown as an ordered plan, dependencies first, and fetched and installed only with your consent: a terminal shows the plan and asks once, `--with-deps` answers yes for a script, and a script without it refuses with exit 1 and names the flag.
|
|
1320
|
+
cwcli finds a missing required app in the apps catalog only (your GitHub, every glab host, and Frappe's marketplace index), never by guessing a repository name; an `org/repo` entry only narrows the catalog match to that repository.
|
|
1321
|
+
A required app the catalog does not hold refuses the install as not found in your app sources: add its source to the apps catalog, or fetch it yourself with `--fetch-only`.
|
|
1322
|
+
When the catalog holds several repositories with that name, a terminal asks which to fetch, preselecting the one whose own Frappe range fits; a script passes `--dep-source APP=URL`, which picks only among those repositories (a URL the catalog does not hold is refused before anything is fetched).
|
|
1323
|
+
A required app is fetched at the same branch name as the app that requires it, else `version-N` for the bench's Frappe, else its default branch, and only at a ref whose own Frappe range fits.
|
|
1324
|
+
After each fetch, install reads the fetched copy again and stops before any site install if its declarations changed since the check (the repository moved in between).
|
|
1325
|
+
An app that declares nothing is never given a constraint it did not state, and a declaration that could not be read is reported as a note, never treated as a pass or a refusal.
|
|
1307
1326
|
`--if-not-present` makes install idempotent: an app already installed on a target site is skipped (reported, not reinstalled, with its install hooks never rerun) and the command still exits 0, so "ensure this app is installed" is a single call whose exit code a script can trust; an app the site does not have is still installed normally, and a genuine install failure still exits non-zero.
|
|
1308
1327
|
A bench that is already running may still serve code it loaded before the install and fail to see the new app: install therefore **resynchronises** that bench - it restarts every cwcli-supervised program that runs the bench's Python (`web`, `schedule`, and every worker) and requires every changed site to answer Frappe before it reports success.
|
|
1309
1328
|
Each restart is announced as it happens and the step is reported as a `restart-processes` row, and the command exits non-zero rather than claiming success for a site it could not confirm.
|
|
@@ -1329,6 +1348,10 @@ A checked-out branch the remote's fetch refspec does not cover (a narrow clone s
|
|
|
1329
1348
|
Uncommitted changes and unpushed commits that the reset would discard are reported as data loss, and refuse the update through the data-loss guard below.
|
|
1330
1349
|
Any other check that cannot run or times out is reported as unverified and never blocks.
|
|
1331
1350
|
No preflight can predict a failing patch, schema sync or asset build in the new code; those still surface only in the real run.
|
|
1351
|
+
**Required apps and ranges, for every update.** Every `apps update`, not only a core update, first fetches each named app's tracked branch (objects only, never the checked-out code) and reads what its new code declares.
|
|
1352
|
+
A `required_apps` entry the bench does not have, or that a site with the app installed lacks, refuses the update with nothing pulled, because neither bench nor the migrate would fetch or install it.
|
|
1353
|
+
`--with-deps` fetches and installs those apps on the affected sites first (with the same catalog lookup, branch rule and checks as `apps install`), then the pull and migrate run as usual; `--dep-source APP=URL` picks among the catalog's repositories when it holds several.
|
|
1354
|
+
A new Frappe range that no longer fits the bench is the same `frappe-dependencies` blocker as for a core update, and `--fix-branches` switches the app the same way.
|
|
1332
1355
|
`--no-preflight` skips the checks, for a false positive such as a remote that only a proxy-configured fetch can reach; bench then fails wherever it fails.
|
|
1333
1356
|
It does not skip the data-loss guard below.
|
|
1334
1357
|
The findings ride the report as `preflight` (each with a stable `code`, `severity`, `app`/`site`, `message` and `remedy`) plus `preflight_blocked`, on `--json` and `cwcli axi apps update` alike.
|
|
@@ -1442,8 +1465,9 @@ cwcli update [OPTIONS] PROJECT_NAME
|
|
|
1442
1465
|
| `--skip-maintenance` | Skip enabling maintenance mode for affected sites during update |
|
|
1443
1466
|
| `--skip-requirements` | Do not run `bench setup requirements --python` before migrating (it runs by default for every app on the bench); the output says it was skipped |
|
|
1444
1467
|
| `--force` | Destructive. Updating `frappe`: run the core reset even though it discards uncommitted or unpushed work in that app (see [the data-loss guard](#apps---manage-frappe-apps)). Other apps: hard-reset an app whose `git pull` hits a conflict instead of failing. Either way, re-own app repositories git refuses for dubious ownership |
|
|
1445
|
-
| `--fix-branches` |
|
|
1446
|
-
| `--
|
|
1468
|
+
| `--fix-branches` | Switch an app whose declared frappe-dependencies do not fit this bench to the matching `version-N` branch first, instead of refusing |
|
|
1469
|
+
| `--with-deps` | When an app's new code requires an app the bench or a site lacks, fetch and install it on the sites that have the app first, instead of refusing |
|
|
1470
|
+
| `--no-preflight` | Skip the checks that run before the update: the [`frappe` preflight](#apps---manage-frappe-apps) for a core update, and the required-apps and Frappe-range check for every update; the data-loss guard still runs |
|
|
1447
1471
|
| `-y`, `--yes` | Auto-start stopped containers without prompting |
|
|
1448
1472
|
|
|
1449
1473
|
**What It Does:**
|
|
@@ -2104,13 +2128,15 @@ never started and bench 1 genuinely serves, and reporting `online` there would r
|
|
|
2104
2128
|
as "nothing is started" while a bench serves real traffic. With `--bench` the
|
|
2105
2129
|
instance token is that one bench's token by construction.
|
|
2106
2130
|
|
|
2107
|
-
**The web port is never guessed.**
|
|
2108
|
-
|
|
2109
|
-
`
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2131
|
+
**The web port is never guessed.** Each bench's web port is its `webserver_port`
|
|
2132
|
+
in `sites/common_site_config.json`, or, when that key is absent, the port the
|
|
2133
|
+
`web:` line of the bench's Procfile binds (a bench served by its hostname removes the
|
|
2134
|
+
key on purpose; see [Site addresses](#site-addresses)). If neither names a port,
|
|
2135
|
+
`status` reports `web_port: null` / `web_port_verified: false`, makes **no** HTTP
|
|
2136
|
+
request for that bench, and warns (`status.web_port_unknown`) - it does not fall back
|
|
2137
|
+
to `:8000`, because on a multi-bench instance that measures a *different* bench's web
|
|
2138
|
+
server. A bench whose port is unknown does not `degraded` on that account: cwcli not
|
|
2139
|
+
knowing where to look is a gap in cwcli's knowledge, not a fault in the bench.
|
|
2114
2140
|
|
|
2115
2141
|
**The probe names the bench's site.** Frappe is multi-tenant and routes by the
|
|
2116
2142
|
`Host` header, so a request naming no site is correctly answered `404` by a
|
|
@@ -2120,9 +2146,12 @@ the report says which site it asked for (`web_site`). That keeps the code
|
|
|
2120
2146
|
attributable the same way the port does: it is that site's code, not a claim about
|
|
2121
2147
|
the bench as a whole. A bench with no site recorded probes without a `Host` header,
|
|
2122
2148
|
as before, and reports `web_site: null`. The human `cwcli status` web line shows the
|
|
2123
|
-
**host-reachable**
|
|
2124
|
-
|
|
2125
|
-
the bench
|
|
2149
|
+
**host-reachable** port the probe went to (`web <site>:<host-port> -> <code>`),
|
|
2150
|
+
resolved by mapping the bench's container web port through the container's live host
|
|
2151
|
+
bindings. It names where the bench was probed, not the site's address: the init banner
|
|
2152
|
+
and `cwcli axi url` print the address Frappe builds (see
|
|
2153
|
+
[Site addresses](#site-addresses)), which may be the site's `host_name` or carry
|
|
2154
|
+
`webserver_port`. When that
|
|
2126
2155
|
host binding cannot be resolved it falls back to the container port labelled
|
|
2127
2156
|
`(in-container)` so nobody tries to open an unreachable address.
|
|
2128
2157
|
|
|
@@ -2240,6 +2269,9 @@ Remove bench on a stopped instance starts only its containers, and stops them ag
|
|
|
2240
2269
|
Restarting an instance from the page brings back exactly the benches that were serving (under cwcli's supervisor or `bench start`), unlike `cwcli restart <project>`, which brings back the first bench.
|
|
2241
2270
|
The long-job forms cover `init`, `apps install`, `apps update`, `apps checkout`, `backup`, `migrate`, `run-tests`, `build`, `setup-wizard`, and `self-update`.
|
|
2242
2271
|
`apps update` runs the same preflight as the CLI and shows every finding in the job view before the reset begins.
|
|
2272
|
+
When an update's new code needs an app the bench or a site lacks, the job page offers "Fetch and install it, then retry", which runs the same update again with `--with-deps`.
|
|
2273
|
+
The Install sheet, New site and New bench show the [compatibility and required apps](#apps---manage-frappe-apps) plan live as you pick the app, branch and sites: each app at the ref that would land, its Frappe range against the bench, and each required app with where it comes from and the install order.
|
|
2274
|
+
Start stays disabled while something would refuse the install; the Install sheet's checkbox is the consent to fetch the required apps, New site and New bench add them to the picks with the reason shown, and a Frappe range you know is wrong can be overridden by typing the app's name.
|
|
2243
2275
|
A failed job leads with its plain cause (for example MariaDB rejecting the database root password, or git failing to authenticate) when cwcli recognizes one in the failing step's output, and otherwise says it did not and points at that output.
|
|
2244
2276
|
Interrupt requests use the command's cleanup path; Detach only leaves the page, and an active record whose process disappears becomes `unknown` instead of being reported as failed or successful.
|
|
2245
2277
|
On Windows a job that has not begun its cleanup five minutes after Interrupt, or has not finished it two minutes after beginning, is terminated; one that never began is marked `unknown` because its cleanup may not have run.
|
|
@@ -2323,6 +2355,41 @@ When this machine's Docker stops answering (it refuses the connection, or three
|
|
|
2323
2355
|
A single slow answer from an overloaded Docker is not treated as an outage.
|
|
2324
2356
|
Everything recovers by itself once Docker answers again, with no daemon restart.
|
|
2325
2357
|
|
|
2358
|
+
#### Site addresses
|
|
2359
|
+
|
|
2360
|
+
The site page's **Open site** opens the address Frappe itself builds for the site, with the same rule as `frappe.utils.get_url`, which also builds the site's OAuth and SSO redirect URLs.
|
|
2361
|
+
The `cwcli open` and `cwcli init` banners and `cwcli axi url` print the same address.
|
|
2362
|
+
cwcli reads the site's config merged with the bench's (`sites/<site>/site_config.json` overrides `sites/common_site_config.json`) and builds the address in two steps:
|
|
2363
|
+
|
|
2364
|
+
1. The start of the address is the site's `host_name` (or `hostname`), used as written. Without one, it is the site name, with `https://` when `ssl_certificate` is set and `http://` otherwise. cwcli adds `http://` when `host_name` names no scheme, as Frappe does.
|
|
2365
|
+
2. When that start names no port and neither `restart_supervisor_on_update` nor `restart_systemd_on_update` is set, Frappe adds `:<http_port>`, or `:<webserver_port>` when `http_port` is not set. For example, a site named `site.example.com` on a bench with `webserver_port: 8000` gets `http://site.example.com:8000`, and without either key it gets `http://site.example.com`.
|
|
2366
|
+
|
|
2367
|
+
A `localhost` or `*.localhost` address always opens through the port Docker publishes for it, because the host reaches it only that way.
|
|
2368
|
+
When the address names no port, or names the bench's own web port inside the container (the port Frappe adds from `webserver_port`), cwcli gives it the host port Docker publishes for that web port.
|
|
2369
|
+
For example, an instance created with `--port 21000` opens `http://dev.localhost:8000` as `http://dev.localhost:21000`.
|
|
2370
|
+
A port that is already one of the instance's published host ports, such as `host_name: http://dev.localhost:21000` on that instance, is kept as written.
|
|
2371
|
+
For any other port, cwcli shows no address instead of guessing one.
|
|
2372
|
+
|
|
2373
|
+
`webserver_port` is optional.
|
|
2374
|
+
On a bench that serves its sites by hostname through a reverse proxy, administrators remove it: it is the only way to stop Frappe from adding the bench's internal port to the URLs it builds, such as the OAuth and SSO redirect URLs that go into an identity provider.
|
|
2375
|
+
Without the key, cwcli reads the port the bench's web process listens on from the `web:` line of the bench's Procfile (`bench serve --port 8000`), so Open site, `status`, `start`, process restarts, `scale` and publishing keep working.
|
|
2376
|
+
A `bench serve` with no `--port` listens on 8000.
|
|
2377
|
+
cwcli uses 8000 for such a bench only while no process outside that bench listens on it; on a multi-bench instance where a sibling bench holds 8000, cwcli reports the port as unknown instead of measuring the sibling.
|
|
2378
|
+
|
|
2379
|
+
When Frappe adds `webserver_port` to an address whose name is not `localhost` or `*.localhost`, the address includes the bench's port.
|
|
2380
|
+
That is what Frappe reports for the site, so cwcli keeps the port, but the web UI asks before it opens the address.
|
|
2381
|
+
The warning's "Is ... not the right address?" question lists the commands that remove the key and restart the bench's processes, for example:
|
|
2382
|
+
|
|
2383
|
+
```bash
|
|
2384
|
+
cwcli run my-project config remove-common-config webserver_port # bench's own command
|
|
2385
|
+
cwcli run my-project --site site.example.com set-config webserver_port None # when the site's config sets it
|
|
2386
|
+
cwcli stop my-project --bench 0
|
|
2387
|
+
cwcli start my-project --bench 0
|
|
2388
|
+
```
|
|
2389
|
+
|
|
2390
|
+
After the change, copy any OAuth or SSO redirect URL from Frappe again, because URLs made while the key was set include the port.
|
|
2391
|
+
`cwcli axi url` reports the same case as `internal_port: true`, with a `url.internal_port` warning and the commands in `fix`.
|
|
2392
|
+
|
|
2326
2393
|
**Under WSL:** a Windows browser reaches `http://localhost:8765` through WSL's
|
|
2327
2394
|
localhost forwarding; the address `cwcli ui` prints already works from there.
|
|
2328
2395
|
|
|
@@ -3050,6 +3117,14 @@ cwcli axi apps install frappe-one https://github.com/me/myapp --site erp.localho
|
|
|
3050
3117
|
# Idempotent: skip (do not reinstall) an app already on the site and exit 0, so a
|
|
3051
3118
|
# CI step can trust the exit code. A real install failure still exits non-zero.
|
|
3052
3119
|
cwcli axi apps install frappe-one hrms --site erp.localhost --if-not-present
|
|
3120
|
+
# An app that requires another app the site lacks is exit 2 naming --with-deps;
|
|
3121
|
+
# a Frappe range that does not fit is exit 1 with nothing fetched (there is no
|
|
3122
|
+
# override here: the human `cwcli apps install --ignore-frappe-range` is the hatch).
|
|
3123
|
+
cwcli axi apps install frappe-one booking --site erp.localhost --with-deps
|
|
3124
|
+
|
|
3125
|
+
# Read-only: what installing an app would do, as TOON (the order, each range
|
|
3126
|
+
# against the bench, where each required app comes from). Exit 1 when it would refuse.
|
|
3127
|
+
cwcli axi apps plan frappe-one https://github.com/me/myapp --site erp.localhost --branch develop
|
|
3053
3128
|
|
|
3054
3129
|
# Provision a new instance, bench, and site; the report prints as ONE TOON
|
|
3055
3130
|
# document. BLOCKS for the full 10-20 minute run (like axi apps update) and
|
|
@@ -3076,24 +3151,28 @@ cwcli axi config
|
|
|
3076
3151
|
cwcli axi doctor
|
|
3077
3152
|
```
|
|
3078
3153
|
|
|
3079
|
-
`cwcli axi ls`, `cwcli axi where`, `cwcli axi backup`, `cwcli axi unlock`, `cwcli axi stop`, `cwcli axi start`, `cwcli axi status`, `cwcli axi restart`, `cwcli axi inspect`, `cwcli axi benches`, and `cwcli axi label` run on the same logic core as their human counterparts; only the output (always TOON, never JSON) and choice-handling differ. `cwcli axi start` never prompts: an ambiguous multi-bench project is a `--bench` usage error (exit 2), and an unresolved port conflict is a `CONFLICT` error naming `--yes` (exit 1). `cwcli axi unlock` follows `cwcli axi backup`'s conventions exactly: an ambiguous multi-bench project is a `--bench` usage error (exit 2) and a stopped instance is a usage error pointing at `cwcli start` (exit 2). `cwcli axi stop` is idempotent for an agent - stopping an already-stopped project is a success, not an error. `cwcli axi where` answers from the cache, which outlives the instances it describes, so every match carries `project_state` (`present`, `absent`, or `unverified`) and the document carries `verified`: an agent must read those before acting on a hit, because an `absent` row describes an instance that no longer exists and an `unverified` row means the liveness check could not run. An unreachable Docker daemon degrades the whole answer to `unverified` rather than vouching for it, and `--no-verify` skips the check (reporting `unverified`) when a caller has already established liveness. `cwcli axi status` always exits 0, leading with the instance `overall` aggregate (`offline`/`online`/`running`/`degraded`). It reports **every** bench, in one document, under `benches[N]` - with no `--bench` it used to refuse a multi-bench project with exit 2 and send you off to `cwcli axi benches` to poll once per bench, reassembling the instance view from documents that never said which bench they described. The shape is uniform, so `supervisor_up`, `web_http_code`, `processes` and `not_cwcli_supervised` live inside `benches[i]` even for a single-bench project (`benches[0].processes`), and there is one parse path rather than a branch on bench count. Each bench also carries `bench_present` (`present`/`absent`/`unverified`) - the bench LIST comes from the cache, and a bench whose directory was deleted has no marker and no supervisord, which is indistinguishable from one that was simply never started, so it used to read as `online`; the token answers that, and `overall` keeps its four tokens. Each bench also carries `index`, `bench_path`, `label`, its own `overall`, `web_port`/`web_port_verified` (the port that bench's `web_http_code` was actually measured on), and `web_site` (the site it was measured FOR - Frappe routes by `Host`, so the code belongs to that site, and a probe naming no site is answered `404` by a healthy bench). When that port cannot be
|
|
3154
|
+
`cwcli axi ls`, `cwcli axi where`, `cwcli axi backup`, `cwcli axi unlock`, `cwcli axi stop`, `cwcli axi start`, `cwcli axi status`, `cwcli axi restart`, `cwcli axi inspect`, `cwcli axi benches`, and `cwcli axi label` run on the same logic core as their human counterparts; only the output (always TOON, never JSON) and choice-handling differ. `cwcli axi start` never prompts: an ambiguous multi-bench project is a `--bench` usage error (exit 2), and an unresolved port conflict is a `CONFLICT` error naming `--yes` (exit 1). `cwcli axi unlock` follows `cwcli axi backup`'s conventions exactly: an ambiguous multi-bench project is a `--bench` usage error (exit 2) and a stopped instance is a usage error pointing at `cwcli start` (exit 2). `cwcli axi stop` is idempotent for an agent - stopping an already-stopped project is a success, not an error. `cwcli axi where` answers from the cache, which outlives the instances it describes, so every match carries `project_state` (`present`, `absent`, or `unverified`) and the document carries `verified`: an agent must read those before acting on a hit, because an `absent` row describes an instance that no longer exists and an `unverified` row means the liveness check could not run. An unreachable Docker daemon degrades the whole answer to `unverified` rather than vouching for it, and `--no-verify` skips the check (reporting `unverified`) when a caller has already established liveness. `cwcli axi status` always exits 0, leading with the instance `overall` aggregate (`offline`/`online`/`running`/`degraded`). It reports **every** bench, in one document, under `benches[N]` - with no `--bench` it used to refuse a multi-bench project with exit 2 and send you off to `cwcli axi benches` to poll once per bench, reassembling the instance view from documents that never said which bench they described. The shape is uniform, so `supervisor_up`, `web_http_code`, `processes` and `not_cwcli_supervised` live inside `benches[i]` even for a single-bench project (`benches[0].processes`), and there is one parse path rather than a branch on bench count. Each bench also carries `bench_present` (`present`/`absent`/`unverified`) - the bench LIST comes from the cache, and a bench whose directory was deleted has no marker and no supervisord, which is indistinguishable from one that was simply never started, so it used to read as `online`; the token answers that, and `overall` keeps its four tokens. Each bench also carries `index`, `bench_path`, `label`, its own `overall`, `web_port`/`web_port_verified` (the port that bench's `web_http_code` was actually measured on), and `web_site` (the site it was measured FOR - Frappe routes by `Host`, so the code belongs to that site, and a probe naming no site is answered `404` by a healthy bench). When that port cannot be determined it is `null`/`false` and **no probe was made** - cwcli never falls back to `:8000`, because on a multi-bench instance that reports a different bench's web server as this one's. A stopped instance carries `benches: []`. `cwcli axi stop` takes `--bench <index|label>` to stop ONE bench's dev processes, leaving sibling benches and every container running - the inverse of `cwcli axi start --bench`; without it, it stops the whole instance's containers, and either form is idempotent. `cwcli axi restart` requires `--process`; an unknown/ambiguous process is a usage error listing the valid labels (exit 2). `cwcli axi inspect` serves whichever freshness tier answers the request (`served_from` names it) and, unlike every other bench-scoped verb, has deliberately NO `--yes` - a stopped project on the refresh path is a usage error (exit 2) naming `cwcli start`, and a drift escalation that can no longer discover the bench serves the cached data with `degraded: true` and a warning (exit 0). It takes `--bench <index|label>` like every other bench-scoped verb, narrowing the emitted report to one bench; every tier still discovers/refreshes/caches every bench regardless of the selector, and an unknown selector is a `bench.not_found` error (exit 1). Every site also carries `installed_apps_verified`: only a full read actually re-observes an app's installed version and git ref, so a cache or partial read carries the remembered list forward unverified and, when that list is non-empty, adds a warning naming `--update` - an agent must not treat an unverified `installed_apps` entry as the live git state. `cwcli axi benches` is the discovery verb behind every other verb's `--bench`: when a bench-scoped verb reports "multiple benches; pass `--bench <index|label>`", this is what tells you the valid values, and a project that has never been inspected is a structured error naming `cwcli axi inspect` rather than an empty list. Its rows come from the cache, which outlives the benches it describes, so every row carries `state` (`present`, `absent`, or `unverified`) and the document carries `verified` - the same contract `cwcli axi where` uses, cross-checked here against the running container in one exec. An agent must read `state` before acting on a row: `absent` means that bench directory no longer exists, and `unverified` means the check could not run (a stopped project, an unreachable daemon, or `--no-verify`) - never a confirmation. A stale row is reported, never pruned; `cwcli axi inspect <project> --update` is what refreshes it. `cwcli axi label` never starts a stopped project (the label marker lives inside the bench), and listing is deliberately `cwcli axi benches` rather than a mode of the mutation verb. `cwcli axi self-update --check` is read-only and **exits 0 whenever the check succeeds, including when an update is available** - the answer is the `is_outdated` field, not the exit code, because on the agent surface a non-zero exit means an error. This deliberately differs from the human `cwcli self-update --check`, which exits 1 when an update is available so shell scripts can gate on it; the mutating `cwcli axi self-update` is deliberately not offered. `cwcli axi config` is the read-only counterpart of `cwcli config show`: one TOON document carrying the search paths, all three auto-inspect state stores, the credential-bridge state, the tips setting, and the file locations. **No config-mutating axi verbs exist** (no `paths add`/`remove`, no `cache clear`, no `auto-inspect enable`/`disable`): an agent rewriting the user's search paths or wiping the cache is a product decision that deserves its own evidence, so mutations stay on the human `cwcli config` surface (whose reads all have `--json`). `cwcli axi doctor` is the read-only, system-wide counterpart of `cwcli doctor`: one TOON document listing every check with a machine-readable `status` (`pass`/`warn`/`fail`) an agent gates on directly, never by parsing the `detail` text. It exits 0 whenever every check is pass/warn and non-zero only when a check fails, exactly matching the human command, so a fleet can run it before driving any instance and `&&`-chain on the result.
|
|
3080
3155
|
|
|
3081
|
-
`cwcli axi url <project>` answers two questions no other `axi` verb does: what
|
|
3082
|
-
`cwcli axi status`'s `web_http_code` is measured against the bench's CONTAINER-internal port and never states
|
|
3083
|
-
|
|
3156
|
+
`cwcli axi url <project>` answers two questions no other `axi` verb does: what address a site is opened at, and whether its bench is answering HTTP for it right now.
|
|
3157
|
+
`cwcli axi status`'s `web_http_code` is measured against the bench's CONTAINER-internal port and never states that address.
|
|
3158
|
+
The address is built the way the web UI's Open site builds it (see [Site addresses](#site-addresses)): the site's `host_name`, else the site name, with `webserver_port` added the way Frappe's `get_url` adds it; a `localhost`/`*.localhost` address opens on its published host port. `source` says whether the address came from `host_name` or from the site name.
|
|
3159
|
+
When Frappe adds `webserver_port` to an address whose name is not a localhost one, the document carries `internal_port: true`, `webserver_port_in` (which config files set the key), a `url.internal_port` warning, and `fix`, the commands that remove the key and restart the bench's processes.
|
|
3160
|
+
The probe is a fresh `curl` run **every invocation**, inside the container against the bench's own web port (`webserver_port`, else the port the Procfile's `web:` line binds), with the site as the `Host` header.
|
|
3084
3161
|
`cwcli axi status` also performs a fresh one-shot probe; only the human `cwcli status --watch` path suppresses HTTP probing.
|
|
3085
3162
|
Like other single-bench verbs such as `cwcli axi logs`, a stopped project is a usage error naming `cwcli start` (exit 2, no `--yes`) and an ambiguous multi-bench project with no `--bench` is a usage error naming it.
|
|
3086
3163
|
`--site` sends that site as the `Host` header (Frappe routes by `Host`); omitted, it falls back to the bench's own representative site (its default, else its only/first cached site), reported so the observation stays attributable, and a bench with no site at all is probed host-less rather than guessing one.
|
|
3087
|
-
|
|
3164
|
+
A bench whose web port cannot be determined is `url: null` / `reachable: false` with a warning that names the two files to repair; a missing live host binding names `cwcli axi scale` when the bench lies beyond the published range.
|
|
3165
|
+
A localhost `host_name` that names a port this instance does not publish is also `url: null`, with a `url.port_unpublished` warning naming that address and how to correct the site's `host_name`; `reason` carries the warning's text in every `url: null` case.
|
|
3088
3166
|
Neither case guesses `:8000`.
|
|
3089
3167
|
`http_code` is whatever code curl saw, verbatim: a 404 or 500 still counts as `reachable: true`, exactly as `cwcli axi status` already treats "any code is serving".
|
|
3090
3168
|
There is no human `cwcli url` yet.
|
|
3091
|
-
Use `cwcli open`'s banner for the
|
|
3169
|
+
Use `cwcli open`'s banner for the address and `cwcli status` for the HTTP observation.
|
|
3092
3170
|
|
|
3093
3171
|
`cwcli axi apps update` blocks until the update finishes and emits ONE terminal document, exactly as `cwcli axi backup` does for a minutes-long `bench backup`: progress is deliberately not streamed, because N documents on stdout would break the one-TOON-document contract and an agent needs a verdict it can branch on rather than a progress bar (use `cwcli logs`/`cwcli status --watch` if you want live progress). Its exit code is `0` only when the report's `ok` is true; any failed phase, any stuck site, or any unknown outcome exits `1`, and an ambiguous multi-bench project is a `--bench` usage error (exit 2). A stopped project is likewise a usage error pointing at `cwcli start` (exit 2) - there is deliberately no `--yes` on this verb, because starting a container is UI-coupled and the core stays UI-pure about it, so an agent composes `cwcli axi start` then this verb, exactly as `cwcli axi unlock`/`cwcli axi backup` already document. **`failed_*` and `unknown_*` are not the same thing and must not be collapsed:** a `failed_*` item ran and failed, so retrying it is safe, while an `unknown_*` item's output stream was lost - its exit code is unknowable and **it may still be running**, so retrying it (a migration above all) can do real harm. Check before retrying. There is deliberately no `cwcli axi update`: the deprecated `cwcli update` spelling does not get an agent-facing verb. JSON output stays on the human commands (`cwcli ls --json`, `cwcli where --json`, `cwcli apps update --json`). `--force` is available here too and is **destructive**: an app whose git update hits a conflict is hard-reset to its remote tracking branch (discarding local changes) so the update completes, reported in the `force_reset_apps` field; it fires only on a conflict and never on a non-conflict failure. `--skip-requirements` is offered here too: the requirements step that runs before any migrate is skipped and the document says `requirements: skipped`.
|
|
3094
3172
|
Updating `frappe` runs the same preflight as the human command before the core reset.
|
|
3095
3173
|
Its findings are the `preflight` table (`severity,code,app,site,message,remedy`); branch on `code`, never on the message.
|
|
3096
3174
|
A blocker sets `preflight_blocked: true` and exits 1 with nothing run, and `--no-preflight` is available here too, because it skips predictions rather than a safety gate.
|
|
3175
|
+
On this verb `--no-preflight` skips only those core-reset predictions: the required-apps and Frappe-range check still runs for every update and still blocks, because the agent surface has no Frappe-range override.
|
|
3097
3176
|
The data-loss guard runs here too, under `--no-preflight` as well: uncommitted or unpushed work in any app (or work that could not be checked) sets `data_loss_refused: true`, names the apps in `data_loss_apps`, and exits 1 with nothing run.
|
|
3098
3177
|
`--force` accepts the loss; the reset then runs and `data_loss_apps` names the apps it was allowed to discard work in.
|
|
3099
3178
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.6.1"
|