OxL Справочник OxL
РусскийEnglish

cmd Команды oxl

Утилита oxl — единая точка входа тулчейна. Страница каждой команды: использование, флаги, связанные страницы руководства. Таблица команд — С III.1; эта справка генерируется из таблицы команд самого oxl (oxl help --json).

КомандаОписание
oxl newcreate a package
oxl buildcompile a package or a single .oxl file; --static links a fully static executable (glibc, libstdc++ and the runtime's libraries inside; implementation extension, D-7703); --image oci:<dir>[:tag] write
oxl runbuild and run one node; runtime flags (III.6): --set K=V --role r1,r2 --data-dir d --listen a --debug-listen a --inspect-ui[=a] --log-level l --insecure-dev
oxl devlocal cluster of N nodes (127.0.0.1:7000+i), restarted when the code changes
oxl testrun tests (III.9)
oxl checktype-check and analyse without generating code; compare the schema with a lock file
oxl fmtcanonical formatting
oxl fixapply the quick fixes of the analyzer and compiler (the fix-its the language server offers) to a package in one batch; --dry-run prints a unified diff and exits 1 when there is something to fix
oxl docHTML documentation of the pub items from `///` comments (build/doc)
oxl addadd a dependency to oxl.toml and update oxl.lock
oxl removeremove a dependency
oxl updateraise ^/~ requirements to the newest allowed release, refetch vcs branches, re-resolve
oxl publishpublish to the registry with SemVer and schema checks
oxl yankmark a published version as yanked (the resolver no longer chooses it; locks that name it keep working); --undo reverses it
oxl exportschemas for other languages; role -> method call graph
oxl gentyped clients of the pub(api) services
oxl dbORM migrations (§12.8): oxl.db.lock + migrations/NNNN_name.up.sql/.down.sql, applied ones recorded in _oxl_migrations
oxl accessaccess rights analysis (§13.4): who may call an rpc and through which rules / roles; permissions added or removed since a revision (default HEAD) or a saved model (exit 1 when access widened unless --
oxl configdynamic config of a running cluster
oxl abA/B experiments (§18.5): start creates the dynamic Flag oxl.ab.<name> from the package's `test ab`, status shows the metrics per variant with significance, a violated guard rolls the flag back
oxl debugremote debugger (III.7): a DAP adapter on stdin/stdout to a node, directly or through the cluster
oxl inspectweb interface to a running cluster (III.8): serves the inspector locally against a node's oxl.Inspect
oxl tracethe call graph of a request across the nodes; --record journals the incoming rpcs of the cluster (docs/oxlrec.md)
oxl replayreplay recorded requests against a node and compare the responses
oxl profprofiler of a running node through the cluster (III.1): cpu sampling, heap allocations, tasks
oxl keysnew KMS master key (data keys re-wrapped); principal certificates of the cluster CA (D-6653, D-7200)
oxl storagesnapshots of the built-in storage (§12.8): every Raft group of a node (policy Admin, audited); restore into a stopped node
oxl lsplanguage server (LSP over stdin/stdout)
oxl dapdebug adapter (DAP over stdin/stdout, proxy over lldb-dap)
oxl clusterbuilt-in CA: cluster id, CA, master key file, join tokens, deny-list
oxl auditthe local sink of @audit decisions
oxl registryserve a package registry directory over HTTP (static index + authenticated publish)

Коды завершения

0success
1program error or failed tests
2bad arguments
3compilation error
78configuration error