Skip to main content

Daily Operations

Day-to-day stack management with the intelliask binary — start, stop, restart, status, logs, shell, db, updates, backup/restore, and systemd.

intelliask is a single self-contained binary that drives the whole stack. It finds the config/ folder sitting next to it (where the *.compose.yml files and .env live) and shells out to docker compose for you. It acts on the whole stack by default, or on one or more named services if you pass them.

Running the binary

On the VM the binary lives next to config/ (e.g. /opt/intelliask/intelliask). Run it as ./intelliask <command> from that folder, or put it on your PATH and call intelliask <command> from anywhere. A short iask alias is installed too. Run intelliask help for the full command + flag reference.

Commands

intelliask up                # start the whole stack (detached)
intelliask down              # stop + remove the whole stack
intelliask restart           # restart the whole stack
intelliask stop              # stop (keep containers)
intelliask start             # start previously-stopped containers
intelliask status            # service status + health (docker ps + app probe)
intelliask status --raw      # plain `docker compose ps` output
intelliask logs              # tail logs for the whole stack
intelliask shell <service>   # open a shell in a container
intelliask db mongo|psql     # open a database client
intelliask update            # pull latest images and recreate services
intelliask self-update       # update only this binary (config/ is left alone)
intelliask doctor            # run diagnostics: preflight + .env sync (subchecks: env | health)
intelliask backup            # back up databases + config
intelliask backup restore --from DIR # restore a backup
intelliask provision [flags] # full first-time setup
intelliask module <list|enable|disable> [name]   # optional features (incl. proxy)
intelliask banner <show|set|clear> [flags]   # in-app announcement banner
intelliask secrets <gen|rotate>   # manage secrets in .env
intelliask garage            # bootstrap the Garage S3 store
intelliask service           # install/uninstall the systemd unit
intelliask version           # print the binary version
CommandWhat it does
upCreate + start the stack detached. Add --no-detach to stream logs in the foreground.
downStop and remove containers (data volumes are kept unless you pass --volumes).
restartRestart containers in place.
stop / startStop without removing / start stopped containers.
statusPer-service state + health-check column, plus a probe of the app's /health endpoint. Add --raw for plain docker compose ps (accepts service names), or --no-probe to skip the HTTP check. Also available as health.
logsFollow logs (-f --tail=200). Filter with --since, --grep, --errors.
shellOpen bash/sh in a service, or run a one-off command with -- <cmd>.
dbOpen a DB client — mongo (mongosh) or psql — with in-container credentials.
updatePull the latest images and recreate services — see Updating images.
self-updateReplace only the intelliask binary with a newer release, keeping config/ as it is — see Updating the intelliask binary.
doctorRun diagnostics in one pass: host/config preflight (Docker reachable, Compose version, cgroup v2, /dev/kvm, core secrets, license, free ports, disk space) and the .env ↔ compose sync check. The license checks cover the device key, a writable storage/licenses and, while IntelliAsk runs, the license server's answer and the app's last license status. Subchecks: doctor env (sync only) and doctor health (live probe only).
backup / backup restoreSnapshot and restore the databases + config — see Backup & restore.
provisionFirst-time setup — see Installation.
moduleEnable/disable/list optional features — the reverse proxy, exporter, code interpreter, Garage, RAG API, vector DB, and the opt-in Admin Panel and IntelliCollab. Flags may go before or after the module name. See Optional modules and Reverse Proxy.
bannerShow, set, or clear the in-app announcement banner without shelling into the container — see Banner.
secretsgen fills blank secrets; rotate regenerates all — see Configuration & Secrets.
garage(Re-)create the Garage S3 layout, bucket, and access key.
serviceInstall/uninstall the systemd boot unit.
versionPrint the binary version.

Working with a single service

Append one or more service names to act on just those. Valid services:

mongodb  meilisearch  vectordb  rag-api  intelliask  redis  garage  exporter
codeapi-api  codeapi-service-worker  codeapi-file-server
codeapi-tool-call-server  codeapi-egress-gateway  codeapi-sandbox-runner

