Install the tools¶
This page sets up tw, qicsilver and cinnabar to run from a clone of the
repository. Nothing is installed system-wide: uv creates a virtual
environment per package and fetches the dependencies on first use.
Prerequisites¶
- Python 3.11 or newer. Every package sets
requires-python = ">=3.11".uvcan download a suitable Python for you. - uv. Runs each command in its package's environment.
- git. To clone the repository.
- just (optional). A task runner; the
repository's
justfilewraps the common commands. - PlatformIO Core (optional). Only if you build the firmware yourself. See Get the firmware.
Install¶
-
Clone the repository and change into it.
git clone https://github.com/indrora/tapewyrm.git cd tapewyrmEvery command in these docs runs from the repository root.
-
Run
twonce.uv run --project packages/tapewyrm-cli tw --versionThe first run creates
packages/tapewyrm-cli/.venvand installs the dependencies, then prints the version. Later runs start at once. -
Run
qicsilverandcinnabaronce the same way.uv run --project packages/qicsilver qicsilver --version uv run --project packages/cinnabar cinnabar --versioncinnabaris a desktop viewer (Qt). It is optional; the recovery pipeline does not need it. -
Define shell aliases so the rest of the docs read as plain commands.
alias tw='uv run --project packages/tapewyrm-cli tw' alias qicsilver='uv run --project packages/qicsilver qicsilver' alias cinnabar='uv run --project packages/cinnabar cinnabar'The aliases only work from the repository root, because
--projecttakes a relative path. Put them in your shell profile with absolute paths if you want them everywhere.The
tapewyrm-clipackage installs the same command under two names,twandtapewyrm. The docs usetw.
Use just instead¶
If you installed just, these recipes do the same thing from the repository
root:
| Recipe | Runs |
|---|---|
just tapewyrm ARGS |
tw ARGS |
just qicsilver ARGS |
qicsilver ARGS |
just cinnabar ARGS |
cinnabar ARGS |
just fw |
builds the firmware into dist/ (needs PlatformIO) |
just dfu [BIN] |
tw dfu BIN |
just update [IMAGE] |
tw update IMAGE |
just package |
builds the host wheels and the firmware into dist/ |
just --list shows every recipe. The development recipes (just host,
just test) are described in Building and testing.
Verify¶
Run the help for each command. None of these talk to hardware.
tw --help
qicsilver --help
You should see the list of subcommands. tw --help lists convert, dfu,
drive, dump, update, info and inspect.