Netsuke's CLI provides commands to manage your build.
netsuke [OPTIONS] [COMMAND] [TARGETS...]
-
Step 01
Global Options
-
-f, --file <FILE>: Path to theNetsukefile(default:Netsukefile). -
-C, --directory <DIR>: Change to directoryDIRbefore doing anything. -
-j, --jobs <N>: Set the number of parallel jobs Ninja should run (default: Ninja's default). -
-v, --verbose: Enable verbose logging output.
-
-
Step 02
Commands
-
build(default): Compiles the manifest and runs Ninja to build the specifiedTARGETS(or thedefaultsif none are given). -
--emit <FILE>: Write the generatedbuild.ninjafile to<FILE>and keep it, instead of using a temporary file. -
manifest <FILE>: Generates thebuild.ninjafile and writes it to<FILE>without executing Ninja. Useful for debugging or integration with other tools. -
clean: Removes build artefacts by runningninja -t clean. Requires rules/targets to be properly configured for cleaning in Ninja (often viaphonytargets). -
graph: Generates the build dependency graph and outputs it in DOT format (suitable for Graphviz). Future versions may support other formats like--html.
-
-
Step 03
Exit Codes
-
0: Success. -
Non-zero: Failure (e.g., manifest parsing error, template error, build command failure).
-