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 subcommands—parse, analyze, format, fetch, lock, build, run, test, new.

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.

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
flowchart TD
  subgraph day1 [Day one]
    P[parse/tree] --> A[analyze]
    A --> F[format]
  end
  subgraph project [With Project.proj]
    A --> Fetch[fetch/lock]
    Fetch --> B[build/run/test]
  end

When a manifest exists, prefer explicit roots while learning:

Terminal window
beskid analyze --project ./Project.proj --target App

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

Logging and debug flags