just
Original:🇺🇸 English
Translated
Reference for `just`, the command runner. Use when working in a project with a `justfile` or when the user mentions `just` or `justfile`.
4installs
Sourcecasey/just
Added on
NPX Install
npx skill4agent add casey/just justTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Just
Discovery
- Print justfile
just --dump - Print variable values
just --evaluate - Print detailed command-line syntax help
just --help - Print recipes with descriptions
just --list - Print recipe source
just --show <RECIPE> - Print recipes without descriptiosn
just --summary
Execution
- Run default recipe
just - Run specific recipe
just <RECIPE> - Run recipe with arguments
just <RECIPE> <ARG1> <ARG2
Syntax
just
executable := 'main'
# compile main.c
compile:
cc main.c -o {{ executable }}
# run main
run: compile
./{{ executable }}
# run test
test name: compile
./bin/test {{ name }}
# start webserver
serve port='8080':
python -m http.server {{port}}
# publish current tag
publish:
#!/usr/bin/env bash
set -euxo pipefail
tag=`git describe --tags --exact-match`
./bin/check-tag $tag
git push origin $tagNotes
The comment proceeding a recipe is used as its doc-comment, and included in
.
just --listBy default, each line of a recipe runs in a fresh shell. Recipes whose bodies
start with are written to a file and executed as a script.
#!Commonly used commands and scripts should be turned into recipes.
just