Skip to content

CLI Reference

BitForge is driven entirely by flags. With no action flag, running bitforge inside a workspace loads the project and starts the web server.

bitforge [flags]
FlagArgumentDescription
—init[name]Bootstrap a workspace in name (or the current directory). Clones the base sources and writes the manifest.
—poky[release]Used with —init: base the workspace on poky at release instead of OpenEmbedded-core.
—build[target]Start a build for target, or the [default] image when omitted.
—add-layer<name>Scaffold and register a new layer you own under layers/.
—remove-layer<name>Remove one of your own layers and de-register it.
—dependency-add<spec>Clone and link upstream layers. See the spec syntax.
—dependency-remove<name>Remove a tracked dependency, its lock entry and its clone.
—updateDownload and install the latest release in place.
—versionPrint the installed BitForge version and exit.
FlagApplies toDescription
—force—initInitialize even when the target directory is not empty.
—beta—updateUse the latest pre-release instead of the newest stable build.

Flags that take a value accept both an inline and a spaced form, and values may be quoted:

Terminal window
bitforge --init my-distro
bitforge --init=my-distro
bitforge --init "demo poky"
bitforge --poky=scarthgap
VariableUsed byDescription
BITFORGE_REPO—update, install scriptOverride the owner/name GitHub repository (default DraviaVemal/BitForge).
BITFORGE_INSTALL_DIRinstall scriptInstall location (default ~/.local/bin).
Terminal window
# Bootstrap a poky workspace and enter it
bitforge --init my-distro --poky scarthgap
cd my-distro
# Add layers and a dependency
bitforge --add-layer sensors
bitforge --dependency-add https://git.openembedded.org/meta-openembedded#meta-oe,meta-python
# Start the server, then build an image
bitforge
bitforge --build core-image-minimal
# Keep the tool current
bitforge --update