cli-flags

A reference for the command-line flags of `just`, a tool that runs named project tasks from a justfile. It documents how to list tasks, choose modes, set options, and invoke recipes.

In plain words
What is it for?
Use it when you need to discover available recipes, check how a flag works, or construct a `just` command with variable overrides and recipe arguments.
Why use it?
It keeps the exact flag names, shortcuts, defaults, and allowed values in one place for the pinned `just` version. This reduces guesswork and avoids running commands with unintended effects.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wyattjoh/skills/cli-flags
Clone the repo
git clone --depth 1 https://github.com/wyattjoh/skills
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02682
Opus 5 $0.00000 $0.01341
Sonnet 5 $0.00000 $0.00536
Haiku 4.5 $0.00000 $0.00268

Measured 2d ago against content hash 7a82eb4a9407, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cli-flags scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/just/references/commands/cli-flags.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

just — CLI flag reference

just is a single command with no subcommands. Every "mode" is a flag. This table is transcribed from just --help on the pinned local binary, v1.57.0 (spellings, short forms, argument placeholders, and [env: ...] / [default: ...] / [possible values: ...] annotations are authoritative). Explanations are drawn from the just manual.

Source of truth: just --help (v1.57.0). The reviewed upstream manual snapshot also contains newer, version-gated features; the binary wins when they disagree.

Invocation

just [OPTIONS] [ARGUMENTS]...

[ARGUMENTS]... — "Overrides and recipe(s) to run, defaulting to the first recipe in the justfile." It carries VAR=value overrides, recipe names, and each recipe's own arguments, in order.

Action flags (mode switches)

Listed under Commands: in the help. Several produce side effects — do not run them blindly.

Flag Short Arg Purpose Effect
--list -l [<MODULE>...] List recipes in <MODULE> (root if omitted), with doc comments. read-only
--summary Space-separated recipe names on one line. read-only
--groups List recipe groups (see [group(...)]). read-only
--choose Pick recipe(s) via a chooser ($JUST_CHOOSER, default fzf). runs recipes
--show -s <RECIPE_PATH>... Print a recipe's source. read-only
--usage <RECIPE_PATH>... Print usage info (args + doc) for a recipe. read-only
--dump Print the parsed justfile. read-only
--json Print the justfile as JSON. read-only
--variables List variable names. read-only
--evaluate Print all variables and values; with a name arg, just that one. read-only (runs backticks)
--fmt Format and overwrite the justfile. writes justfile
--init Create a new justfile in the project root. writes justfile
--edit -e Open the justfile in $VISUAL/$EDITOR (falls back to vim). opens editor
--command -c <COMMAND>... Run an arbitrary command with the working dir, .env, overrides, and exports set. executes a command
--clean [<RECIPE_PATH>...] Clear the recipe cache (optionally by path prefix). mutates cache
--completions <SHELL> Print a completion script. [possible values: bash, elvish, fish, nushell, powershell, zsh] read-only
--changelog Print the changelog. read-only
--man Print the man page. read-only

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 147 lines · 0 tokens per session scan A 7a82eb4a9407

Subscribe to this mod's changes

cli-flags is a command published in the GitHub repository wyattjoh/skills (2 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,682 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.