Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

02.3 CLI tour

Week-one Beskid root commands for source checks, projects, builds, tests, and templates.

CLI tour

The CLI is the ground truth. Editors are a pretty face on the same pipeline.

  • Response files: @file expansion (Rust argfile convention).
  • Failures: diagnostic report (miette) + non-zero exit unless noted.
  • Corelib: materialized on launch; override with BESKID_CORELIB_SOURCE.

Full tables: CLI command reference. The optional grouped discovery aliases are documented once on the beskid dev page.

CommandWhy you care
parse / tree”Did the parser see my file?”
analyzeSemantic diagnostics before you blame codegen
formatStop formatting debates
fetch / lock / updateDependencies and reproducibility
build / runShip something executable
testRun test items in the project
newTemplates for projects/workspaces/items
docapi.json + markdown API output
corelibMaterialize embedded corelib template
pckgRegistry client when you publish packages
accTitle: Concise CLI workflow
accDescr: File commands inspect source, then project commands prepare dependencies before build, run, and test.
flowchart TD
  subgraph day1 [Day one]
    P[parse/tree] --> A[analyze]
    A --> F[format]
  end
  subgraph project [With App.bproj]
    A --> Fetch[fetch/lock]
    Fetch --> B[build/run/test]
  end

Text equivalent: Use parse, tree, analyze, and format for source checks. In a project, use fetch or lock before build, run, or test.

When a manifest exists, prefer explicit roots while learning:

Terminal window
beskid analyze --project ./App.bproj --target App

--frozen / --locked participate in resolution policy—see fetch and lock.

Logging and debug flags