$linuxjunkies
>

just(1)

A handy way to save and run project-specific commands.

UbuntuDebianFedoraArch

Synopsis

just [OPTIONS] [TARGET] [ARGS]...

Description

just is a command runner that reads recipes from a justfile in the current directory and runs them. It's similar to make but simpler and more suitable for general-purpose task automation.

Recipes are defined in a justfile with a syntax similar to Makefiles. Each recipe can have dependencies, parameters, and shell commands. just is useful for automating build steps, deployment tasks, testing, and other project-specific commands.

Common options

FlagWhat it does
-l, --listList all available recipes with their descriptions
-f FILE, --justfile FILEUse a custom justfile path instead of the default
-d DIR, --working-directory DIRChange to DIR before running recipes
-s, --show TARGETPrint the recipe for TARGET without executing it
-n, --dry-runPrint recipes without executing them
--no-highlightDisable syntax highlighting in output
-q, --quietSuppress output from recipes
--evaluatePrint all variables and their values

Examples

Run the default recipe (first one in justfile)

just

List all available recipes with descriptions

just -l

Run the 'build' recipe

just build

Run the 'test' recipe and pass '--verbose' as an argument

just test --verbose

Show the 'deploy' recipe without executing it

just -s deploy

Perform a dry-run of the 'test' recipe, printing commands without executing

just -n test

Use a custom justfile located at scripts/build.just

just -f scripts/build.just compile

Related commands