Skip to main content

Command-line reference

All commands run from the repository root unless noted.

start.py — run from source​

python start.py [--desktop] [--check | --prepare-only] [--data-dir DIR] [--port PORT] [--host HOST] [--admin-user NAME] [--no-browser] [--password-stdin]
OptionDefaultMeaning
--data-dirPer-system default (Data, backups and upgrades)A new empty directory, or one this launcher created
--port18989HTTP port
--hostLoopback onlyBind address. A LAN IP exposes it on your network over plain HTTP
--desktopoffAlso install and open the desktop client, with its own profile
--checkCheck prerequisites without installing or changing files
--prepare-onlyInstall dependencies and build the UI without starting a service or asking for a password
--admin-useradminAdministrator name for the first start
--no-browserDon't open the browser
--password-stdinRead the first administrator password from standard input, never from arguments or a file

Also: sh start.sh; on Windows start.cmd and start-desktop.cmd (adds --desktop); on macOS start.command and start-desktop.command.

ops/self-host/deploy.py — single-server Docker​

python ops/self-host/deploy.py [up|status|logs|stop|credentials] [--data-dir DIR] [--port PORT] [--public-url URL] [--no-build]
CommandMeaning
upBuild if needed and start. First run creates private configuration
statusContainer status
logsLogs
stopStop this instance. Data, files and keys are kept
credentialsShow the first-boot administrator password
OptionMeaning
--data-dirInstance directory. Use the same one for every command
--portFirst initialization only; default 18989
--public-urlHTTPS origin of your reverse proxy
--no-buildup with the image already built

Also: ops/self-host/deploy.cmd, sh ops/self-host/deploy.sh.

runner_main.py — standalone runner​

Usually installed by the setup command (Runners and cloud environments). Options:

OptionEnvironment variable
--hubSODUWORK_HUB
--keySODUWORK_RUNNER_KEY
--idSODUWORK_RUNNER_ID
--tagsSODUWORK_RUNNER_TAGS
--work-rootSODUWORK_WORK_ROOT
--data-rootSODUWORK_DATA_ROOT
--max-concurrentSODUWORK_RUNNER_MAX_CONCURRENT
--doctor

Checks​

WhereCommand
Repository rootpython -m unittest tools.dev.test_start_local, node tools/check-public-source.cjs, node tools/check-repository-layout.cjs, node tools/check-third-party.cjs, node tools/check-docs.cjs, python tools/security/scan_secrets.py --download
client/npm test, npm run check:layout
hub-frontend/node --test tests/*.test.mjs, npm run build
hub-backend/python quality_gate.py --profile release --scope backend; --list shows all gates
Launcher testspython -m unittest tools.dev.test_start_local tools.dev.test_deploy
Edit this page