(proxy is also valid when the reverse proxy is enabled, admin-panel when the Admin Panel module is, and intellicollab / intellicollab-db when IntelliCollab is.)

intelliask restart rag-api                # restart one service
intelliask restart intelliask codeapi-api # restart several
intelliask up mongodb                     # (re)create + start one service
intelliask logs intelliask                # tail one service's logs
intelliask status                         # full stack status

down acts on the whole stack

down always tears down the entire stack. To stop a single service without removing the rest, use stop (or restart) with the service name: intelliask stop rag-api.

Checking health & reading logs

intelliask status                         # per-service state/health + /health probe
intelliask status --no-probe              # table only, skip the HTTP probe
intelliask logs intelliask                # follow one service's logs
intelliask logs --errors                  # only error-like lines across the stack
intelliask logs --since 10m --grep timeout intelliask
intelliask logs --no-follow --tail 500 codeapi-api

logs flags: --since <time> (e.g. 10m or an RFC3339 timestamp), --grep <regex> (case-insensitive), --errors (shortcut for error|warn|panic|fatal|exception|traceback), --tail <N> (default 200), and --no-follow to print and exit.

Getting a shell or database client

intelliask shell intelliask               # bash/sh inside the app container
intelliask shell codeapi-api -- ls /app   # run a one-off command
intelliask db mongo                        # mongosh into MongoDB (IntelliAsk db)
intelliask db psql                         # psql into the pgvector database

Both db clients authenticate with the credentials already inside the container, so no secrets appear on your command line.

Updating to a new image

Check the upgrade paths first

The upgrade paths page shows, for every component, which releases are drop-in and which need changes to .env, intelliask.yaml, the compose files or the database before you upgrade to them.

Images are referenced as ${REGISTRY:-}${<SERVICE>_IMAGE} in each compose file. Use update to pull and recreate — the whole stack, or named services:

intelliask update                          # whole stack
intelliask update intelliask               # just the app
intelliask update intelliask codeapi-api   # several services
intelliask update --check                  # only show available upgrades

Each run:

  1. Checks the upgrade paths for the versions in config/.env. It lists newer releases and flags the ones that need changes to .env, intelliask.yaml, the compose files or the database before you upgrade to them, with a link to their changelog.
  2. Offers upgrades (in a terminal): for each component it asks whether to move up to the newest release that needs no changes. It never moves past a flagged release on its own.
  3. Backs up the configuration — the whole config/ folder (.env, intelliask.yaml, compose files, proxy config) — to <storage>/backups/<timestamp>/, and asks whether to back up the databases too (--backup-db / --no-backup-db answer it up front; without a terminal the databases are skipped unless you pass --backup-db). Roll back with intelliask backup restore --from <that folder>.
  4. Pulls the images and recreates only the targeted services.

To move to a specific tag — including past a flagged release, once you've made its changes — use --version. It rewrites the matching <SERVICE>_IMAGE in config/.env (after a safety backup of .env):

intelliask update --version v0.9.0 intelliask
intelliask update --version v0.9.0 --reviewed --backup-db intelliask   # unattended

When the tag crosses a flagged release, update shows what changed and asks you to confirm you've reviewed it; without a terminal, pass --reviewed. If the upgrade paths can't be reached (offline or air-gapped hosts), --version asks the same.

update does a best-effort private-registry login first (using the CI_* credentials in config/.env); pass --skip-login to skip it. It does not edit any other .env values or run a full down/up — only the targeted services are recreated. See Configuration & Secrets.

Updating the intelliask binary

self-update replaces only the intelliask binary with a newer release. Your config/ folder (.env, intelliask.yaml, compose files, proxy config) is left exactly as it is, and the running stack is not restarted.

