caffeinated-whale-cli 3.7.0__tar.gz → 3.9.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.7.0 → caffeinated_whale_cli-3.9.0}/PKG-INFO +96 -11
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/README.md +94 -9
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/pyproject.toml +5 -2
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/__init__.py +1 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/axi.py +152 -4
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/backups.py +2 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/config.py +8 -10
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/init.py +18 -5
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/new_bench.py +17 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/new_site.py +9 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/restore.py +103 -73
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/serve.py +33 -5
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/status.py +26 -6
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/update.py +38 -10
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/accounts.py +6 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/app_catalog.py +5 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/app_deps.py +130 -30
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/apps.py +70 -31
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/auto_inspect.py +61 -10
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/backup_drill.py +1 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/docker.py +172 -92
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/doctor.py +122 -11
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/fleet.py +1 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/init.py +128 -40
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/inspect.py +6 -8
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/core/log_storage.py +856 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/maintenance.py +99 -28
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/new_bench.py +5 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/core/new_site.py +378 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/rm.py +54 -9
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/schedules.py +10 -1
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/self_update.py +2 -1
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/setup.py +18 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/status.py +151 -55
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/supervision.py +2 -2
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/transfer.py +310 -32
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/update.py +52 -6
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/jobs.py +108 -21
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/utils/sendme_utils.py +673 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/shared_home.py +14 -1
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/startup.py +285 -59
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Advisories-8RIVvbEM.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Advisories-4ss45_z_.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Apps-D62h5KGN.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Apps-VBrfzRwk.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Backups-DmhC8579.js +1 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Bench-C_Mzz-lb.js +3 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-DcP1mnTc.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-Cp7Dvo-i.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-Bkn582fa.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/FollowPane-D04o0jah.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/HealthReasons-BOJO4ZWo.js +1 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/HealthReasons-BnFXw61y.css +1 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Instance-DZpo5Bz_.js +1 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Instances-C9dawYTm.js +1 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Job-DE2605u9.js +3 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/JobState-C4nxI-tX.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Jobs-CX6MSlBD.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Jobs-BbDX4BdR.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/ListRows.vue_vue_type_script_setup_true_lang-BJY0MXVj.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/MaintenanceAlert-B4MRN42x.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/MaintenanceAlert-CJHLZ42v.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PageHead--9AlqJjw.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/PageHead-BPYU8PwT.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/PageHeader.vue_vue_type_script_setup_true_lang-Cdyv_ChD.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-DYSWFcx1.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/PerformancePanel-Bi_sj_0F.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-CAGEU_an.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/RemoteHostBadge-CoJcviM4.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Schedules-Bxvm1y_i.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Schedules-BoGm8ndV.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Site-BJNKNOsg.js +9 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Sites-BLafl87c.js +3 -0
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/Storage-DI0Di3bE.js +1 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/TabButtons.vue_vue_type_script_setup_true_lang-BliWFnWq.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/TabButtons.vue_vue_type_script_setup_true_lang-CDgRR3vb.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-BrVhoWDB.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/TimeSeries-DMEs6YB4.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-ClNJlH_y.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/UpdatePill-CEi24KFo.js +1 -1
- caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/index-BwnuYP2d.js +39 -0
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/index-zXyVnhY-.css → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/index-CqSA-72d.css +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/set-menu-BPlc9fjT.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/set-menu-7r_kZAmy.js +1 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/tabs-CeZNoJQO.js → caffeinated_whale_cli-3.9.0/src/caffeinated_whale_cli/webui/dist/assets/tabs-Bg9TNlWs.js +1 -1
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/index.html +2 -2
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli.egg-info/SOURCES.txt +31 -28
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/__init__.py +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/core/new_site.py +0 -305
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/utils/sendme_utils.py +0 -435
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/AppNameCell-T5yTpJS_.js +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Backups-nWhVDOjg.js +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Bench-BuSJ6bIs.js +0 -3
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Instance-BayYhh_a.js +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Instances-Bd-qQu00.js +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Job-BYIH7Rp8.js +0 -3
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/JobState-BUjTqh1j.js +0 -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 +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/PageHeader.vue_vue_type_script_setup_true_lang-COKQqRho.js +0 -1
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Site-BxDY0kWk.js +0 -9
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/Sites-DQwpr9rz.js +0 -3
- caffeinated_whale_cli-3.7.0/src/caffeinated_whale_cli/webui/dist/assets/index-DJGtLAcx.js +0 -39
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/LICENSE +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/setup.cfg +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/__main__.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/bridge.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/__init__.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/admin.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/apps.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/backup.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/db_access.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/deps_ui.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/doctor.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/inspect.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/integrations.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/label.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/list.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/logs.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/open.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/remote.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/restart.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/rm.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/rm_site.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/run.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/scale.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/schedule.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/self_update.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/setup.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/start.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/stop.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/ui.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/unlock.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/commands/where.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/__init__.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/advisories.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/backup.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/backup_crypto.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/backup_store.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/bench_ops.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/bench_read.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/cloudflare.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/community.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/config.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/cred_bridge.py +2 -2
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/credbridge.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/daemon_recovery.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/db_access.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/db_password.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/dev_mode.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/directory.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/editors.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/envelope.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/errors.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/exec_stream.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/failure_causes.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/git_refs.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/hosts.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/integrations.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/label.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/ldap_client.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/list.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/logs.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/metrics.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/npm.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/open.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/protocol.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/publish.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/remote_access.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/resolvers.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/restart.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/restore.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/rm_bench.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/rm_site.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/run.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/s3.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/scale.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/site_icons.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/site_logs.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/start.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/stop.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/unlock.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/update_preflight.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/updates.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/url.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/version.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/webapi.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/core/where.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/main.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/update_notice.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/__init__.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/agent_hooks.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/auto_inspect.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/bench_labels.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/bench_sites.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/cache.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/completion_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/config_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/console.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/cred_daemon.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/daemon_identity.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/db_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/docker_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/port_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/signals.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/tips.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/toon.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/utils/vscode_utils.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/__init__.py +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/Inter-Italic.var-BGHziHgI.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/Inter.var-C9xDBOS3.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/ListRows-CejsiiPF.css +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/code-insiders--L5huIRx.svg +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/code-ofeWxTsy.svg +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/cursor-jGcLH-b0.svg +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/assets/opsz-DreOFYE_.css +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/csp.json +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.0}/src/caffeinated_whale_cli/webui/dist/logo-whale.png +0 -0
- {caffeinated_whale_cli-3.7.0 → caffeinated_whale_cli-3.9.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.9.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
|
|
@@ -18,7 +18,7 @@ Requires-Python: >=3.10
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: docker>=7.1.0
|
|
21
|
-
Requires-Dist: typer
|
|
21
|
+
Requires-Dist: typer<0.29,>=0.16.0
|
|
22
22
|
Requires-Dist: click>=8.0.0
|
|
23
23
|
Requires-Dist: rich>=14.0.0
|
|
24
24
|
Requires-Dist: requests>=2.26.0
|
|
@@ -269,7 +269,7 @@ cwcli init [OPTIONS] [PROJECT_NAME]
|
|
|
269
269
|
| `--auto-start` | Automatically start containers if not running |
|
|
270
270
|
| `--start` / `--no-start` | After creating the bench+site, start its dev services (supervisord over `bench start`) so init leaves a running dev environment (default: `--start`). `--no-start` creates without starting, for automation/CI. Distinct from `--auto-start`, which only controls Docker container startup |
|
|
271
271
|
| `--reuse-bench` / `--no-reuse-bench` | Pre-answer the existing-bench question non-interactively: `--reuse-bench` reuses the bench and skips `bench init`; `--no-reuse-bench` requires a fresh `--bench` name and errors if it already exists. Default: ask interactively (a non-TTY without either flag refuses). Distinct from `--auto-start`, which controls container startup |
|
|
272
|
-
| `--uid INTEGER` | Override the uid/gid the container's `frappe` user is aligned to, instead of the host's own uid/gid. Mainly for a root-uid host (e.g. a CI runner running as uid 0), where a root host already falls back to a safe default automatically (see step 7 below); pass `--uid` to choose a specific uid instead. Must be a positive, non-root integer (`--uid 0`, negatives,
|
|
272
|
+
| `--uid INTEGER` | Override the uid/gid the container's `frappe` user is aligned to, instead of the host's own uid/gid. Mainly for a root-uid host (e.g. a CI runner running as uid 0), where a root host already falls back to a safe default automatically (see step 7 below); as root, pass `--uid` to choose a specific uid instead. Must be a positive, non-root integer, and a non-root user may pass only their own uid (`--uid 0`, negatives, non-numeric values, and a non-root user's foreign uid are rejected with a usage error before any container or file work). Applies only to this init invocation, including its end-of-init auto-start; it is never persisted, so later `cwcli start`/`restart` do not take it |
|
|
273
273
|
| `-v`, `--verbose` | Show verbose output with streaming command execution |
|
|
274
274
|
|
|
275
275
|
**What It Does:**
|
|
@@ -280,7 +280,7 @@ cwcli init [OPTIONS] [PROJECT_NAME]
|
|
|
280
280
|
4. Binds the bench workspace to a host `~/.cwcli/projects/{project_name}/data/` directory at `--bench-parent` inside the container (default `/workspace`), so bench files stay directly accessible on the host and survive container recreation
|
|
281
281
|
5. Resolves the `frappe/bench` image tag to pin (never uses `:latest`): `--bench-image-tag` is used verbatim and skips the lookup; otherwise a short-lived on-disk cache serves repeated inits and only a cache miss queries Docker Hub for the latest stable tag
|
|
282
282
|
6. Pulls Docker images and starts containers
|
|
283
|
-
7. On hosts that expose uid/gid information, aligns the container's `frappe` user to the host user so bench files written to the mounted workspace stay host-owned and removable by `cwcli rm` (no-op when the ids already match; platforms without `os.getuid`, such as Windows, cleanly skip alignment because Docker Desktop handles bind-mount ownership; a failed attempted remap degrades to a warning and bench creation still proceeds).
|
|
283
|
+
7. On hosts that expose uid/gid information, aligns the container's `frappe` user to the host user so bench files written to the mounted workspace stay host-owned and removable by `cwcli rm` (no-op when the ids already match; platforms without `os.getuid`, such as Windows, cleanly skip alignment because Docker Desktop handles bind-mount ownership; a failed attempted remap degrades to a warning and bench creation still proceeds). The `frappe` user is **never** given a uid that another account in the image already holds: not 0 on a **root host** (uid 0, a common CI-runner shape), and not a system account's uid such as `systemd-network`'s 998, which is where a shared install's service account or a runner's system user can land. Either would give bench that account's home and drop its `PATH` (`bench init` fails with exit 127, and the workspace fills with files owned by a system account), so cwcli uses the image's default uid (1000) instead, makes the workspace directory owned by it (on a non-root host it also gives that one directory group write for your own group, so you keep write access to it), and says so once in a warning. As root, pass `--uid <n>` to align to a specific uid instead; a uid an image account holds falls back to 1000 even then. When the bench files are owned by a uid other than the user running cwcli (a fallback on a non-root host), `cwcli rm` deletes the project directory through a short-lived root container (see [Running as root or in CI](#running-as-root-or-in-ci))
|
|
284
284
|
8. Pins the correct Python version via `PYENV_VERSION` for the branch (installs via pyenv if missing)
|
|
285
285
|
9. Pins the correct Node.js version via nvm for older branches (installs via nvm if missing)
|
|
286
286
|
10. Installs `yarn` globally for the activated Node.js version (older branches only)
|
|
@@ -462,6 +462,7 @@ cwcli new-bench [OPTIONS] PROJECT_NAME BENCH_NAME
|
|
|
462
462
|
| `--frappe-url TEXT` | A Frappe fork to build from (private forks use the credential bridge) |
|
|
463
463
|
| `--erpnext` | Install ERPNext on the first site |
|
|
464
464
|
| `-a`, `--app TEXT` | An extra app (git URL or name) to fetch and install on the first site (repeatable) |
|
|
465
|
+
| `--app-ref APP=REF` | The branch, tag or commit one `--app` is fetched at, with APP exactly as given to `--app`; without it the plan picks the branch, and one naming no `--app` exits 2 before anything is built (repeatable) |
|
|
465
466
|
| `--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
467
|
| `--ignore-frappe-range` | Install an extra app although its declared Frappe range does not fit the new bench |
|
|
467
468
|
| `--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) |
|
|
@@ -514,6 +515,13 @@ The Administrator password is resolved the same way as for `new-bench`: the flag
|
|
|
514
515
|
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`).
|
|
515
516
|
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
517
|
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.
|
|
518
|
+
When new-site installs at least one app on the new site of a running bench, it restarts the running cwcli-supervised programs that run the bench's Python (`web`, `schedule`, and every worker) once, after the site and its apps are in place, because a process that started before an app reached the bench cannot import it, and cwcli cannot tell when an app already in `apps/` arrived.
|
|
519
|
+
This is the same resynchronise step `apps install` uses: the reload succeeds when the new site answers Frappe, together with every existing site that has an app new-site checked out at another ref, because that checkout moved their code too.
|
|
520
|
+
A failure on one of those existing sites is reported as the checkout breaking that site; any other site is never probed, so an unrelated site in maintenance cannot fail new-site.
|
|
521
|
+
new-site names each restarted program (`processes_restarted` on the agent surface) and exits non-zero if the reload fails; a bench run by a manager cwcli does not supervise is not restarted, and new-site exits non-zero with a manual-restart remedy when a site does not answer.
|
|
522
|
+
A site created with no app restarts nothing, and a stopped bench stays stopped; the same holds for the web UI's New site.
|
|
523
|
+
Restore drills and transfers also create their site through new-site, but they skip this reload and rely on the restart their restore runs straight after.
|
|
524
|
+
`cwcli init --reuse-bench` with `--install-erpnext` on a running bench does the same for ERPNext.
|
|
517
525
|
|
|
518
526
|
```bash
|
|
519
527
|
CWCLI_ADMIN_PASSWORD=... cwcli new-site my-project shop.localhost --app erpnext --default
|
|
@@ -1352,7 +1360,7 @@ It flags an app whose `apps/<app>` is a symlink (naming the real directory it po
|
|
|
1352
1360
|
**`apps install`** - ensures each app is present on the bench, then installs it on the target site(s).
|
|
1353
1361
|
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).
|
|
1354
1362
|
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.
|
|
1355
|
-
`--fetch-only` ensures the app is present without installing it on any site.
|
|
1363
|
+
`--fetch-only` ensures the app is present without installing it on any site; it restarts nothing, because no site uses the app until it is installed, and that install reloads the bench.
|
|
1356
1364
|
**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
1365
|
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
1366
|
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.
|
|
@@ -1377,6 +1385,11 @@ A bench that was not running is left alone.
|
|
|
1377
1385
|
|
|
1378
1386
|
**`apps update`** - the canonical app-update path (what the deprecated `cwcli update` now delegates to). Updating the `frappe` framework app (or `erpnext`) is a **core update**: only the core app you name is reset to its remote branch (`apps update <p> frappe` never touches erpnext) (`git fetch <remote> <branch>` then `git reset --hard <remote>/<branch>`, for the app's own remote and checked-out branch, never bench's bench-wide `bench update --reset`, which hard-reset every app on the bench), every site's stale `locks` folder is cleared first and listed (a site whose migrate lock is held by a running migrate refuses the update before anything runs, with or without the preflight), the bench's requirements are reinstalled, then every affected site migrates under the same per-site maintenance lifecycle as any other app; other apps use the normal git-pull + migrate flow. **Every update reinstalls the bench's Python requirements before any site migrates:** after the pull, cwcli runs `bench setup requirements --python` (a core update runs the full `bench setup requirements`) for every app on the bench, not only the updated one, because a package the new code needs can come from another app - a frappe that gained `pyarrow` fails the migrate of a site whose update named only a custom app with `ModuleNotFoundError`. A failed or unknown requirements step migrates no site and exits non-zero; the report's `requirements` field says `ok`, `failed`, `unknown`, or `skipped`. `--skip-requirements` opts out: the step does not run, the output says it was skipped, and the run is not failed for it. After the migrations finish and maintenance mode is lifted, it runs the same **resynchronise** step as `apps install`, so a `git pull` cannot leave the bench's web, scheduler, and workers on the code that was there before it; every migrated site must answer Frappe before the run reports success. `--site` narrows which affected sites are migrated; if none of the named site(s) actually have the app installed, the command refuses and exits non-zero rather than silently migrating nothing (a genuine typo/mismatch guard - a bench with no affected sites at all still exits zero). It accepts the same migration flags as the [deprecated `update` command](#update---update-apps-and-migrate) (`--clear-cache`, `--clear-website-cache`, `--build`, `--skip-maintenance`, `--skip-requirements`, `--no-recache`). A core update honours `--site` and those flags like any other app, and always rebuilds assets.
|
|
1379
1387
|
Because the core update never runs bench's own bench-wide update, nothing is set in `sites/common_site_config.json`: a site that fails to migrate is named as such (`failed_migrations`), its maintenance mode is cleared by cwcli's `finally`, and the summary states the bench state - which sites migrated, which did not and why, and whether any site is still in maintenance.
|
|
1388
|
+
|
|
1389
|
+
A site that cannot be opened (a rejected database login, a broken site config) is never migrated and is always listed with its cause.
|
|
1390
|
+
It fails the run (exit 1) when it is known to have an updated app (the cache records the app on it, the app is `frappe`, or you named the site with `--site`).
|
|
1391
|
+
Otherwise it is unrelated to the update as far as cwcli can tell, so the run succeeds and reports `warned` ("finished with warnings" in the CLI and the web UI's job page), with the site in `unreadable_sites` but not in `unreadable_with_app`.
|
|
1392
|
+
|
|
1380
1393
|
`--force` is an opt-in, **destructive** recovery for a conflicting update (updating `frappe` gives it a different meaning, described under [the data-loss guard](#apps---manage-frappe-apps) below): if an app's `git pull` hits a **conflict** (local changes that would be overwritten, or a conflicted merge), it hard-resets that app to its remote tracking branch (`git fetch` then `git reset --hard @{u}`), discarding the local changes, so the update completes instead of failing. It fires **only on a conflict** - a clean update is untouched, and a pull that failed for another reason (network, auth) is left as the failure it is rather than having work discarded. Without `--force`, a conflict fails safely and discards nothing. Every force-reset app is reported (`force_reset_apps`) and a warning is printed at the reset. `--force` does not delete untracked files (it never runs `git clean`), matching `apps checkout --reset`. `--force` also clears a git **"dubious ownership"** refusal before pulling: when an app's repository is owned by a different user than the container runs as - common on a shared-mode or migrated instance whose app sources are owned by a pre-migration uid - it re-owns the repository to the container user so the pull proceeds, rather than surfacing a raw git ownership error. A `cwcli start`/`cwcli restart` self-heals the same ownership so a plain `apps update` works too; `--force` fixes it inline without a restart.
|
|
1381
1394
|
**The `frappe` preflight.** A core update resets the core app's git checkout and reinstalls the bench's requirements before any site migrates, so a git problem (a branch the remote lacks, an unreachable remote, a detached HEAD) or a code requirement the bench cannot meet would otherwise surface mid-run.
|
|
1382
1395
|
Updating `frappe` therefore runs a preflight first that predicts those failures in seconds, by evaluating bench's own rules against the same state bench reads.
|
|
@@ -1804,7 +1817,7 @@ cwcli backups key export --to FILE | import --from FILE [--replace]
|
|
|
1804
1817
|
- A move needs `--yes`, and drops each source only after its copy answered its checks, through the same backup gate `cwcli rm-site` uses.
|
|
1805
1818
|
- Retention keeps a site's newest verified set always, keeps safety sets (`before-*` reasons) for 14 days with at most 5 per site, and keeps the newest set of each of the last 7 days and 4 weeks (S3: 7 days, 4 weeks, 12 months). Change these with `cwcli backups settings`.
|
|
1806
1819
|
- `prune`, the scheduled prune, and the S3 prune never delete an unverified set. An unverified set takes no retention slot and stays until you delete it with `cwcli backups delete`.
|
|
1807
|
-
- Apart from the daily backup you can switch on with `cwcli backups settings --schedule on`, cwcli takes an automatic backup in
|
|
1820
|
+
- Apart from the daily backup you can switch on with `cwcli backups settings --schedule on`, cwcli takes an automatic backup in two cases only: a core (frappe or erpnext) update started from the web UI or a schedule first takes a verified `before-core-update` set of every site on the bench, and stops before changing anything if one does not verify; and the web UI's Remove app first takes a verified `before-app-remove` set of the site unless its backup checkbox is unticked, removing nothing if that set does not verify. `cwcli rm`, `rm-site`, and `rm-bench` also move their removal backups into the store as `before-removal` sets.
|
|
1808
1821
|
|
|
1809
1822
|
```bash
|
|
1810
1823
|
# Take a verified set of the default site, then list the store
|
|
@@ -2003,7 +2016,7 @@ Copying the downloaded backup into the container streams through a bounded pipe
|
|
|
2003
2016
|
- **NAT traversal** - Works behind firewalls and corporate networks
|
|
2004
2017
|
- **No cloud intermediary** - Direct peer-to-peer connections
|
|
2005
2018
|
- **Cross-platform** - Works on macOS, Linux, and Windows
|
|
2006
|
-
- **Automatic setup** - sendme binary
|
|
2019
|
+
- **Automatic setup** - cwcli pins sendme v0.37.1: the first send or receive, from the command line or the web UI, downloads that exact release into `~/.local/bin` of the account that runs it, checking the archive and the binary against the SHA-256 values cwcli ships; every send or receive copies the installed binary into a fresh private directory (under `$XDG_RUNTIME_DIR`, else the system temp dir, else `~/.cache/cwcli/sendme` when your home is not group- or world-writable, whichever first lets you execute a file), hashing the bytes as it copies them, and runs that copy only when they match, so the bytes that run are the bytes that were checked (known limit: where none of those directories allows execution, for example all mounted `noexec`, cwcli runs the installed binary right after hashing it and warns that it could be swapped between that check and the run), and an installed copy that does not match is replaced by the pinned release first (on a platform cwcli pins no build for, it uses the sendme on PATH as it is, unchecked, and never installs one; on a shared install the web UI runs as the service account, so it keeps its own copy in that account's home); `cwcli doctor` reports whether your copy and the web UI's match, and names the manual install command, with its checksum step, if the download fails
|
|
2007
2020
|
- **Multiple receivers** - Same ticket can be used by multiple machines
|
|
2008
2021
|
|
|
2009
2022
|
**Use Cases:**
|
|
@@ -2216,16 +2229,31 @@ hint to run `cwcli start` to bring it under cwcli's supervisor. In this mode the
|
|
|
2216
2229
|
per-process supervisord `state` is unavailable (there is no supervisord to ask);
|
|
2217
2230
|
`up` comes straight from `ps`. `status` only reads - it never launches supervisord.
|
|
2218
2231
|
|
|
2232
|
+
**A degraded bench names what is wrong.** `degraded` folds every check into one
|
|
2233
|
+
token, so each bench also carries `reasons`: one entry per failed check, computed
|
|
2234
|
+
from the same facts the token was (so the list is empty exactly when the bench is
|
|
2235
|
+
not degraded). Each names the check (`supervisor`, `process` or `web`), its subject
|
|
2236
|
+
(the program label, `supervisord`, or `web`), the state the probe saw (supervisord's
|
|
2237
|
+
`FATAL`/`BACKOFF`/`EXITED`/`STOPPED`, `down` for a process `ps` did not find, `no
|
|
2238
|
+
response` or `not listening` for the web probe) and one plain sentence. A dead
|
|
2239
|
+
supervisor is one reason, not one per program. `cwcli axi status` carries them as
|
|
2240
|
+
`benches[i].reasons`, and the web UI shows the same list on the instance, bench and
|
|
2241
|
+
site pages (with a restart or start button for each) and names the first reason
|
|
2242
|
+
beside `degraded` on the Instances cards and Sites rows and in the sidebar's tooltip.
|
|
2243
|
+
|
|
2219
2244
|
**Maintenance mode is called out plainly, and `status` offers to take sites out of it.**
|
|
2220
2245
|
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
2246
|
`status` reads maintenance mode for every site of every bench it reports, the way Frappe answers it, not from one file:
|
|
2222
2247
|
the bench's `sites/common_site_config.json` first, with each site's own `site_config.json` overriding it;
|
|
2223
2248
|
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
2249
|
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.
|
|
2250
|
+
Frappe v16.61.0 and later serve a site's reads in maintenance mode and refuse only its writes (with HTTP 503 `InReadOnlyMode`) unless `allow_reads_during_maintenance` is set to 0, so such a site answers the ping with 200 either way: `status` reports it as in maintenance mode, read-only, from its config files and the installed Frappe's default.
|
|
2251
|
+
Earlier releases, v16.60.x included, answer 503 (`SessionStopped`) unless that key is set.
|
|
2225
2252
|
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
2253
|
On an interactive terminal `status` then asks whether to take the sites out of maintenance mode.
|
|
2227
2254
|
`--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
2255
|
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.
|
|
2256
|
+
A read-only site answers that ping with 200 throughout, so the clear cannot check it: it reports `Maintenance mode cleared: <site>. Writes can take up to a minute to resume.` (the site is listed under `read_only`, not `answering`, and the clear is not `verified`), and exits 0.
|
|
2229
2257
|
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
2258
|
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
2259
|
`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.
|
|
@@ -2325,16 +2353,18 @@ The long-job forms cover `init`, `apps install`, `apps update`, `apps checkout`,
|
|
|
2325
2353
|
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
2354
|
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
2355
|
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.
|
|
2356
|
+
New site's app picker takes a branch, tag or commit for each picked app, in the same autocomplete field as the other ref fields: an app from the app sources is fetched at that ref, and an app the bench already holds is shown at the branch its copy sits at and, given another ref, is checked out there first - which moves it for every site on that bench, so the picker and the plan both say so before Create site runs.
|
|
2357
|
+
New bench's extra-apps picker takes a branch, tag or commit for each picked app in that same field, and the app is fetched at it (`--app-ref`).
|
|
2328
2358
|
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.
|
|
2329
2359
|
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.
|
|
2330
2360
|
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.
|
|
2331
2361
|
Jobs keeps every active job and the 100 most recent finished ones; older finished records are pruned when a new job starts.
|
|
2332
2362
|
The `self-update` job restarts the local daemon and the open page reloads after its protocol check sees the replacement.
|
|
2333
|
-
The guarded destructive verbs run as jobs too, each behind a typed confirmation of the exact name of what it destroys: remove an instance (`rm`: every site backed up first and the named volumes deletable only while the instance runs, mirroring `cwcli axi rm`, unless Force is ticked, which skips the verified backup like `cwcli rm --no-backup` after a red warning naming what is lost for good), drop a site (`rm-site`), remove a stopped bench (`rm-bench`), check out an app ref discarding local changes (`apps checkout --reset`, typed back as the app's name), and force a `frappe` update past the data-loss guard (`apps update` with Force ticked, typed back as the bench's name).
|
|
2363
|
+
The guarded destructive verbs run as jobs too, each behind a typed confirmation of the exact name of what it destroys: remove an instance (`rm`: every site backed up first and the named volumes deletable only while the instance runs, mirroring `cwcli axi rm`, unless Force is ticked, which skips the verified backup like `cwcli rm --no-backup` after a red warning naming what is lost for good), drop a site (`rm-site`), remove a stopped bench (`rm-bench`), remove an app from one site (`apps uninstall`, typed back as the app's name, offered on the site page for every installed app but `frappe`, with a verified backup of the site first unless unticked), check out an app ref discarding local changes (`apps checkout --reset`, typed back as the app's name), and force a `frappe` update past the data-loss guard (`apps update` with Force ticked, typed back as the bench's name).
|
|
2334
2364
|
A failed backup drops nothing, exactly as on the command line, and the job page shows bench's own reason.
|
|
2335
2365
|
Settings is writable for an Admin: cache on/off, forget one remembered project or clear the whole cache (confirmed first), add, remove and prune bench search paths (the prune check names any stopped instance that keeps it from pruning), auto-inspect and its interval and boot hook, the persistent credential bridge and its boot unit, a Start (or Restart) button for either daemon while its feature is enabled, with the daemon log's last line shown while it is down, tips, and the agent SessionStart hooks `cwcli axi setup` installs; every control sits beside the terminal command that does the same.
|
|
2336
2366
|
Schedules puts any of those jobs on a timetable (templates, a friendly recurrence picker with the cron underneath, one-off runs, recipes of chained steps, "after a successful job" and "when the instance starts" triggers, a week's timeline, and "Schedule this…" on every job's page); see `schedule` below.
|
|
2337
|
-
`cwcli restore` (the UI restores sets from the backup store instead), `
|
|
2367
|
+
`cwcli restore` (the UI restores sets from the backup store instead), `run`, `cwcli open`'s Docker shell (the UI opens VS Code, VS Code Insiders or Cursor only), an in-browser terminal and the shared multi-user mode are not in the UI; each needs its own decision first.
|
|
2338
2368
|
Other machines' instances are in the UI through **Remote hosts** (Settings > Remote hosts and the `remote` command below).
|
|
2339
2369
|
|
|
2340
2370
|
**Integrations (Settings > Integrations):** connections to systems outside cwcli, each off until an Admin turns it on.
|
|
@@ -2409,6 +2439,28 @@ When this machine's Docker stops answering (it refuses the connection, or three
|
|
|
2409
2439
|
A single slow answer from an overloaded Docker is not treated as an outage.
|
|
2410
2440
|
Everything recovers by itself once Docker answers again, with no daemon restart.
|
|
2411
2441
|
|
|
2442
|
+
#### Storage
|
|
2443
|
+
|
|
2444
|
+
The Storage page (sidebar, beside Backups) puts the logs around your instances next to the backup store, so what fills the disk is on one page.
|
|
2445
|
+
It shows, for every instance, the Docker container logs (each container's log driver, whether a size limit is set, and the size of its current and rotated files) and the bench and site log files inside the frappe container (`<bench>/logs` and each `<bench>/sites/<site>/logs`) (the current files and the rotated `*.log.1`, `*.log.2.gz`, ... beside them), plus the host's systemd journal usage.
|
|
2446
|
+
Four actions trim them, each behind a confirmation that spells out what goes, and each an Admin job (log data is deleted, or the compose file is edited):
|
|
2447
|
+
|
|
2448
|
+
- **Set rotation** writes `json-file` logging with `max-size` and `max-file` into every service of the instance's compose file.
|
|
2449
|
+
Running containers keep the settings they were created with, and the page says so; the rotation binds when each container is next recreated.
|
|
2450
|
+
`cwcli init` writes no rotation of its own, so a new instance's containers follow the Docker daemon's default until you set one here.
|
|
2451
|
+
- **Empty Docker logs** empties every json-file container log of the instance and removes its rotated files, through a short-lived root helper container that mounts only those log directories (never by hand under Docker's data root).
|
|
2452
|
+
Docker writes the file in append mode, so the containers keep running and nothing inside them is touched; their `docker logs` history is gone.
|
|
2453
|
+
- **Remove rotated** removes a bench's rotated log files, under `logs/` and each site's `logs/`, and keeps every current file, so a running bench loses nothing it holds open.
|
|
2454
|
+
A stopped instance's bench logs are not measured and never pruned: the page says to start it, and never starts it for you.
|
|
2455
|
+
- **Trim the journal** runs `journalctl --vacuum-size --vacuum-time` (500M and 2weeks unless you change them) when cwcli runs as root; it deletes older archived entries for the whole host.
|
|
2456
|
+
Anywhere else the card says that vacuuming needs root and cwcli does not have it, and shows the commands (`sudo journalctl --vacuum-size=500M`, `--vacuum-time=2weeks`) to copy into a terminal.
|
|
2457
|
+
|
|
2458
|
+
The journal card runs `journalctl --disk-usage` on a Linux host with systemd-journald.
|
|
2459
|
+
A container on the `journald` log driver is shown as managed by the system journal, with no size of its own.
|
|
2460
|
+
On macOS, Windows, or a Linux without systemd it says plainly that there is no host journal to manage (Docker Desktop's VM keeps its own logs).
|
|
2461
|
+
Sizes are read from the host when Docker's data root is readable and otherwise through a read-only helper container; a size cwcli could not measure is shown as not measured, never as zero.
|
|
2462
|
+
`cwcli axi storage logs` is the same report as TOON (see the agent surface below).
|
|
2463
|
+
|
|
2412
2464
|
#### Site addresses
|
|
2413
2465
|
|
|
2414
2466
|
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.
|
|
@@ -2656,6 +2708,7 @@ when the tool is signed in to none of them; a signed-out host beside a
|
|
|
2656
2708
|
signed-in one is listed with its `auth login --hostname` command.
|
|
2657
2709
|
An enabled but stopped auto-inspect or credential-bridge daemon is a `warn`
|
|
2658
2710
|
naming its start command; the web UI's Doctor view offers a Start button for it.
|
|
2711
|
+
A start-on-boot unit (or a shared install's system unit) that runs a removed cwcli, or that an older cwcli wrote without a restart limit, is a `warn` naming the unit and the command that rewrites or removes it, and so is a shared system unit only root can read, which doctor could not check (see the boot-unit note under `config`).
|
|
2659
2712
|
|
|
2660
2713
|
**Exit codes:** `0` when every check is pass/warn (a warning never blocks -
|
|
2661
2714
|
doctor is a chainable preflight gate), `1` when any check fails.
|
|
@@ -2901,7 +2954,15 @@ These verbs remain as hidden aliases with byte-identical behavior plus a one-lin
|
|
|
2901
2954
|
|
|
2902
2955
|
**Boot-unit note:** startup units installed before this change (systemd/LaunchAgent/schtasks) exec `cwcli config auto-inspect start` verbatim.
|
|
2903
2956
|
The `start` alias keeps BOTH that argv and its refuse-when-disabled guard, so an existing unit keeps working and a stale hook left behind after `disable` stays inert.
|
|
2904
|
-
|
|
2957
|
+
The auto-inspect and credential-bridge units run `/usr/bin/env cwcli` on a PATH that starts with the directory of the cwcli writing the unit (the directory of the `cwcli` script that is running, or the Python interpreter's directory when it was not started through that script), then `~/.local/bin`, `/usr/local/bin` and the system directories, then the directories on the PATH of the command that wrote it (the unit's PATH replaces the service manager's, so tools such as a snap-installed `gh` stay reachable), so a reinstall or a move between a per-user and the shared install keeps the unit working (Windows tasks keep the absolute path, because a task action does not search PATH).
|
|
2958
|
+
A systemd unit whose start keeps failing retries at most 3 times in 10 minutes and then stays failed until the next boot (or login, without lingering) or a manual start, so a removed cwcli cannot fill the journal; launchd and Task Scheduler run the unit once per login and never retry.
|
|
2959
|
+
A unit is stale when its cwcli no longer exists or when an older cwcli wrote it (no systemd restart limit, or a macOS absolute path); a unit that runs a different cwcli that still exists is left alone.
|
|
2960
|
+
`cwcli status` and `cwcli doctor` name a stale unit and the command that fixes it: `cwcli config auto-inspect enable` (or `cwcli config cred-bridge start`) rewrites it while the feature is enabled, and `disable` removes it otherwise.
|
|
2961
|
+
`enable`, `start` and `restart` rewrite a stale unit of their own daemon automatically, without starting the unit, and an old unit whose cwcli still exists rewrites itself at the next boot because the `start` it runs does the same.
|
|
2962
|
+
On a shared install, `cwcli status` and `cwcli doctor` also check the credential-bridge and scheduler system units in `/etc/systemd/system`; a stale one, or one only root can read (an older cwcli wrote it `0660` under the shared umask, so a member cannot check it), is named with `sudo cwcli setup shared`, which rewrites it in place with the restart limit (and the running cwcli when its own is gone) and makes it readable to every user (`0644`), keeping its service account, and `sudo cwcli self-update` does the same before it restarts a running one.
|
|
2963
|
+
After you upgrade a host whose boot unit is already failing (its cwcli was removed, so the unit cannot run the `start` that would rewrite it), the unit keeps failing until you fix it by hand.
|
|
2964
|
+
Run `cwcli doctor` on that host, then run the command it names: `cwcli config auto-inspect enable` or `cwcli config auto-inspect disable` for auto-inspect, and `cwcli config cred-bridge start` or `cwcli config cred-bridge disable` for the credential bridge.
|
|
2965
|
+
For a shared install's credential-bridge or scheduler system unit, run `sudo cwcli setup shared`, which is the command doctor names for those units (`cwcli self-update` repairs only a system unit that is running).
|
|
2905
2966
|
|
|
2906
2967
|
### `self-update` - Upgrade cwcli Itself
|
|
2907
2968
|
|
|
@@ -3044,6 +3105,28 @@ cwcli ls --json | jq '.[] | select(.status=="running")'
|
|
|
3044
3105
|
cwcli inspect frappe-one --json | jq '.bench_instances[0].sites'
|
|
3045
3106
|
```
|
|
3046
3107
|
|
|
3108
|
+
### Running as root or in CI
|
|
3109
|
+
|
|
3110
|
+
Bench commands run inside the container as its `frappe` user, and every file they write to the bind-mounted workspace is owned by that user's uid on the host.
|
|
3111
|
+
`cwcli init`, `start`, `restart`, `scale`, and `new-bench` align that uid to the user running cwcli, so the workspace stays owned by you and `cwcli rm` can delete it directly.
|
|
3112
|
+
In two cases that uid would break bench, so cwcli uses uid 1000 (the image's own `frappe` uid) instead, with a one-time warning from `init`:
|
|
3113
|
+
|
|
3114
|
+
- The invoking user is root (uid 0), as on a GitLab shell runner or another root CI job.
|
|
3115
|
+
- The uid already belongs to another account in the image, such as `systemd-network` (998) or `redis` (100). A shared install's `cwcli` service account and a runner's system user often have a uid in this range.
|
|
3116
|
+
|
|
3117
|
+
Both cases need no configuration.
|
|
3118
|
+
As root, you can choose the uid yourself with `cwcli init --uid <n>`; it applies to that `init` run and its end-of-init start only.
|
|
3119
|
+
A non-root user may pass only their own uid, and `init` refuses any other uid with a usage error before it creates anything.
|
|
3120
|
+
In the second case, the bench files do not belong to you, so `cwcli rm` cannot delete them as you.
|
|
3121
|
+
`cwcli rm` therefore deletes the project directory through a short-lived root container, the same way it does on a shared install.
|
|
3122
|
+
|
|
3123
|
+
**Repairing an instance an older cwcli left broken:** older releases could give `frappe` uid 0 (before 3.2.0, on a root host) or a system account's uid, so `bench` was not on its `PATH` and the bench files were owned by that account.
|
|
3124
|
+
Upgrade cwcli and run `cwcli start <project>` as the same user as before.
|
|
3125
|
+
When `frappe` is aligned to a uid other than yours (a root host or a fallback), or `start` moves `frappe` to a new uid, `start` gives `frappe` ownership of every bench it starts that another uid owns, with `chown -R`, so no file is deleted.
|
|
3126
|
+
This also repairs a bench that one `sudo cwcli start` left owned by uid 1000: the next plain `cwcli start` gives it back to you.
|
|
3127
|
+
If you remove that instance with `cwcli rm` before then, `rm` deletes those bench files through the same short-lived root container.
|
|
3128
|
+
A bench whose `bench init` never finished must still be created again with `cwcli init`.
|
|
3129
|
+
|
|
3047
3130
|
### For agents: the `cwcli axi` surface
|
|
3048
3131
|
|
|
3049
3132
|
`cwcli axi` is an agent-facing surface built for autonomous tools that drive cwcli through shell execution.
|
|
@@ -3277,7 +3360,9 @@ These are agent-only for now: there is no human `cwcli migrate`, `cwcli run-test
|
|
|
3277
3360
|
|
|
3278
3361
|
`cwcli axi setup-wizard <project> <site> [--country <country>] [--currency <currency>] [--timezone <timezone>]` headlessly completes a site's Frappe setup wizard. A fresh site - whether created by `cwcli init`/`cwcli axi init` without `--complete-setup`, or by a bare `bench new-site` outside cwcli entirely - is left in the setup-wizard state: `frappe.is_setup_complete()` is `false` and the `desktop:home_page` default stays `setup-wizard`, so a non-System-Manager desk renders with no navbar. This runs the same whitelisted RPC a person finishing the wizard in a browser triggers - `frappe.desk.page.setup_wizard.setup_wizard.setup_complete`, called via `bench execute ... --kwargs` with the args dict the wizard UI would have submitted (System Settings' country/currency/timezone/language; omitted flags fall back to `United States`/`USD`/`UTC`/`English`). It is **idempotent by Frappe's own design**: `setup_complete` checks `frappe.is_setup_complete()` first and no-ops under an advisory lock when the site is already set up, so re-running it is always safe - the report's `already_complete` field says whether it found the site already done. No user is created: `email`/`full_name`/`password` are deliberately left out of the args dict, so the `Administrator` account `cwcli init`'s `--admin-password` already provisioned is left untouched. Like the other bench-scoped verbs it takes `--bench`, has no `--yes`, and reports a stopped project as a usage error naming `cwcli start`.
|
|
3279
3362
|
|
|
3280
|
-
`cwcli axi
|
|
3363
|
+
`cwcli axi storage logs [<project>]` reports what the logs around the instances weigh, as one TOON document: each instance's Docker container logs (per container: driver, `max_size`/`max_file`, whether a rotation is live, and the size and count of its current and rotated files, measured from the host or through a read-only root helper when the data root is not readable), the log files under each bench's `logs/` and each site's `sites/<site>/logs/` split into current and rotated bytes, the compose file's declared logging options, and the host journal (`applies`, `journalctl --disk-usage`, `privileged`, and the `sudo journalctl --vacuum-*` commands for when cwcli is not root). A stopped instance's bench logs are not measured and the report says so. Four verbs trim them, all mirroring the web UI's Storage page: `cwcli axi storage set-docker-log-rotation <project> [--max-size 10m] [--max-file 3]` writes the rotation into the compose file (it binds when a container is next recreated; the report shows which containers already carry it); `cwcli axi storage truncate-docker-logs <project> --yes` empties every json-file container log and removes the rotated ones through a root helper mounting only those directories; `cwcli axi storage prune-bench-logs <project> [--bench <sel>] --yes` removes a bench's rotated log files (its own and its sites') and keeps every current one, refusing a stopped instance (exit 1, naming `cwcli start`) rather than starting it; without `--bench`, a cached bench whose logs cannot be read is skipped with a warning; `cwcli axi storage vacuum-journal [--max-size 500M] [--max-time 2weeks] --yes` trims the host journal when cwcli runs as root and otherwise refuses (exit 1) with the `sudo journalctl` command to run. The three removals without `--yes` are usage errors naming the flag (exit 2), never prompts.
|
|
3364
|
+
|
|
3365
|
+
`cwcli axi init` provisions a new instance, bench, and site the way `cwcli init` does, but non-interactively and as ONE terminal TOON document. It **blocks** for the full 10-20 minute run - the same block-and-emit-one-document shape as `cwcli axi apps update`, because a progress stream would break the one-TOON-document contract - narrating coarse phase labels to stderr; run `cwcli logs <project>` / `cwcli status <project>` from a second shell for live progress. Running several `axi init` calls in parallel can OOM-kill the host on a memory-constrained machine - serialize them instead. Adding a bench to an already-running instance never disturbs it or its other benches: the frappe container is never pulled, recreated, or restarted, so every already-serving bench keeps running throughout. Re-running init against a stopped instance starts its existing containers as they are, without pulling images or recreating them, so its benches keep their Python environments. If the re-run would change that instance's compose settings, such as a different `--port` on an instance still on the default port range (8000-8005), init refuses with exit 1 (`instance.settings_changed`), leaves the compose file unchanged, and names each change; remove the instance with `cwcli rm` (which backs it up) and run init again, or rerun init without the changed options. For an instance created on another `--port` or widened by `cwcli scale`, init does not compare `--port`. An instance whose frappe container has never started, such as one left by a first init that failed at `docker compose up`, has no bench to protect, so init neither refuses nor uses `--no-recreate` there: it pulls images and recreates the containers with the new options. After the bench+site is created, it starts the bench's dev services by default (the same `core.start` behind `cwcli start`/`cwcli axi start`), leaving a running bench rather than a created-but-idle one; `--no-start` creates without starting, for automation/CI, distinct from Docker container startup (stage 1 always brings the containers up regardless of this flag). A dev-services start failure degrades to a stderr warning rather than a non-zero exit, since the bench was already created. The site administrator password comes from the **`CWCLI_ADMIN_PASSWORD` environment variable (recommended)** or `--admin-password`; the flag wins if both are set, and with neither set the verb refuses with a usage error (exit 2) naming both - it never generates a password and never prompts. The env var keeps the secret off the process argv (visible in `ps`/shell history) that the flag exposes; the container-side `bench new-site` still receives it, so treat the value as one-time. The MariaDB root password takes the same shape via `CWCLI_DB_ROOT_PASSWORD` / `--db-root-password` (default: the instance's remembered password, else `123`); on a new instance it becomes MariaDB's own root password, as on `cwcli init`. The interactive decisions the human `cwcli init` prompts for become non-prompting errors: an existing bench with neither `--reuse-bench` nor `--no-reuse-bench` is a usage error (exit 2) naming both; a port conflict names `--port` (exit 1); containers that do not come up point at `cwcli status`/`cwcli logs` (exit 1); an invalid `--uid` (0, negative, or non-numeric), or a non-root user's `--uid` naming a uid other than their own, is rejected before any container work. `--uid` behaves as it does on `cwcli init` (including the root-host fallback, whose one-time warning is folded into the report's `warnings`). There is no `--auto-start` (compose `cwcli axi start` then re-run) and no `--verbose` (stdout is always TOON). `--bench` here is the NAME of the bench to create, distinct from the `--bench <index|label>` selector the other verbs use.
|
|
3281
3366
|
|
|
3282
3367
|
`--complete-setup` runs the new site's Frappe setup wizard headlessly right after creation - the same operation `cwcli axi setup-wizard` performs standalone, sharing its exact implementation - so a fresh site does not land in the unfinished setup-wizard state a non-System-Manager desk renders with no navbar in. `--country`/`--currency`/`--timezone` tune it (require `--complete-setup`; each has a sensible default when omitted) and are usage errors on their own. Its outcome rides as a `setup_wizard` block inside the SAME `InitReport` document, not a second one; a failure there is never exit `0` even though the bench and site above it were already created successfully - the `setup_wizard` block still carries what happened.
|
|
3283
3368
|
|