For a project with one executable target:

c3pm bundle

For a project with multiple executable targets, name the target:

c3pm bundle server

Set a custom output path with:

c3pm bundle server --output ./release/backend

The default output is:

dist/<target>

bundle supports executable targets only. Its output is a regular Linux executable rather than a symlink into the Nix store.

How portable bundles work explains how Nix finds the package’s referenced runtime closure and embeds it in the output file.