intelliask self-update --check             # is a newer binary published?
intelliask self-update                     # download, verify and install the latest
intelliask self-update --version 1.0.5     # install a specific release
intelliask self-update --rollback          # put back the binary it replaced

It downloads the binary for your platform, checks it against the published SHA-256, runs it once to confirm its version, then swaps it in place. The replaced binary is kept next to it as intelliask.prev; --rollback swaps the two back. If the binary lives in a root-owned folder, run it with sudo.

Because your configuration isn't updated, self-update checks the upgrade paths first. When a release in between changes .env, intelliask.yaml or the compose files, it lists those changes and asks you to confirm you've made them. Without a terminal, pass --reviewed (and --yes to skip the final prompt). If you'd rather get the new configuration files too, download the full setup bundle from Downloads instead.

The binary is also on Downloads under Binary only, for manual installs (e.g. copying it to a host without internet access). It downloads as intelliask-linux-amd64 so it can't overwrite the binary you're running. Check it against the release's checksums, then rename it to intelliask in the folder that holds the current one:

curl -L -o intelliask-linux-amd64 "https://intelliask.mt/api/downloads/intelliask-setup/latest/intelliask-linux-amd64?asset=binary"
curl -L "https://intelliask.mt/api/downloads/intelliask-setup/latest?asset=checksums"   # compare with:
sha256sum intelliask-linux-amd64
chmod +x intelliask-linux-amd64
cp intelliask intelliask.prev && mv intelliask-linux-amd64 intelliask
./intelliask version

Backup & restore

backup dumps MongoDB and the pgvector Postgres database (streamed straight out of the containers) — plus IntelliCollab's own PostgreSQL (intellicollab.dump) when that module is enabled — and archives the whole config/ directory (.env, intelliask.yaml, compose files, garage.toml, proxy config/certs). The bind-mounted storage folder is excluded by default — add --with-files to include uploads, generated images, and licenses.

intelliask backup                          # DBs + config -> <storage>/backups/<timestamp>/
intelliask backup --with-files             # also archive the storage folder
intelliask backup --keep 7                 # prune all but the newest 7 backups
intelliask backup --out /mnt/backups       # choose the destination

Schedule daily backups with a systemd timer (requires root):

intelliask backup schedule --time 02:00 --keep 7   # daily at 02:00, keep 7
intelliask backup unschedule                       # remove the timer

Restore points at a backup directory and overwrites the current databases (you must type restore to confirm). The captured config/ is restored too:

intelliask backup restore --from ./storage/backups/20260721-020000
intelliask backup restore --from <dir> --with-files # also restore storage files
intelliask restart                                 # pick up restored config

intelliask restore --from ... still works as a top-level alias for intelliask backup restore.

Tearing down

intelliask down                  # stop + remove containers, KEEP data
intelliask down --volumes        # ALSO delete named volumes (DESTROYS DATA)
intelliask down --local-storage  # ALSO delete the host STORAGE_ROOT files

Destructive flags

  • --volumes wipes Mongo/Postgres/Garage data. Secrets stay in .env, but after the next up you must re-bootstrap Garage (intelliask garage, or re-run intelliask provision) to recreate the S3 bucket/key. You'll be asked to type yes to confirm.
  • --local-storage (alias --storage) deletes the host bind-mounted STORAGE_ROOT folder (uploads, generated files, Code Interpreter data). It does not delete .env, config, or proxy certs. You'll be asked to type delete local storage to confirm.

Running on boot (systemd)

Provisioning installs and enables intelliask.service, so the stack comes up automatically after a reboot. Manage the unit with the binary or systemctl:

intelliask service                # install + enable the boot unit
intelliask service --start        # install, enable, and start now
intelliask service --uninstall    # stop, disable, and remove the unit
 
sudo systemctl start intelliask
sudo systemctl stop intelliask
sudo systemctl restart intelliask
sudo systemctl status intelliask

Both the systemd service and the day-2 commands honour the persisted reverse-proxy choice (PROXY_ENABLED in config/.env).

Last updated on