just(1)
A handy way to save and run project-specific commands.
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
| Flag | What it does |
|---|---|
-l, --list | List all available recipes with their descriptions |
-f FILE, --justfile FILE | Use a custom justfile path instead of the default |
-d DIR, --working-directory DIR | Change to DIR before running recipes |
-s, --show TARGET | Print the recipe for TARGET without executing it |
-n, --dry-run | Print recipes without executing them |
--no-highlight | Disable syntax highlighting in output |
-q, --quiet | Suppress output from recipes |
--evaluate | Print all variables and their values |
Examples
Run the default recipe (first one in justfile)
justList all available recipes with descriptions
just -lRun the 'build' recipe
just buildRun the 'test' recipe and pass '--verbose' as an argument
just test --verboseShow the 'deploy' recipe without executing it
just -s deployPerform a dry-run of the 'test' recipe, printing commands without executing
just -n testUse a custom justfile located at scripts/build.just
just -f scripts/build.just compile