caffeinated-whale-cli 3.6.0__tar.gz → 3.7.0__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.7.0}/PKG-INFO +127 -28
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/README.md +126 -27
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/pyproject.toml +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/__init__.py +1 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/apps.py +37 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/axi.py +175 -14
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/commands/deps_ui.py +197 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/init.py +4 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/new_bench.py +17 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/new_site.py +22 -6
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/serve.py +76 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/status.py +202 -25
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/update.py +40 -11
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/app_catalog.py +122 -27
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/core/app_deps.py +1512 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/apps.py +128 -7
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/bench_ops.py +97 -16
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/community.py +6 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/credbridge.py +36 -5
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/doctor.py +6 -3
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/fleet.py +52 -2
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/git_refs.py +50 -11
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/hosts.py +4 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/core/maintenance.py +1001 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/new_bench.py +24 -2
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/new_site.py +76 -19
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/open.py +3 -3
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/protocol.py +3 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/publish.py +87 -15
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/resolvers.py +332 -85
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/restore.py +1 -5
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/scale.py +5 -12
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/site_icons.py +2 -4
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/start.py +26 -35
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/status.py +120 -80
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/supervision.py +19 -103
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/update.py +460 -35
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/update_preflight.py +96 -157
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/core/url.py +254 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/jobs.py +53 -34
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/cred_daemon.py +84 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/db_utils.py +6 -3
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Advisories-BwD5d9yc.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Advisories-8RIVvbEM.js +2 -2
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/AppNameCell-bnOE2s0N.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/AppNameCell-T5yTpJS_.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Apps-D62h5KGN.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Backups-DuZG945Y.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Backups-nWhVDOjg.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Bench-BuSJ6bIs.js +3 -0
- 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.7.0/src/caffeinated_whale_cli/webui/dist/assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-DcP1mnTc.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-EFBOFauz.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-Bkn582fa.js +2 -2
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Instance-BayYhh_a.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Instances-BI1D39oe.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Instances-Bd-qQu00.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Job-BYIH7Rp8.js +3 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/JobState-B_BoXGfD.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/JobState-BUjTqh1j.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Jobs-CeUUynPG.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Jobs-CX6MSlBD.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/ListRows.vue_vue_type_script_setup_true_lang-Cg8R_3zW.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/MaintenanceAlert-B4MRN42x.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/PageHead-WMcwe55i.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PageHead--9AlqJjw.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PageHeader.vue_vue_type_script_setup_true_lang-COKQqRho.js +1 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-iRcuHiHD.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-DYSWFcx1.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-QpCX2Up4.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-CAGEU_an.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Schedules-Bxvm1y_i.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Site-BxDY0kWk.js +9 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Sites-DQwpr9rz.js +3 -0
- 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.7.0/src/caffeinated_whale_cli/webui/dist/assets/TabButtons.vue_vue_type_script_setup_true_lang-BliWFnWq.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-CjQYYLzZ.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-BrVhoWDB.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-MA1-_mrL.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-ClNJlH_y.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/index-DJGtLAcx.js +39 -0
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/index-CxwZM3Uv.css → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/index-zXyVnhY-.css +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/set-menu-Bw0p19lg.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/set-menu-BPlc9fjT.js +1 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/tabs-DDTAQ6JL.js → caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/tabs-CeZNoJQO.js +1 -1
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/index.html +2 -2
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli.egg-info/SOURCES.txt +31 -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/Apps-BnpRL5vk.js +0 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Bench-878vypnM.js +0 -3
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/DevModeBadge-CKqzZ3pg.js +0 -1
- caffeinated_whale_cli-3.6.0/src/caffeinated_whale_cli/webui/dist/assets/Instance-CsVGeq1a.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/ListRows.vue_vue_type_script_setup_true_lang-K_Z_kwi_.js +0 -1
- 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/Schedules-DWuj2QdS.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/Sites-nJuY7saH.js +0 -1
- 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.7.0}/LICENSE +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/setup.cfg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/__main__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/bridge.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/admin.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/backup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/backups.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/config.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/db_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/doctor.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/integrations.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/label.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/list.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/open.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/remote.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/restart.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/restore.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/rm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/rm_site.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/run.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/scale.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/schedule.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/self_update.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/setup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/start.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/stop.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/ui.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/unlock.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/commands/where.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/accounts.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/advisories.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/auto_inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/backup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/backup_crypto.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/backup_drill.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/backup_store.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/bench_read.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/cloudflare.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/config.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/cred_bridge.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/daemon_recovery.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/db_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/db_password.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/directory.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/docker.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/editors.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/envelope.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/errors.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/exec_stream.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/failure_causes.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/init.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/integrations.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/label.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/ldap_client.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/list.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/metrics.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/npm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/remote_access.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/restart.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/rm.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/rm_site.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/run.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/s3.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/schedules.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/self_update.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/setup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/site_logs.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/stop.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/transfer.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/unlock.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/updates.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/version.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/webapi.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/core/where.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/main.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/update_notice.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/agent_hooks.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/auto_inspect.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/bench_labels.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/bench_sites.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/cache.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/completion_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/config_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/console.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/daemon_identity.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/docker_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/port_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/sendme_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/shared_home.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/signals.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/startup.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/tips.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/toon.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/utils/vscode_utils.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/__init__.py +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/Inter-Italic.var-BGHziHgI.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/Inter.var-C9xDBOS3.woff2 +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/ListRows-CejsiiPF.css +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/code-insiders--L5huIRx.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/code-ofeWxTsy.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/assets/cursor-jGcLH-b0.svg +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/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.7.0}/src/caffeinated_whale_cli/webui/dist/assets/opsz-DreOFYE_.css +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/csp.json +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/src/caffeinated_whale_cli/webui/dist/logo-whale.png +0 -0
- {caffeinated_whale_cli-3.6.0 → caffeinated_whale_cli-3.7.0}/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.
|
|
3
|
+
Version: 3.7.0
|
|
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
|
|
@@ -196,6 +196,7 @@ The per-user SQLite cache is regenerable (`cwcli inspect`) and deliberately not
|
|
|
196
196
|
- **`cwcli` group membership is the trust boundary.** Anyone in the group can read every instance's cache, read the rm/rm-site backups (which contain full database dumps), edit the shared config, and - with `--cred-bridge` - ask the machine-wide bridge for a credential. This is the same "docker group ≈ root-ish capability" trade every shared dev tool makes. Keep membership deliberate.
|
|
197
197
|
- **The credential bridge in shared mode serves one machine-owned, read-only service-account token** to any group member's container git, so its audit log records the host and project but **not which human** triggered a fetch (they all present as the service account). Provision that account with a read-only deploy token; rotate it in one place if it leaks.
|
|
198
198
|
- **The shared credential is also the default for cwcli's own fetches.** `cwcli init --frappe-url <private fork>`, `apps install`, `apps update`, and `apps checkout` first wire the instance into the machine-wide bridge, so a member who never signed in to `gh`/`glab` personally can still fetch a private repo. A member's own `gh`/`glab` sign-in is only the automatic fallback, used when the shared credential answers nothing for that host (for example a host missing from `allowed_hosts`, or the bridge daemon is down), and cwcli prints one line on stderr when it falls back.
|
|
199
|
+
- **The web UI's app catalog reads the shared credential first, too.** The bridge daemon serves one machine-wide socket in the shared run directory (group-gated like the per-instance ones), and the catalog's forge scan, an app's branch list, and its dependency read all ask it before the account running `cwcli ui`, so the Apps page shows the same repositories for every member; the GitLab hosts it checks are the account's own `glab` hosts plus every non-GitHub host in `allowed_hosts`, and a host only `allowed_hosts` names is listed once a credential answers for it. cwcli's own `gh`/`glab` calls always run from the filesystem root, never from the directory `cwcli ui` was started in, so a repository the service account cannot read no longer breaks them.
|
|
199
200
|
- The group-owned socket (`0660 root:cwcli`) closes the world-connectable `0666` socket that could otherwise leak the first user's token to a second user on the box. A uid outside the `cwcli` group cannot reach it.
|
|
200
201
|
|
|
201
202
|
Run `cwcli doctor` to verify the shared install (group present, tree modes, service account).
|
|
@@ -461,6 +462,9 @@ cwcli new-bench [OPTIONS] PROJECT_NAME BENCH_NAME
|
|
|
461
462
|
| `--frappe-url TEXT` | A Frappe fork to build from (private forks use the credential bridge) |
|
|
462
463
|
| `--erpnext` | Install ERPNext on the first site |
|
|
463
464
|
| `-a`, `--app TEXT` | An extra app (git URL or name) to fetch and install on the first site (repeatable) |
|
|
465
|
+
| `--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 |
|
|
466
|
+
| `--ignore-frappe-range` | Install an extra app although its declared Frappe range does not fit the new bench |
|
|
467
|
+
| `--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
468
|
| `--admin-password TEXT` | Administrator password for the first site |
|
|
465
469
|
| `--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
470
|
| `-y`, `--yes` | Auto-start a stopped instance without prompting |
|
|
@@ -496,6 +500,9 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
496
500
|
|--------|-------------|
|
|
497
501
|
| `--bench TEXT` | Which bench: its numeric index or label |
|
|
498
502
|
| `-a`, `--app TEXT` | An app already on the bench to install on the site (repeatable) |
|
|
503
|
+
| `--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 |
|
|
504
|
+
| `--ignore-frappe-range` | Install although an app's declared Frappe range does not fit the bench |
|
|
505
|
+
| `--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
506
|
| `--default` | Make it the bench's default site |
|
|
500
507
|
| `--dev-mode` | Turn developer mode on for the new site |
|
|
501
508
|
| `--admin-password TEXT` | Administrator password |
|
|
@@ -506,6 +513,7 @@ cwcli new-site [OPTIONS] PROJECT_NAME SITE
|
|
|
506
513
|
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
514
|
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
515
|
cwcli checks the MariaDB root password with one connection before it creates the site, so a wrong one fails in seconds with nothing changed.
|
|
516
|
+
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
517
|
|
|
510
518
|
```bash
|
|
511
519
|
CWCLI_ADMIN_PASSWORD=... cwcli new-site my-project shop.localhost --app erpnext --default
|
|
@@ -644,7 +652,7 @@ cwcli start [OPTIONS] [PROJECT_NAME]...
|
|
|
644
652
|
|
|
645
653
|
- **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
654
|
- **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
|
|
655
|
+
- **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
656
|
- **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
657
|
- **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
658
|
- **Port Conflict Detection:** Automatically checks if required ports are available
|
|
@@ -1345,6 +1353,18 @@ It flags an app whose `apps/<app>` is a symlink (naming the real directory it po
|
|
|
1345
1353
|
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
1354
|
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
1355
|
`--fetch-only` ensures the app is present without installing it on any site.
|
|
1356
|
+
**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`.
|
|
1357
|
+
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.
|
|
1358
|
+
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.
|
|
1359
|
+
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.
|
|
1360
|
+
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.
|
|
1361
|
+
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.
|
|
1362
|
+
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.
|
|
1363
|
+
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`.
|
|
1364
|
+
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).
|
|
1365
|
+
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.
|
|
1366
|
+
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).
|
|
1367
|
+
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
1368
|
`--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
1369
|
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
1370
|
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 +1390,10 @@ A checked-out branch the remote's fetch refspec does not cover (a narrow clone s
|
|
|
1370
1390
|
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
1391
|
Any other check that cannot run or times out is reported as unverified and never blocks.
|
|
1372
1392
|
No preflight can predict a failing patch, schema sync or asset build in the new code; those still surface only in the real run.
|
|
1393
|
+
**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.
|
|
1394
|
+
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.
|
|
1395
|
+
`--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.
|
|
1396
|
+
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
1397
|
`--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
1398
|
It does not skip the data-loss guard below.
|
|
1375
1399
|
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 +1507,9 @@ cwcli update [OPTIONS] PROJECT_NAME
|
|
|
1483
1507
|
| `--skip-maintenance` | Skip enabling maintenance mode for affected sites during update |
|
|
1484
1508
|
| `--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
1509
|
| `--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
|
-
| `--
|
|
1510
|
+
| `--fix-branches` | Switch an app whose declared frappe-dependencies do not fit this bench to the matching `version-N` branch first, instead of refusing |
|
|
1511
|
+
| `--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 |
|
|
1512
|
+
| `--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
1513
|
| `-y`, `--yes` | Auto-start stopped containers without prompting |
|
|
1489
1514
|
|
|
1490
1515
|
**What It Does:**
|
|
@@ -2123,9 +2148,12 @@ cwcli status [OPTIONS] [PROJECT_NAME]
|
|
|
2123
2148
|
| Option | Description |
|
|
2124
2149
|
|--------|-------------|
|
|
2125
2150
|
| `--bench` | Report ONE bench: its numeric index or label. Omit it to report every bench |
|
|
2151
|
+
| `-p`, `--path` | Report ONE bench by its directory (lower-level alternative to `--bench`) |
|
|
2126
2152
|
| `-v`, `--verbose` | Show the per-process detail and the web HTTP probe on stderr |
|
|
2127
2153
|
| `-w`, `--watch` | Live, continuously-refreshing per-process view (Ctrl-C to exit) |
|
|
2128
2154
|
| `--interval` | Seconds between `--watch` refreshes (default 2, floored at 1s) |
|
|
2155
|
+
| `--clear-maintenance` | Take every site found in maintenance mode out of it without asking (see below); exits 1 if it is refused, the maintenance state of a bench or a site could not be read (for example, the instance is stopped or a site config is not valid JSON), or a site still answers 503; not combined with `--watch` (exit 2) |
|
|
2156
|
+
| `--site` | With `--clear-maintenance`: take only this site out of maintenance mode by turning off its own flag; it never touches the bench-wide flags, and a site the bench holds in maintenance is reported and exits 1. Without `--clear-maintenance` it is a usage error (exit 2) |
|
|
2129
2157
|
|
|
2130
2158
|
**Aggregate values** (printed on stdout, one token, exit 0). Each bench carries its
|
|
2131
2159
|
own; the stdout token is the **instance** fold over them (see below):
|
|
@@ -2145,13 +2173,15 @@ never started and bench 1 genuinely serves, and reporting `online` there would r
|
|
|
2145
2173
|
as "nothing is started" while a bench serves real traffic. With `--bench` the
|
|
2146
2174
|
instance token is that one bench's token by construction.
|
|
2147
2175
|
|
|
2148
|
-
**The web port is never guessed.**
|
|
2149
|
-
|
|
2150
|
-
`
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2176
|
+
**The web port is never guessed.** Each bench's web port is its `webserver_port`
|
|
2177
|
+
in `sites/common_site_config.json`, or, when that key is absent, the port the
|
|
2178
|
+
`web:` line of the bench's Procfile binds (a bench served by its hostname removes the
|
|
2179
|
+
key on purpose; see [Site addresses](#site-addresses)). If neither names a port,
|
|
2180
|
+
`status` reports `web_port: null` / `web_port_verified: false`, makes **no** HTTP
|
|
2181
|
+
request for that bench, and warns (`status.web_port_unknown`) - it does not fall back
|
|
2182
|
+
to `:8000`, because on a multi-bench instance that measures a *different* bench's web
|
|
2183
|
+
server. A bench whose port is unknown does not `degraded` on that account: cwcli not
|
|
2184
|
+
knowing where to look is a gap in cwcli's knowledge, not a fault in the bench.
|
|
2155
2185
|
|
|
2156
2186
|
**The probe names the bench's site.** Frappe is multi-tenant and routes by the
|
|
2157
2187
|
`Host` header, so a request naming no site is correctly answered `404` by a
|
|
@@ -2161,9 +2191,12 @@ the report says which site it asked for (`web_site`). That keeps the code
|
|
|
2161
2191
|
attributable the same way the port does: it is that site's code, not a claim about
|
|
2162
2192
|
the bench as a whole. A bench with no site recorded probes without a `Host` header,
|
|
2163
2193
|
as before, and reports `web_site: null`. The human `cwcli status` web line shows the
|
|
2164
|
-
**host-reachable**
|
|
2165
|
-
|
|
2166
|
-
the bench
|
|
2194
|
+
**host-reachable** port the probe went to (`web <site>:<host-port> -> <code>`),
|
|
2195
|
+
resolved by mapping the bench's container web port through the container's live host
|
|
2196
|
+
bindings. It names where the bench was probed, not the site's address: the init banner
|
|
2197
|
+
and `cwcli axi url` print the address Frappe builds (see
|
|
2198
|
+
[Site addresses](#site-addresses)), which may be the site's `host_name` or carry
|
|
2199
|
+
`webserver_port`. When that
|
|
2167
2200
|
host binding cannot be resolved it falls back to the container port labelled
|
|
2168
2201
|
`(in-container)` so nobody tries to open an unreachable address.
|
|
2169
2202
|
|
|
@@ -2183,12 +2216,20 @@ hint to run `cwcli start` to bring it under cwcli's supervisor. In this mode the
|
|
|
2183
2216
|
per-process supervisord `state` is unavailable (there is no supervisord to ask);
|
|
2184
2217
|
`up` comes straight from `ps`. `status` only reads - it never launches supervisord.
|
|
2185
2218
|
|
|
2186
|
-
**Maintenance mode is called out plainly.**
|
|
2187
|
-
A site stuck in maintenance mode answers HTTP 503 to every user with no other signal - the state a `migrate` / `apps update` killed mid-run (a closed terminal, a `kill`, a
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
`status`
|
|
2219
|
+
**Maintenance mode is called out plainly, and `status` offers to take sites out of it.**
|
|
2220
|
+
A site stuck in maintenance mode answers HTTP 503 (`SessionStopped`) to every user with no other signal - the state a `migrate` / `apps update` killed mid-run (a closed terminal, a `kill`, an OOM kill, a reboot) or a failed `bench update` leaves behind.
|
|
2221
|
+
`status` reads maintenance mode for every site of every bench it reports, the way Frappe answers it, not from one file:
|
|
2222
|
+
the bench's `sites/common_site_config.json` first, with each site's own `site_config.json` overriding it;
|
|
2223
|
+
and, when the web server is `bench serve` with a default site (`bench use`), every request is answered as that default site, so a site whose own file says `maintenance_mode: 0` still answers 503 while the default site inherits a bench-wide 1.
|
|
2224
|
+
When something is in maintenance, `status` also asks each site over HTTP (`/api/method/ping` with its `Host`), because Frappe can keep answering from its config cache for up to a minute after a file changes.
|
|
2225
|
+
It prints one `MAINTENANCE MODE` fault per bench (even without `-v`) naming the affected sites, the write that holds them (the bench-wide `maintenance_mode`, with `pause_scheduler` when `bench update` set both, or a site's own flag), and who set it: cwcli records the maintenance mode it turns on, so a flag left by an interrupted cwcli `migrate` or `apps update` names that operation and its job, while a flag with no record is reported as possibly set on purpose.
|
|
2226
|
+
On an interactive terminal `status` then asks whether to take the sites out of maintenance mode.
|
|
2227
|
+
`--clear-maintenance` does it without asking (the way for scripts and agents; a non-TTY is never asked and the fault names this flag).
|
|
2228
|
+
Taking them out clears the bench-wide flags with `bench set-config --global --parse <flag> 0` (resuming a scheduler paused with them) and each site's own flag with `set-maintenance-mode off`, then waits until no site answers Frappe's ping with 503 (SessionStopped) any more; `--clear-maintenance` exits 1 if a site still does.
|
|
2229
|
+
A site that does not answer at all, because its web server is not running, is not waited for: cwcli reports that it could not check that site.
|
|
2230
|
+
It is never offered, and `--clear-maintenance` refuses with exit 1, while anything that sets maintenance mode still runs on the bench: the cwcli operation that turned it on, an in-container `bench migrate`/`update`/`restore`, or a held migrate lock.
|
|
2231
|
+
`cwcli axi status` carries the per-bench report as `maintenance` (with `down`, `bench_flags`, `owners` and `busy`) beside `maintenance_mode`, plus the `status.maintenance_mode` and `status.scheduler_paused` warnings.
|
|
2232
|
+
The web UI shows the same fault on the instance, bench and site pages and the Sites list, with a button that runs the same clear as a tracked job.
|
|
2192
2233
|
These reads are skipped in the `--watch` loop (which makes no web probe).
|
|
2193
2234
|
|
|
2194
2235
|
**Per-bench, per-process detail (stderr):** one sub-block per bench, headed by its
|
|
@@ -2274,13 +2315,16 @@ While the daemon runs it polls process health for every running instance; the we
|
|
|
2274
2315
|
That check is a bare TCP connect to the bench's web port, not an HTTP request, so polling writes nothing to the bench's web access log; the Bench page shows its verdict as `Listening` or `Not listening` next to the web port, or `unknown` while the latest health probe has failed and the page is showing the last successful probe's readings.
|
|
2275
2316
|
It refuses any request whose `Host` is not this machine, so another site in your browser cannot read or drive it.
|
|
2276
2317
|
|
|
2277
|
-
**What it can do:** everything the CLI reads (`ls`, `status`, `inspect`, `where`, `doctor`, `logs`, `axi url`, `config show`) and the safe lifecycle set: start, stop and restart an instance or a bench, restart one process, set a bench label, unlock a site, take
|
|
2318
|
+
**What it can do:** everything the CLI reads (`ls`, `status`, `inspect`, `where`, `doctor`, `logs`, `axi url`, `config show`) and the safe lifecycle set: start, stop and restart an instance or a bench, restart one process, set a bench label, unlock a site, take sites out of maintenance mode, widen the port range (the same core confirmation `cwcli scale` asks for, typed back as the instance name), and check out an app ref without `--reset`.
|
|
2278
2319
|
These lifecycle changes run as jobs too, so their steps and outcome remain visible after navigation.
|
|
2279
2320
|
When an action needs a stopped instance running, the page offers to start it first: an action on a bench, site or app starts that bench (`cwcli start <project> --bench <n>`), so a multi-bench instance never asks which bench, and an instance-level action starts only the containers, never a bench.
|
|
2280
2321
|
Remove bench on a stopped instance starts only its containers, and stops them again if the removal does not complete.
|
|
2281
2322
|
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
2323
|
The long-job forms cover `init`, `apps install`, `apps update`, `apps checkout`, `backup`, `migrate`, `run-tests`, `build`, `setup-wizard`, and `self-update`.
|
|
2283
2324
|
`apps update` runs the same preflight as the CLI and shows every finding in the job view before the reset begins.
|
|
2325
|
+
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`.
|
|
2326
|
+
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.
|
|
2327
|
+
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
2328
|
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
2329
|
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
2330
|
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.
|
|
@@ -2339,6 +2383,7 @@ The host transport is the exception: different hosts may use different transport
|
|
|
2339
2383
|
See `integrations` below for the terminal commands, the declaration a repository needs, and where the code is installed.
|
|
2340
2384
|
|
|
2341
2385
|
**Publishing a site at its own domain:** with Cloudflare DNS, Nginx Proxy Manager or both turned on, **New site** offers "Publish it at a public address".
|
|
2386
|
+
A site publishes with the integrations of the machine its instance is on: a remote host's instance (see `remote` below) uses that host's own Cloudflare DNS and Nginx Proxy Manager, set up from the hub's Settings > Integrations with that host picked, and the dialog says so.
|
|
2342
2387
|
With Cloudflare on, the site name becomes a name plus a zone the token can see, so a typo cannot land in another zone, and a read-only preflight checks each part before anything is created: the bench's published port, whether the name is free in the zone (or already cwcli's), and whether a proxy host cwcli can see already uses it; with Nginx Proxy Manager alone it shows what the name resolves to now.
|
|
2343
2388
|
A failing preflight row keeps **Create site** disabled, and the `new-site` job runs the same preflight first, so a name that cannot be published never leaves a site behind.
|
|
2344
2389
|
The site is created exactly as without publishing; as soon as it exists a second job, **Publish site** (the card follows it as "part 2 of 2"), writes the A record, makes the proxy host, requests the certificate, then checks that `https://<site>/api/method/ping` answers.
|
|
@@ -2364,6 +2409,41 @@ When this machine's Docker stops answering (it refuses the connection, or three
|
|
|
2364
2409
|
A single slow answer from an overloaded Docker is not treated as an outage.
|
|
2365
2410
|
Everything recovers by itself once Docker answers again, with no daemon restart.
|
|
2366
2411
|
|
|
2412
|
+
#### Site addresses
|
|
2413
|
+
|
|
2414
|
+
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.
|
|
2415
|
+
The `cwcli open` and `cwcli init` banners and `cwcli axi url` print the same address.
|
|
2416
|
+
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:
|
|
2417
|
+
|
|
2418
|
+
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.
|
|
2419
|
+
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`.
|
|
2420
|
+
|
|
2421
|
+
A `localhost` or `*.localhost` address always opens through the port Docker publishes for it, because the host reaches it only that way.
|
|
2422
|
+
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.
|
|
2423
|
+
For example, an instance created with `--port 21000` opens `http://dev.localhost:8000` as `http://dev.localhost:21000`.
|
|
2424
|
+
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.
|
|
2425
|
+
For any other port, cwcli shows no address instead of guessing one.
|
|
2426
|
+
|
|
2427
|
+
`webserver_port` is optional.
|
|
2428
|
+
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.
|
|
2429
|
+
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.
|
|
2430
|
+
A `bench serve` with no `--port` listens on 8000.
|
|
2431
|
+
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.
|
|
2432
|
+
|
|
2433
|
+
When Frappe adds `webserver_port` to an address whose name is not `localhost` or `*.localhost`, the address includes the bench's port.
|
|
2434
|
+
That is what Frappe reports for the site, so cwcli keeps the port, but the web UI asks before it opens the address.
|
|
2435
|
+
The warning's "Is ... not the right address?" question lists the commands that remove the key and restart the bench's processes, for example:
|
|
2436
|
+
|
|
2437
|
+
```bash
|
|
2438
|
+
cwcli run my-project config remove-common-config webserver_port # bench's own command
|
|
2439
|
+
cwcli run my-project --site site.example.com set-config webserver_port None # when the site's config sets it
|
|
2440
|
+
cwcli stop my-project --bench 0
|
|
2441
|
+
cwcli start my-project --bench 0
|
|
2442
|
+
```
|
|
2443
|
+
|
|
2444
|
+
After the change, copy any OAuth or SSO redirect URL from Frappe again, because URLs made while the key was set include the port.
|
|
2445
|
+
`cwcli axi url` reports the same case as `internal_port: true`, with a `url.internal_port` warning and the commands in `fix`.
|
|
2446
|
+
|
|
2367
2447
|
**Under WSL:** a Windows browser reaches `http://localhost:8765` through WSL's
|
|
2368
2448
|
localhost forwarding; the address `cwcli ui` prints already works from there.
|
|
2369
2449
|
|
|
@@ -2431,10 +2511,17 @@ An action on a remote instance goes to that machine's own daemon through the hub
|
|
|
2431
2511
|
The link states: `connected` (live, actions allowed), `connecting`, `unreachable` (the host stopped answering: its instances keep their last-known state as `unknown` with a last-seen time, actions are disabled, and nothing is started, stopped or retried because a host went quiet), `cwcli not running there`, `no longer accepts this hub`, `host key changed`, `different cwcli version` (reads work, actions wait until both sides speak the same web UI protocol; the message names the side to update), `integration off` and `service account only` (on a shared install, a group member's own web UI on the shared home: remote hosts run from the service account's web UI, the only one that can read the hub key, so this one lists them and dials none; a member opted back to a private home with `CWCLI_HOME` runs a hub of its own).
|
|
2432
2512
|
A dropped packet never flashes a host to unknown: one immediate re-probe decides.
|
|
2433
2513
|
A remote instance's page has the same live process readings and web check as a local one: while a tab has it open, the hub holds that host's stream with the instance as its focus.
|
|
2434
|
-
Backups, schedules, the apps catalog
|
|
2514
|
+
Backups, schedules, the apps catalog and the restore and transfer dialogs stay each machine's own; a remote site's backups show that machine's sets with Back up now, Verify, Download and Delete.
|
|
2435
2515
|
Drop site on a remote site asks that machine, as the dialog opens, whether the site is published there, and offers "Also unpublish it" (ticked when it is), so the unpublish runs on the machine that published it.
|
|
2436
2516
|
When that machine cannot be read, or the page does not know the site's bench yet, the box is offered unticked with a note that its publication state could not be read.
|
|
2437
2517
|
|
|
2518
|
+
**Each remote host's own edge, set up from the hub.** A remote runs its own Nginx Proxy Manager and Cloudflare setup, and the hub is where it is managed: Settings > Integrations has a machine picker (shown once a host is added), and with a remote picked the panel lists that host's OWN official integrations and sets them up through the hub's forward.
|
|
2519
|
+
Test connection, Detect (the remote's own container discovery) and Test and turn on all run on that host; the secrets typed are stored encrypted on that host and never on the hub, which relays only the setup form and the test result, and no second store exists on the hub.
|
|
2520
|
+
Changing a machine's integrations is an Admin's act there, so the remote must have granted the hub the Admin cap: with an Operator (or Viewer) grant the panel says that configuring that host's integrations needs the Admin cap and names the exact command its owner runs there, `cwcli remote allow --hub <hub name> --key "<hub public key>" --max-role admin` (which replaces the earlier grant), with a Check now button for when it has been run.
|
|
2521
|
+
A host whose link is not connected (unreachable, host key changed, cwcli not running there, a different cwcli version, no longer accepting the hub) is named with the same advice as the Remote hosts panel, never a silent empty list.
|
|
2522
|
+
Community integrations are installed on each machine by its own Admin; the picker never offers them for a remote.
|
|
2523
|
+
Publishing then follows the instance: on a remote instance, New site's "Publish it at a public address" uses that host's own Cloudflare DNS and Nginx Proxy Manager (its zones, address, access lists and preflight are read from that host, and the sentence under the box names it), the Sites list's Public address column and globe menu show and drive each remote site's publication from that host's own store (Publish, Retry what is missing, Check for drift and Unpublish run there), the site's page states whose integrations published it, and a publish job's page shows "Integration settings: <host>'s own".
|
|
2524
|
+
|
|
2438
2525
|
**Security.** The hub forwards only `/api/v1/` paths, never a remote's sign-in, stream or hosts routes, and relays every answer as DATA: JSON, a download as an attachment or an image under a sandboxing policy, each with `X-Content-Type-Options: nosniff`, never a cookie and never a page (a remote can never serve code into the hub's origin).
|
|
2439
2526
|
A remote that is itself a hub keeps its own remote hosts to itself: the stream it serves through its bridge carries its own instances and jobs, never its hosts.
|
|
2440
2527
|
The hub builds every `ssh` argument list itself, validates the host and user it was given and puts `--` before them.
|
|
@@ -3091,6 +3178,14 @@ cwcli axi apps install frappe-one https://github.com/me/myapp --site erp.localho
|
|
|
3091
3178
|
# Idempotent: skip (do not reinstall) an app already on the site and exit 0, so a
|
|
3092
3179
|
# CI step can trust the exit code. A real install failure still exits non-zero.
|
|
3093
3180
|
cwcli axi apps install frappe-one hrms --site erp.localhost --if-not-present
|
|
3181
|
+
# An app that requires another app the site lacks is exit 2 naming --with-deps;
|
|
3182
|
+
# a Frappe range that does not fit is exit 1 with nothing fetched (there is no
|
|
3183
|
+
# override here: the human `cwcli apps install --ignore-frappe-range` is the hatch).
|
|
3184
|
+
cwcli axi apps install frappe-one booking --site erp.localhost --with-deps
|
|
3185
|
+
|
|
3186
|
+
# Read-only: what installing an app would do, as TOON (the order, each range
|
|
3187
|
+
# against the bench, where each required app comes from). Exit 1 when it would refuse.
|
|
3188
|
+
cwcli axi apps plan frappe-one https://github.com/me/myapp --site erp.localhost --branch develop
|
|
3094
3189
|
|
|
3095
3190
|
# Provision a new instance, bench, and site; the report prints as ONE TOON
|
|
3096
3191
|
# document. BLOCKS for the full 10-20 minute run (like axi apps update) and
|
|
@@ -3117,24 +3212,28 @@ cwcli axi config
|
|
|
3117
3212
|
cwcli axi doctor
|
|
3118
3213
|
```
|
|
3119
3214
|
|
|
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
|
|
3215
|
+
`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
3216
|
|
|
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
|
-
|
|
3217
|
+
`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.
|
|
3218
|
+
`cwcli axi status`'s `web_http_code` is measured against the bench's CONTAINER-internal port and never states that address.
|
|
3219
|
+
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.
|
|
3220
|
+
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.
|
|
3221
|
+
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
3222
|
`cwcli axi status` also performs a fresh one-shot probe; only the human `cwcli status --watch` path suppresses HTTP probing.
|
|
3126
3223
|
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
3224
|
`--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
|
-
|
|
3225
|
+
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.
|
|
3226
|
+
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
3227
|
Neither case guesses `:8000`.
|
|
3130
3228
|
`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
3229
|
There is no human `cwcli url` yet.
|
|
3132
|
-
Use `cwcli open`'s banner for the
|
|
3230
|
+
Use `cwcli open`'s banner for the address and `cwcli status` for the HTTP observation.
|
|
3133
3231
|
|
|
3134
3232
|
`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
3233
|
Updating `frappe` runs the same preflight as the human command before the core reset.
|
|
3136
3234
|
Its findings are the `preflight` table (`severity,code,app,site,message,remedy`); branch on `code`, never on the message.
|
|
3137
3235
|
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.
|
|
3236
|
+
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
3237
|
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
3238
|
`--force` accepts the loss; the reset then runs and `data_loss_apps` names the apps it was allowed to discard work in.
|
|
3140
3239
|
|