ToolsCommandsThe jadpo command
jadpo build
On this page
Build the app to deploy.
Check the project as jadpo check does, then compile each deployable into one native binary in build/target/deployables: in app.jadpo names each one, what it serves and runs and its target; with none declared there is one, app, which runs everything. One built for Target.wasm becomes a WebAssembly module for Cloudflare Workers instead, beside Jadpo's module shim and a wrangler.json naming the settings it needs, its size shown raw and gzipped; the Worker reads its settings from its bindings and serves once its database has every migration. It compiles offline in release with the toolchain and the runtime's lock this Jadpo was built with, keeping each one's Rust in build/rust/
jadpo build [deployable]Arguments
deployable(optional): The deployable to build; every one when left out
On every command
--json: Print data for tools instead of text--full: Show everything a report shortens--help: Show every flag, with examples--color <when>: Choose when to use colour
jadpo build --json writes one JSON document to standard output instead of text, with the same exit code. The document has schemaVersion, command ("build"), ok, data (what the command produced, null when it failed) and diagnostics (each error with its rule, reason, next and help). A command that needs a terminal refuses --json and names the flags that do the same job.
Examples
# Build every deployable of the app you are injadpo build# Build one deployablejadpo build kiosk# Print where it was written and its build stamp as datajadpo build --json
Errors
cli.build_arguments: Ajadpo buildcommand names a deployable the app doesn't have, or more than onetoolchain.build_failed: The Rustjadpo buildwrote for a deployable didn't compile, because the machine lacks something the build runs, such as a C compiler, or because of a mistake in Jadpotoolchain.fetch_failed: The Rust toolchain or the cratesjadpo buildcompiles with couldn't be fetched, usually because the server they come from, or the mirror in its place, can't be reachedtoolchain.artifact_write_failed: A file Jadpo writes for you, such as a record, couldn't be written, usually because it or its folder is read-onlytoolchain.project_not_found: You ran a command that works on a project in a folder with noapp.jadpo, in it or in any folder above it
Markdown for agents: /docs/jadpo-build.md.Built from Jadpo main at aee2e8f.