53 个开发者工具,始终保持最新 — 上游每次发布后数小时内即可通过 apt 获取。 加入 Discord

📅 自 起,使用本 apt 镜像将需要订阅。 查看价格 · 🆓 有一个永久免费的镜像

🤖 安装最新的 just 在 Ubuntu 上

A 便捷的命令运行器,用于你的项目专属命令

最新版本:1.58.0 · 更新于 2026-08-03
来源版本
deb.griffo.io1.58.0 ✅
官方 Ubuntu1.45.0 🛑
← 返回首页

什么是 just?

just is a handy command runner written in Rust by Casey Rodarmor. It saves and runs project-specific commands, called recipes, stored in a file named justfile with a syntax inspired by make. Unlike make, just is not a build system: recipes are simply commands to run, so there are no phony targets and no dependency on file modification times. With over 25k GitHub stars, it has become the go-to task runner for modern projects.

😤 Traditional make Pain Points: Tired of .PHONY declarations everywhere? Fed up with tab-versus-space errors and implicit build rules that fire when you least expect them? just keeps the familiar recipe feel of a Makefile but drops the build-system baggage — every recipe is just a command.
🚀 Why Latest Versions Matter: just is actively developed with frequent releases containing new attributes, expression functions, shell integrations, and quality-of-life improvements. The latest versions include enhanced completion scripts, new built-in functions, better error messages, and expanded cross-platform support.

⚡ Key Features of just

📝 Make-Inspired Syntax

Write recipes in a familiar, readable justfile. If you know Makefiles, you already know most of just — minus the quirks.

🧩 Recipe Parameters

Recipes accept arguments and have default values, so a single recipe can adapt to many invocations without extra scripting.

🐚 Any Shell or Language

Write recipes in sh, bash, Python, Node, or anything else with a shebang line. just runs each recipe with the interpreter you choose.

📋 List & Discover

Run just --list to see every recipe with its documentation comment. Newcomers can explore a project's tasks instantly.

🔐 .env & Variables

Load environment files, define variables, and interpolate them into recipes. Keep configuration tidy and out of your commands.

🌍 Cross-Platform

A single static binary that works the same on Linux, macOS, and Windows — no runtime, no interpreter, no quirks.

🏆 Productivity Benefits

  • Save Time: Run any project task with just <recipe> instead of remembering long commands
  • Self-Documenting: just --list shows every task and its description
  • Consistent: The whole team runs the same commands the same way
  • No Build Quirks: Recipes are commands, not targets — no stale-timestamp surprises
  • Portable: One justfile works across Linux, macOS, and Windows
🚀 始终领先于官方软件源:Debian 和 Ubuntu 在发布时会冻结软件包版本——本仓库通常在上游发布后数小时内即发布新版本。只需 apt upgrade 即可始终保持最新版本。

📦 从 deb.griffo.io 安装

运行命令

步骤 1:添加仓库

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt update
install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

🆓 有一个永久免费的镜像。 deb-free.griffo.io 永久免费提供软件包 — 无需账号、无需订阅,最多落后上游 2 个月,安全修复立即发布。目前收录 cliamp、Ghostty、lazydocker、Oh My Posh 和 Zed;just 不在其中,因此今天只能通过上面的仓库安装 — 提出请求即可将其加入。

免费镜像的工作方式 →

步骤 2:安装 just

# Install latest just
sudo apt install just

# Verify installation
just --version
# Install latest just
apt install just

# Verify installation
just --version

Step 3: Create Your First justfile

# Create a justfile in your project
cat > justfile <<'EOF'
# Build the project
build:
    cargo build --release

# Run the tests
test:
    cargo test

# Say hello to someone
hello name='world':
    echo "Hello, {{name}}!"
EOF

# List available recipes
just --list

# Run a recipe
just build
just hello just

🎯 基本使用示例

Running recipes:

# Run the first recipe in the justfile (the default)
just

# Run a specific recipe
just test

# Pass an argument to a recipe
just hello Dario

# List every recipe with its documentation
just --list

Working with justfiles:

# Show the resolved value of a variable
just --evaluate

# Print a recipe without running it
just --show build

# Use a justfile in another directory
just --justfile ~/project/justfile --working-directory ~/project build

# Choose a recipe interactively (needs a chooser like fzf)
just --choose

Shell completions:

# Completions for bash, fish and zsh are installed with the package.
# Generate them manually for any shell if you need to:
just --completions bash
just --completions zsh
just --completions fish

🚀 为什么选择 deb.griffo.io?

📊 Repository Comparison:
  • Official Ubuntu: Available but often outdated versions
  • Cargo Install: Requires Rust toolchain and compilation
  • Install Script: Manual updates and no package management
  • deb.griffo.io: Latest version with automatic updates

📦 软件包构建仓库

Ubuntu 软件包在此 GitHub 仓库中自动构建和维护:

🔗 相关软件包

也可从 deb.griffo.io 获取:

🎯 Perfect for: Developers who juggle many project commands, teams that want a single consistent task runner, anyone who likes Makefiles but not make's quirks, and power users who value a fast, portable, self-documenting workflow.

📦 本仓库最近发布

❓ 常见问题

just 在官方 Ubuntu 软件源中吗?

在,但官方 Ubuntu 源只提供 just 1.45.0,而本仓库提供 just 1.58.0,每次上游发布后数小时内重新构建。

如何在 Ubuntu 上安装最新版 just?

按上方说明一次性添加 deb.griffo.io 仓库,然后运行:sudo apt install just。之后通过常规的 sudo apt upgrade 获取新版本。

软件包是否有签名?如何构建?

每个软件包都使用仓库的 GPG 密钥(EA0F721D231FDD3A0A17B9AC7808B4DD62C41256)签名,并基于上游发布在公开的 GitHub 仓库中构建,任何人都可以审查。

支持哪些 Ubuntu 版本?

Ubuntu 22.04 Jammy、24.04 Noble、25.10 Questing 和 26.04 Resolute。