- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .githooks | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| install.sh | ||
| ldcmd | ||
| LICENSE.md | ||
| README.md | ||
| VERSION | ||
ldcmd
Generic Limedoc operator + pack developer bridge. Install once on your host. Do not vendor this script into pack repositories.
Repository: https://git.belowtoxic.cloud/limedoc/ldcmd
Packages: https://git.belowtoxic.cloud/api/packages/limedoc/generic/ldcmd/
Deploy bundle (generic archive): https://git.belowtoxic.cloud/api/packages/limedoc/generic/limedoc/ (files limedoc-deploy-{version}.zip)
Install
curl -sSf https://git.belowtoxic.cloud/limedoc/ldcmd/raw/branch/main/install.sh | sh
Installs to ~/.local/bin/ldcmd by default (LDCMD_PREFIX / --prefix override).
Later versions: ldcmd self-update (--check only reports; --version X.Y.Z
picks a release). It applies the same checksum and signature checks as
install.sh and refuses to overwrite a git checkout.
Release integrity
install.sh and ldcmd bootstrap (deploy bundle) both:
- check the zip against the
.sha256published next to it and abort when no hash tool (sha256sum,shasumoropenssl) is available; - fetch
<zip>.sig.json(ldcmd-{version}.sig.jsonfor ldcmd,limedoc-deploy-{version}.zip.sig.jsonfor the bundle) and verify its Ed25519 signature over the release statement (artifact, channelrelease/edge, version, zip sha256) with a key pinned in the script:limedoc-deploy-*for deploy bundles,limedoc-ldcmd-*for ldcmd. A bad signature, a key for the other artifact, an edge build requested as a release or another version abort. Verification needs OpenSSL 3. Format and CI setup: the app'sdocs/security/RELEASE_SIGNATURES.md. - refuse a release without a signature.
LDCMD_REQUIRE_SIGNATURE=0allows one (only for versions published before releases were signed).
LDCMD_RELEASE_KEYS (keyId:base64 …) replaces the pinned key list (key
rotation, tests). Tests: sh tests/release_sig.test.sh.
App image by digest. A deploy bundle names the registry digest of the app
image it was released with (image.digest in the signed zip, one line
sha256:<64 hex>). ldcmd bootstrap and ldcmd update then write
LIMEDOC_IMAGE=<repo>:<tag>@sha256:…: Docker pulls exactly that image, the
tag only records which release or channel the instance follows (the next
update reads it). A malformed digest aborts; a bundle without the file
(released before digests were recorded) is pulled by tag with a warning.
LDCMD_PIN_IMAGE_DIGEST=0 ignores the digest (a mirror that rebuilt the
image; with a warning). Tests: sh tests/image_digest.test.sh.
Downloads use HTTPS only (TLS 1.2+, redirects included) with time and
size limits; zips are unpacked with a quota (declared size, entry count,
per-file limit, size on disk). LDCMD_ALLOW_INSECURE_URL=1 allows a plain
HTTP mirror; limits: LDCMD_DL_MAX_TIME, LDCMD_BUNDLE_MAX_BYTES,
LDCMD_PACK_MAX_BYTES, LDCMD_PACK_MAX_EXTRACT_BYTES,
LDCMD_ZIP_MAX_ENTRIES. Tests: sh tests/hardening.test.sh.
Operators — production bootstrap (no app git clone)
Requires Docker + Compose. Fetches the limedoc-deploy zip from generic
package limedoc, runs the questionnaire inside the published limedoc
image (--network host so port probes see the host; --user matches
the invoking host UID/GID so .env can be written to the deploy directory),
then compose pull && up for redis + app only.
Sidecar Compose lives in plugin packs (deploy.json + worker/docker-compose.yml),
not in the deploy zip. After packs are installed (Pack Store or bootstrap
recommended install), start them on the host:
cd "$LIMEDOC_DEPLOY_DIR" # flat deploy directory
ldcmd sidecar configure # probe ports + sidecar env → deploy .env
ldcmd sidecar up # all installed sidecars
# or: ldcmd sidecar up collabora web-render # merges into sidecars/active.json
# or: ldcmd sidecar up --configure # configure then up
ldcmd up # core + sidecars
ldcmd down # all tracked + installed sidecars, then core
ldcmd status
Partial sidecar up <id> calls merge into sidecars/active.json so every
started sidecar is remembered. ldcmd down stops all entries there plus any
installed sidecar packs reported by the app (packs:sidecars), then clears
active.json.
Sidecar configure runs inside the published LIMEDOC_IMAGE with
--network host so TCP port probes see the host. It merges *_HOST_PORT,
Collabora public/WOPI keys, and sidecar image refs into the deploy .env.
In encrypted mode (CONTENT_VERSION_MODE=encrypted) it then derives each
worker's sidecar key in the image (/app/scripts/sidecar_keys.ts,
sidecarKeyForEnv) and writes WEB_RENDER_SIDECAR_KEY /
VECTORSEARCH_LITE_SIDECAR_KEY (never printed).
Use --force on sidecar up to skip the preflight gate.
Pack commands. A pack may declare one-shot commands in deploy.json
commands ({ "<name>": { "service", "args": [], "description" } }).
ldcmd sidecar run <id> <name> [-- args…] runs one as
docker compose run --rm <service> <args…> <extra args…> with the same env
file and compose files as sidecar up, and passes the exit code through.
ldcmd sidecar upgrade <id> [args…] is short for sidecar run <id> upgrade
(packs that update their own runtime content, e.g. downloaded app builds;
idempotent by contract, safe in a timer).
Pack files in compose. Sidecar compose runs with
--project-directory <deploy dir>, so relative paths resolve against the
deploy dir. ldcmd exports SIDECAR_PACK_DIR (absolute path of the installed
pack tree) for sidecar up / run / upgrade; a compose file mounts its own
scripts or configs with ${SIDECAR_PACK_DIR:?…}/worker:/pack/worker:ro.
Instances
ldcmd runs from any directory. It finds the Limedoc instances on the host
(deploy dirs with docker-compose.yml + .env of a deploy bundle) in its own
registry (~/.local/state/ldcmd/instances, written by bootstrap and
use), in the compose labels of Docker containers (running or stopped) and
under /opt, /srv and $HOME (LDCMD_INSTANCE_SEARCH). The instance id is
the directory name, which is also the compose project name.
ldcmd list # every instance: state, image, directory (* = selected)
ldcmd use ldblx # all operator commands now work on ldblx
ldcmd use /opt/ldblx # a path works too (and registers the dir)
ldcmd use # show the selection; ldcmd use --clear forgets it
ldcmd -i other status # one command on another instance
Which instance a command works on, in order: -i / LIMEDOC_DEPLOY_DIR,
the use selection, the current directory, the only instance on the host.
With several instances and none of these, ldcmd lists them and asks you to
pick one. Every operator command starts by naming the instance and why
(ldcmd: instance ldblx (/opt/ldblx; selected with ldcmd use)). The first
bootstrap on a host selects the new instance. In a pack checkout
(compose.dev.yml), up / down / pack commands work on the dev stack
unless -i names an instance.
Long steps say what they do and, every 15 s (LDCMD_HEARTBEAT_SECS), that
they are still running, so a slow image pull or app start can be told apart
from a hang. The health wait gives up after 120 s
(LDCMD_HEALTH_TIMEOUT_SECS) and prints how to read the app logs.
Updating an instance
On the selected instance (see above):
ldcmd update --check # what would change: bundle files, image, packs
ldcmd update # asks, then applies (non-interactive: --yes)
ldcmd update --with-packs # also update the installed packs
ldcmd update --version 0.2.0 # move LIMEDOC_IMAGE to another tag / channel
ldcmd update --image git.belowtoxic.cloud/limedoc/limedoc # switch image repository
update fetches the deploy bundle for the image tag in LIMEDOC_IMAGE
(latest or edge) and checks its checksum and release signature before
changing anything. A pinned version (:0.1.0) moves to the newest signed
release and stays pinned (LIMEDOC_IMAGE gets that version's tag). Before
changing anything it checks that the registry has the target image; if not
(for example LIMEDOC_IMAGE still names an old repository) nothing is changed
and it shows the --image switch to the release repository. It replaces only
the bundle's own files
(docker-compose.yml, docker-compose.registry.yml,
docker-compose.publish.yml, cool-seccomp-profile.json, README.md,
env.example); .env, overlays, sidecars/ and data stay as they are. New
settings in env.example that .env lacks are listed (their defaults apply).
Replaced files and .env are copied to .ldcmd-backup/update-<UTC time>/
first, and the previous app image id is printed for a rollback. Then it pulls
and recreates redis + app and waits for /api/health; that decides whether
the update worked. After that it updates the packs (--with-packs) and starts
the sidecars. A sidecar whose installed pack version cannot be fetched and
verified (an old, unsigned or removed release) is skipped and named with the
fix (ldcmd plugin update <id>, or ldcmd update --with-packs); a container
already running from it keeps running. The update then exits with status 3
(app updated, some sidecars not started). Without --with-packs it reports
how many pack updates are available.
In production the app keeps running the build of an in-process plugin it
loaded first, and a plugin that failed to load (for example an old pack that
uses something the new app removed) stays failed until the app restarts. So
ldcmd update and ldcmd plugin update restart the app when an updated pack
needs it (LIMEDOC_APP_RESTART=plugins|templates from the app), and also when
the running app reports restartRequired in /api/health (Limedoc 0.73.1
and newer). Re-running the update therefore also repairs such an app.
--no-restart only prints what to run.
docker-compose.override.yml in the deploy dir is yours: ldcmd adds it to
every core compose call (last, so it wins) and never writes or replaces it
(resource limits, extra mounts).
Redis auth is set up or refreshed after the health check. When that fails,
the core stack (redis + app) is stopped and the update exits non-zero: an
instance must not serve with a Redis whose auth is not verified. Start it
(ldcmd up), fix the cause and run ldcmd redis secure; or pass
--allow-insecure-redis (LDCMD_ALLOW_INSECURE_REDIS=1) to keep it running
with a warning (needed with a Redis outside the deploy compose, whose users
you manage yourself). ldcmd bootstrap behaves the same.
App admins
The in-app operator role (role:admin) comes from Limedoc's own authz
store, never from IdP claims. The first admin of an instance has no admin UI
yet, so grant it from the host (the app must be running; <sub> is the
user's OIDC subject):
ldcmd authz grant-admin <sub>
ldcmd authz revoke-admin <sub>
Maintenance
Rebuild caches and check the tree from the host (the app must be running; app 0.59.0 or later):
ldcmd admin rebuild # everything, as Admin → Data cache rebuild
ldcmd admin rebuild tree # the cached tree only: shadow / duplicated folders
ldcmd admin rebuild cid-index|policy-registry|public-asset-refs|manifests
ldcmd admin check tree # report; exit 1 when it finds something
ldcmd admin check tree --repair-clashes [--apply]
# folders sharing a document's name → X-folder
ldcmd admin blob-gc # one orphan blob sweep now
ldcmd admin history fsck|retention [-- args]
Redis auth
ldcmd redis secure gives Redis persistent ACL users: an ACL file in the
Redis volume (REDIS_ARGS="--aclfile /data/users.acl", hashed passwords
only), a password for the app user (REDIS_URL) and one restricted user per
sidecar: web-render (WEB_RENDER_REDIS_URL, render keys) and vectorsearch
(VECTORSEARCH_REDIS_URL, search keys). Rules are probed on the live server
before Redis has to load them; it restarts redis (only to add REDIS_ARGS),
the app (only for a new REDIS_URL) and the sidecars, then verifies.
ldcmd bootstrap runs it before the first sidecar starts, ldcmd update when
the deploy .env still lacks any of those URLs (instances from before app
0.4.5); web-render 0.3.1+ and vectorsearch-lite 0.3.4+ refuse to start
without their URL.
ldcmd redis secure # guided (TTY)
ldcmd redis secure --yes # automation
ldcmd redis secure --verify # checks only
ldcmd redis secure --yes --rotate-sidecar-passwords
# --no-restart (config only; ldcmd up later) --no-sidecars
The previous .env is kept as .env.bak-redis-<timestamp> (0600). External
Redis clients (monitoring, scripts) need the new REDIS_URL. Redis outside
the deploy compose: create equivalent users yourself (rules in the app's
lib/ops/redis_auth.ts) and set the URLs. Tests: sh tests/redis_secure.test.sh.
Isolating the web-render worker
ldcmd sidecar isolate web-render walks through the hardening from the
web-render plugin README ("Isolation"), explaining each step and asking before
it changes anything:
- Redis auth that survives restarts: an ACL file in the Redis volume
(
/data/users.acl, SHA-256 password hashes only) loaded viaREDIS_ARGS="--aclfile /data/users.acl"(redis-stack entrypoint), a password for the app user inREDIS_URL, and aweb-renderuser limited to the configured render streams/keys (RENDER_*overrides honoured),render:src:*/render:out:*and read-onlyctx:*/res:*. The rules are tried on the live server (ACL SETUSER ldcmd-probe off …) before Redis has to load them. Other users in an existing ACL file are kept. - Own network
{basename}_render(docker network create); redis and app join it throughdocker-compose.isolation.yml, which ldcmd adds to every core compose call when present, sohttp://web-render-worker:8092health keeps working. SetsWEB_RENDER_NETWORK_NAME. (External mode: skipped.) By default this is a plain bridge: it keeps the worker away from the other containers and does not limit outbound connections (internet, LAN, host).--internal-networkcreates it without a route out (Redis and app only); external renders then need a forward proxy attached to that network. An existing render network is not converted. - Worker env:
WEB_RENDER_REDIS_URL(worker user) plus optionalRENDER_PROXY_SERVER/RENDER_HOST_RESOLVER_RULES(no commas). These are Chromium settings inside the worker, not a network boundary: a compromised renderer need not honour them. - Encrypted mode:
WEB_RENDER_SIDECAR_KEY. - Apply: restart redis → app → worker, then verify: password-less default
user refused (
NOAUTH), app credentials work, worker getsNOPERMonGET sessions:xbut reads its own keys, Redis runs with--aclfile, worker heartbeat present, app reaches the worker health port, noNOPERMin the worker logs. It also reports (without failing) whether the render network has a route out: a helper container on it fetchesLDCMD_EGRESS_PROBE_URL(defaulthttp://example.com/;LDCMD_EGRESS_PROBE=0skips). Prints a summary and how to undo.
cd /opt/wiki
ldcmd sidecar isolate web-render # guided (TTY)
ldcmd sidecar isolate web-render --yes \
--resolver-rules 'MAP * ~NOTFOUND' # automation; LDCMD_ASSUME_YES=1
ldcmd sidecar isolate web-render --verify # checks only
ldcmd sidecar isolate web-render --yes --rotate-worker-password
# --proxy-server URL --network-name NAME --internal-network
# --no-restart (config only; ldcmd up later)
Without a TTY it refuses unless --yes is given. Re-running is safe: existing
passwords, users, network and overlay are detected and kept; nothing is
rewritten or restarted when nothing changes (it only re-verifies). Once Redis
loads the ACL file, later user changes apply live (ACL LOAD). The previous
.env is kept as .env.bak-isolate-<timestamp> (0600); the .env is written
0600. Passwords travel to redis-cli on stdin only, never on a command line
or in output.
Default user password: after the first run Redis requires a password.
Update every other Redis client (monitoring, backup jobs, ad-hoc
redis-cli, anything with its own REDIS_URL) with the new credentials from
.env. Sidecars started by ldcmd read the deploy .env and keep working.
Requires Redis 7+ and an image that honours REDIS_ARGS (default
redis/redis-stack); otherwise start Redis with --aclfile yourself first.
Tests: sh tests/sidecar_isolate.test.sh (docker/redis-cli shims; runs the
app scripts with deno from LIMEDOC_APP_ROOT, default ../..).
Host pack trees for Compose:
- Default: download the pack zip,
.sha256and.sig.jsonintosidecars/<id>@<version>/. Before anything runs, ldcmd verifies the pack inLIMEDOC_IMAGE(/app/scripts/pack_verify_dir.ts: trust-root-signed publisher registry, content hash, Ed25519 signature bound to kind/id/version) and refuses the pack if verification fails or cannot run (no docker, image too old, missing signature). Only verified trees get a.ldcmd-verifiedmarker and are reused. Files outside the signed set (and every symlink) are removed from the tree before it is hashed, so nothing unsigned reaches Compose (app images before 0.4.5 verify without that pruning). Legacy v1 pack signatures needTRUST_ACCEPT_V1_PACK_SIGNATURES=true(or a pinned hash) during the transition. - Bind-mount: set
LIMEDOC_PLUGINS_DIRto the host plugins path and ldcmd uses$LIMEDOC_PLUGINS_DIR/<id>.plugin/after verifying it against the signed release of its version (read-only; nothing is pruned). A pack checkout only you can write may skip that withLDCMD_TRUST_PLUGINS_DIR=1; never point it at the app's plugins volume, which the app can write.
ldcmd bootstrap
# Interactive: prompts for deploy directory name under cwd (default limedoc).
# Compose project name = that directory basename (containers {name}-app-1).
# Default DOCKER_NETWORK_NAME = {basename}_internal (multi-instance isolation).
# Sidecars: {basename}-sidecar-{pluginId}. Distinct APP_HOST_PORT / worker ports
# still required for >1 deploy on one host.
# Then: optional path to a previous deploy env file (any name; relative to
# invocation cwd, or absolute / ~/…). ldcmd copies → deploy/.env; wizard merges
# answers onto it so COLLABORA_* / custom keys survive. Secrets not shown.
# Non-interactive / override: LIMEDOC_DEPLOY_DIR=/opt/wiki (validated; no system roots)
# The deploy dir must be new, empty or an existing deploy dir (bootstrap writes
# the bundle there and, as root, hands the directory to UID 10001); --force
# takes another non-empty directory. Paths with whitespace or * ? [ are refused.
# optional: LIMEDOC_IMAGE=…:1.2.3 LIMEDOC_VERSION=1.2.3
# After compose up: if install registry is non-empty → restore packs (withDeps)
# or wipe only if volumes still empty (wipe archives data/config to
# backups/pack-wipe-*.tar.gz). Partial restore continues to sidecar configure.
# Sidecar configure seeds prompts from deploy .env; bootstrap then runs ldcmd up.
# Greenfield: Plugins prompt for recommended packs + sidecar up --configure + up.
# Manual recovery: ldcmd packs restore --force && ldcmd up
Data: named volumes ↔ host directory
Wiki data (/app/data) and the vectorsearch cache share one unified host tree
layout (vectorsearch under cache/vectorsearch). Named-volume deploys split that
across two Docker volumes; host-directory deploys keep everything under one path.
Wizard host path forms: bare name under the deploy dir (default data →
./data), . / ./name under the host parent of the deploy dir (stored as
absolute paths; bootstrap injects LIMEDOC_HOST_DEPLOY_PARENT so the in-container
/host-deploy mount is not used as parent), or an absolute /path.
ldcmd bootstrap / ldcmd up create or validate the directory on the host
(empty = new; non-empty must be a Limedoc data tree; no nested data dirs; leaf
mkdir only).
cd "$LIMEDOC_DEPLOY_DIR"
# Volume mode → portable / host-shaped tree (default DIR=./data):
ldcmd data export ./data
# Then set in .env:
# LIMEDOC_DATA_MOUNT=./data
# VECTORSEARCH_CACHE_MOUNT=./data/cache/vectorsearch
# and: ldcmd up
# Host tree → named volumes (mounts must be limedoc_data / limedoc_vectorsearch_cache):
ldcmd data import ./data # asks first; --yes without a terminal
ldcmd admin rebuild # Redis still caches the previous data
Both commands stop the app (and the vectorsearch sidecar) for the copy, do nothing when one cannot be stopped, and start again what was running.
- export creates the directory for its owner only (0700).
- import replaces the content of both volumes. It checks the source first
(not empty, the data layout, the export manifest when present), asks for
confirmation (
--yes; required without a terminal) and copies the current data volume to a snapshot volume<volume>-pre-import-<UTC time>before clearing it (--no-backupskips; remove the snapshot withdocker volume rmonce the import is confirmed). After a failed import the app stays stopped and the snapshot is named. - The deploy
.envand its keys are not part of the data. A tree from an instance withCONTENT_VERSION_MODE=encryptedis unreadable withoutCONTENT_VERSION_GLOBAL_KEY(and the retired keys): keep them with the backup, in a separate place. LDCMD_HELPER_IMAGE(defaultalpine:3.20) is the image used for volume copies; set a digest reference to pin it.
Tests: sh tests/data.test.sh, sh tests/sidecar_verify.test.sh (PATH
shims; no network or docker).
Pack developers — limedoc-dev reach-in (no app git clone)
Your pack repo is the only source you need. ldcmd pulls limedoc-dev and
runs tasks inside app-dev against your bind-mounted pack code.
cd my-plugin # scaffolded pack — no limedoc clone
ldcmd init
ldcmd setup && ldcmd up # also starts pack composeFiles when deploy.json present
ldcmd test # compose exec into app-dev
ldcmd check
ldcmd pack
Requirements
- Docker (or Podman with
DOCKER_CMD=podman) - Pack commands: cwd with
compose.dev.yml(usuallylimedoc.project.json) - Bootstrap / sidecar: network access to the package + container registries
python3,curl,unzipfor sidecar download/extract
Install / list / uninstall packs (running app)
Works from a prod deploy dir (docker-compose.yml + .env, or
LIMEDOC_DEPLOY_DIR) or a pack-dev cwd (compose.dev.yml). Does not
require .env.ldcmd:
ldcmd plugin ls # available from store; ✓ = installed
ldcmd plugin ls --installed # install registry only
ldcmd plugin install collabora --with-deps
# Packs with deploy.json print summary + operatorNotes, then:
# ldcmd sidecar up <id> --configure
# Finish with ldcmd up so the app recreates and picks up .env / mounts.
ldcmd packs restore --force # when registry exists but pack volumes are empty
ldcmd plugin uninstall collabora # refuses if dependents exist
ldcmd plugin uninstall web-render --force # cascade-uninstall dependents
ldcmd plugin deactivate drawio
ldcmd template activate email
ldcmd skin select lime
ldcmd skin palette midnight # or: none
Plugin uninstall in a prod deploy dir also runs ldcmd sidecar down <id>.
Plugin install, uninstall, activate and deactivate tell the running app to
reload its plugins (Redis broadcast, app ≥ 0.60.1); reload open browser tabs
for toolbar changes. With an older app, activate/deactivate may not
return on its own: run ldcmd update first.
Updates go to the newest verified version the store lists (signed pack meta from the vetted publishers' registries), with the same signature, hash and dependency checks as an install; a pack is never downgraded, and local/dev installs are left alone:
ldcmd plugin update --check # report only
ldcmd plugin update # every installed plugin
ldcmd plugin update web-render mermaid
ldcmd skin update && ldcmd template update
Running app instances reload updated plugins themselves. In a prod deploy dir
update also moves updated plugins' sidecars to the new version
(sidecar up <id>) and restarts the app when a template changed (the
production template cache only clears on restart); --no-restart prints those
steps instead. Pack updates need an app version with packs:update; on an
older one, ldcmd update first.
Configuration (.env.ldcmd)
On first pack-dev use (or ldcmd init), ldcmd resolves pack id/kind and
writes .env.ldcmd. PACK_DIR / PACK_TASK / registry owner are derived from
kind (main Limedoc registry by default; choose custom to set URL + owner).
See .env.example.
Commands
Every command and sub-command has detailed help: ldcmd <command> --help,
ldcmd <command> <sub-command> --help, or ldcmd help <command> [<sub>].
| Command | Purpose |
|---|---|
ldcmd list |
Instances on this host (running or not) |
ldcmd use <id|path> / use --clear |
Select the instance operator commands work on |
ldcmd -i <id|path> <command> |
Run one command on another instance |
ldcmd bootstrap / install |
Prod bootstrap (deploy bundle + wizard + compose) |
ldcmd update [--check] [--with-packs] [--image R] |
Update the instance (bundle, image, sidecars) |
ldcmd self-update [--check] |
Replace ldcmd with the latest signed release |
ldcmd up / down / status |
Selected instance or pack-dev stack |
ldcmd logs [--sessions] [service] / sh [service] |
Instance logs / shell, from any directory |
ldcmd data export|import [DIR] |
Unified host tree ↔ named data + vectorsearch vols |
ldcmd packs restore [--force] |
Re-fetch packs from install registry (compose run) |
ldcmd sidecar status|up|down |
Pack-owned sidecars on prod host |
ldcmd sidecar isolate web-render |
Guided worker isolation (Redis ACL, network, keys) |
ldcmd plugin|skin|template install|ls|uninstall |
Install / list / uninstall packs in the running app |
ldcmd plugin|skin|template update [--check] |
Update installed packs to the store versions |
ldcmd plugin|template activate|deactivate |
Soft enable/disable (templates + plugins) |
ldcmd skin select|palette |
Choose active full-skin + optional palette overlay |
ldcmd authz grant-admin|revoke-admin <sub> |
In-app operator role for an IdP user |
ldcmd acl inherit-empty [--apply] |
Repair ACL files of the pre-0.27 editor |
ldcmd admin rebuild [target] |
Rebuild caches / the cached tree from disk |
ldcmd admin check tree [--repair-clashes] |
Tree consistency report and name clash repair |
ldcmd admin blob-gc / admin history … |
Blob sweep, history fsck / retention |
ldcmd init |
Re-detect / prompt and rewrite .env.ldcmd |
ldcmd version |
Print tool version |
ldcmd setup |
Pull limedoc-dev, seed .env |
ldcmd logs / sh |
Logs / shell in a service |
ldcmd test / fmt / lint / check |
Reach-in to app-dev |
ldcmd pack / publish [--replace] |
Build zip+sha / upload to package registry |
Releasing ldcmd (maintainers)
- Run the tests:
sh tests/run_all.sh(LIMEDOC_APP_ROOT= app checkout; CI runs them on every push and pull request, and again before a release, withLDCMD_TEST_NO_SKIP=1). - Bump
VERSION, commit and push tomain. - Tag
v{VERSION}and push the tag. Only a tag push can sign, so there is no manual Release run; to retry a failed release, re-run that tag's run.
Secrets: PACKAGE_TOKEN with package + release write.
License
This repository is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2). Copyright 2026 Oliver Maklott (Belowtoxic e.U.).
You may use, modify, and redistribute it for any purpose other than a Competing Use. Two years after a version is made available, that version is also licensed under the Apache License 2.0.