Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

CLI command reference

Index of beskid subcommands: links to per-command documentation.

CLI command reference

Arguments can be expanded from response files using the @file convention (via the argfile crate), consistent with other Rust CLI tools.

Unless noted, failures print a diagnostic report (miette) and exit non-zero.

  • On launch, the CLI ensures the bundled corelib tree is available (and may print a short message when it materializes or updates a copy). Override the source location with BESKID_CORELIB_SOURCE when developing against a different corelib checkout.
  • Subcommands that need a single resolved .bd entrypoint accept optional --project, --target, and --workspace-member together with --frozen / --locked where project resolution applies (see analyze, doc, run, build, clif, fetch).
CommandSummary
devGroup the supported developer aliases
parseParse a .bd file and print a debug AST view
treePrint a textual AST tree
analyzeRun semantic analysis and print diagnostics
format / fmtPretty-print sources (file or recursive directory)
docEmit api.json and index.md for API docs
clifLower to CLIF and print IR
runAOT-compile, link, and execute in a subprocess
testDiscover, filter, and run test items with the current JIT test engine
replEvaluate snippets in an interactive JIT session
buildAOT compile and link
modBuild and clean compiler Mod AOT artifacts
importResolve a supported foreign library into link metadata
fetchResolve and materialize dependencies
lockSynchronize Project.lock
updateUpdate resolution and materialized workspace
corelibMaterialize embedded corelib template
runtime-kitBuild exact ABI-v5 native runtime kits
newList, install, and instantiate project/workspace/item templates
pckgpckg registry client: pack (.bpk with exact semver), upload (artifact-bound version), search, download, yank, …
graphRender project and workspace graphs
hiOpen the project-aware terminal dashboard
lspRun or install the language server
upInspect and select direct-install versions
validate-bsolValidate a BSOL document against a profile
migrate-bsolMigrate a BSOL document to a selected profile

The grouped aliases are documented once on the beskid dev page. fmt is the visible alias for beskid format. Use the concise root command in procedures and automation.

The pinned compiler revision contains retired manifest names in some command comments. Its resolver implementation requires .bproj and .bws. This reference uses the implemented file contract. The compiler owner must correct the stale comments in a compiler-owned change.