Activate & Deactivate
Activating a Runtime
bash
futou use <name> <version>Activation does two things:
- Creates
.batshim files in the shims directory (%APPDATA%\.futou\shims\). Each executable in the runtime'sbin/directory gets a.batwrapper. - Adds the shims directory to
PATHvia the Windows registry (HKCU\Environment\PATH). AWM_SETTINGCHANGEbroadcast notifies running processes.
bash
$ futou use php 8.4.23
php 8.4.23 is now activeAfter activation, php, php-cgi, and other PHP binaries are available from any terminal.
Multiple Activations
You can activate multiple runtimes simultaneously. For example, futou use php 8.4.23 then futou use nodejs 22.23.1 — both will be available in your PATH.
Deactivating a Runtime
bash
futou deactivate <name>Removes the runtime's shims from the shims directory and clears the active entry in state. Does not remove the runtime from PATH if other runtimes' shims are still present.
bash
$ futou deactivate php
php deactivatedShim Cleanup
Deactivation only removes shims for the specified runtime. Other runtimes' shims remain untouched. The daemon tracks which shims belong to which runtime via shims.json.