just

just

轻量级跨平台项目命令管理工具

just是一款跨平台的项目命令管理工具,支持Linux、MacOS和Windows。它能够保存和运行项目特定命令,提供清晰的错误报告、命令行参数支持和.env文件加载等功能。just可从任意子目录调用,支持多语言编写配方,并提供shell补全。作为命令运行器,它避免了make的复杂性,为开发者提供简洁高效的项目管理解决方案。

just命令运行器项目管理开源工具跨平台Github开源项目
<div align=right>Table of Contents↗️</div> <h1 align=center><code>just</code></h1> <div align=center> <a href=https://crates.io/crates/just> <img src=https://img.shields.io/crates/v/just.svg alt="crates.io version"> </a> <a href=https://github.com/casey/just/actions> <img src=https://github.com/casey/just/actions/workflows/ci.yaml/badge.svg alt="build status"> </a> <a href=https://github.com/casey/just/releases> <img src=https://img.shields.io/github/downloads/casey/just/total.svg alt=downloads> </a> <a href=https://discord.gg/ezYScXR> <img src=https://img.shields.io/discord/695580069837406228?logo=discord alt="chat on discord"> </a> <a href=mailto:casey@rodarmor.com?subject=Thanks%20for%20Just!> <img src=https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg alt="say thanks"> </a> </div> <br>

just is a handy way to save and run project-specific commands.

This readme is also available as a book.

(中文文档在 这里, 快看过来!)

Commands, called recipes, are stored in a file called justfile with syntax inspired by make:

screenshot

You can then run them with just RECIPE:

$ just test-all cc *.c -o main ./test --all Yay, all your tests passed!

just has a ton of useful features, and many improvements over make:

If you need help with just please feel free to open an issue or ping me on Discord. Feature requests and bug reports are always welcome!

Installation

Prerequisites

just should run on any system with a reasonable sh, including Linux, MacOS, and the BSDs.

On Windows, just works with the sh provided by Git for Windows, GitHub Desktop, or Cygwin.

If you'd rather not install sh, you can use the shell setting to use the shell of your choice.

Like PowerShell:

# use PowerShell instead of sh: set shell := ["powershell.exe", "-c"] hello: Write-Host "Hello, world!"

…or cmd.exe:

# use cmd.exe instead of sh: set shell := ["cmd.exe", "/c"] list: dir

You can also set the shell using command-line arguments. For example, to use PowerShell, launch just with --shell powershell.exe --shell-arg -c.

(PowerShell is installed by default on Windows 7 SP1 and Windows Server 2008 R2 S1 and later, and cmd.exe is quite fiddly, so PowerShell is recommended for most Windows users.)

Packages

<table> <thead> <tr> <th>Operating System</th> <th>Package Manager</th> <th>Package</th> <th>Command</th> </tr> </thead> <tbody> <tr> <td><a href=https://alpinelinux.org>Alpine Linux</a></td> <td><a href=https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management>apk-tools</a></td> <td><a href=https://pkgs.alpinelinux.org/package/edge/community/x86_64/just>just</a></td> <td><code>apk add just</code></td> </tr> <tr> <td><a href=https://www.archlinux.org>Arch Linux</a></td> <td><a href=https://wiki.archlinux.org/title/Pacman>pacman</a></td> <td><a href=https://archlinux.org/packages/extra/x86_64/just/>just</a></td> <td><code>pacman -S just</code></td> </tr> <tr> <td> <a href=https://debian.org>Debian 13 (unreleased)</a> and <a href=https://ubuntu.com>Ubuntu 24.04</a> derivatives</td> <td><a href=https://en.wikipedia.org/wiki/APT_(software)>apt</a></td> <td><a href=https://packages.debian.org/trixie/just>just</a></td> <td><code>apt install just</code></td> </tr> <tr> <td><a href=https://debian.org>Debian</a> and <a href=https://ubuntu.com>Ubuntu</a> derivatives</td> <td><a href=https://mpr.makedeb.org>MPR</a></td> <td><a href=https://mpr.makedeb.org/packages/just>just</a></td> <td> <code>git clone https://mpr.makedeb.org/just</code><br> <code>cd just</code><br> <code>makedeb -si</code> </td> </tr> <tr> <td><a href=https://debian.org>Debian</a> and <a href=https://ubuntu.com>Ubuntu</a> derivatives</td> <td><a href=https://docs.makedeb.org/prebuilt-mpr>Prebuilt-MPR</a></td> <td><a href=https://mpr.makedeb.org/packages/just>just</a></td> <td> <sup><b>You must have the <a href=https://docs.makedeb.org/prebuilt-mpr/getting-started/#setting-up-the-repository>Prebuilt-MPR set up</a> on your system in order to run this command.</b></sup><br> <code>apt install just</code> </td> </tr> <tr> <td><a href=https://getfedora.org>Fedora Linux</a></td> <td><a href=https://dnf.readthedocs.io/en/latest/>DNF</a></td> <td><a href=https://src.fedoraproject.org/rpms/rust-just>just</a></td> <td><code>dnf install just</code></td> </tr> <tr> <td><a href=https://www.freebsd.org>FreeBSD</a></td> <td><a href=https://www.freebsd.org/doc/handbook/pkgng-intro.html>pkg</a></td> <td><a href=https://www.freshports.org/deskutils/just/>just</a></td> <td><code>pkg install just</code></td> </tr> <tr> <td><a href=https://www.gentoo.org>Gentoo Linux</a></td> <td><a href=https://wiki.gentoo.org/wiki/Portage>Portage</a></td> <td><a href=https://github.com/gentoo-mirror/guru/tree/master/dev-build/just>guru/dev-build/just</a></td> <td> <code>eselect repository enable guru</code><br> <code>emerge --sync guru</code><br> <code>emerge dev-build/just</code> </td> </tr> <tr> <td><a href=https://en.wikipedia.org/wiki/MacOS>macOS</a></td> <td><a href=https://www.macports.org>MacPorts</a></td> <td><a href=https://ports.macports.org/port/just/summary>just</a></td> <td><code>port install just</code></td> </tr> <tr> <td><a href=https://en.wikipedia.org/wiki/Microsoft_Windows>Microsoft Windows</a></td> <td><a href=https://chocolatey.org>Chocolatey</a></td> <td><a href=https://github.com/michidk/just-choco>just</a></td> <td><code>choco install just</code></td> </tr> <tr> <td><a href=https://en.wikipedia.org/wiki/Microsoft_Windows>Microsoft Windows</a></td> <td><a href=https://scoop.sh>Scoop</a></td> <td><a href=https://github.com/ScoopInstaller/Main/blob/master/bucket/just.json>just</a></td> <td><code>scoop install just</code></td> </tr> <tr> <td><a href=https://en.wikipedia.org/wiki/Microsoft_Windows>Microsoft Windows</a></td> <td><a href=https://learn.microsoft.com/en-us/windows/package-manager/>Windows Package Manager</a></td> <td><a href=https://github.com/microsoft/winget-pkgs/tree/master/manifests/c/Casey/Just>Casey/Just</a></td> <td><code>winget install --id Casey.Just --exact</code></td> </tr> <tr> <td><a href=https://nixos.org/nixos/>NixOS</a></td> <td><a href=https://nixos.org/nix/>Nix</a></td> <td><a href=https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/just/default.nix>just</a></td> <td><code>nix-env -iA nixos.just</code></td> </tr> <tr> <td><a href=https://opensuse.org>openSUSE</a></td> <td><a href=https://en.opensuse.org/Portal:Zypper>Zypper</a></td> <td><a href=https://build.opensuse.org/package/show/Base:System/just>just</a></td> <td><code>zypper in just</code></td> </tr> <tr> <td><a href=https://getsol.us>Solus</a></td> <td><a href=https://getsol.us/articles/package-management/basics/en>eopkg</a></td> <td><a href=https://dev.getsol.us/source/just/>just</a></td> <td><code>eopkg install just</code></td> </tr> <tr> <td><a href=https://github.com/casey/just/releases>Various</a></td> <td><a href=https://asdf-vm.com>asdf</a></td> <td><a href=https://github.com/olofvndrhr/asdf-just>just</a></td> <td> <code>asdf plugin add just</code><br> <code>asdf install just &lt;version&gt;</code> </td> </tr> <tr> <td><a href=https://forge.rust-lang.org/release/platform-support.html>Various</a></td> <td><a href=https://www.rust-lang.org>Cargo</a></td> <td><a href=https://crates.io/crates/just>just</a></td> <td><code>cargo install just</code></td> </tr> <tr> <td><a href=https://docs.conda.io/en/latest/miniconda.html#system-requirements>Various</a></td> <td><a href=https://docs.conda.io/projects/conda/en/latest/index.html>Conda</a></td> <td><a href=https://anaconda.org/conda-forge/just>just</a></td> <td><code>conda install -c conda-forge just</code></td> </tr> <tr> <td><a href=https://docs.brew.sh/Installation>Various</a></td> <td><a href=https://brew.sh>Homebrew</a></td> <td><a href=https://formulae.brew.sh/formula/just>just</a></td> <td><code>brew install just</code></td> </tr> <tr> <td><a href=https://nixos.org/download.html#download-nix>Various</a></td> <td><a href=https://nixos.org/nix/>Nix</a></td> <td><a href=https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/just/default.nix>just</a></td> <td><code>nix-env -iA nixpkgs.just</code></td> </tr> <tr> <td><a href=https://voidlinux.org>Void Linux</a></td> <td><a href=https://wiki.voidlinux.org/XBPS>XBPS</a></td> <td><a href=https://github.com/void-linux/void-packages/blob/master/srcpkgs/just/template>just</a></td> <td><code>xbps-install -S just</code></td> </tr> </tbody> </table>

just package version table

rust:just package version table

Pre-Built Binaries

Pre-built binaries for Linux, MacOS, and Windows can be found on the releases page.

You can use the following command on Linux, MacOS, or Windows to download the latest release, just replace DEST with the directory where you'd like to put just:

curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to DEST

For example, to install just to ~/bin:

# create ~/bin mkdir -p ~/bin # download and extract just to ~/bin/just curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin # add `~/bin` to the paths that your shell searches for executables # this line should be added to your shells initialization file, # e.g. `~/.bashrc` or `~/.zshrc` export PATH="$PATH:$HOME/bin" # just should now be executable just --help

Note that install.sh may fail on GitHub Actions, or in other environments where many machines share IP addresses. install.sh calls GitHub APIs in order to determine the latest version of just to install, and those API calls are rate-limited on a per-IP basis. To make install.sh more reliable in such circumstances, pass a specific tag to install with --tag.

GitHub Actions

just can be installed on GitHub Actions in a few ways.

Using package managers pre-installed on GitHub Actions runners on MacOS with brew install just, and on Windows with choco install just.

With extractions/setup-just:

- uses: extractions/setup-just@v1 with: just-version: 1.5.0 # optional semver specification, otherwise latest

Or with taiki-e/install-action:

- uses: taiki-e/install-action@just

Release RSS Feed

An RSS feed of just releases is available here.

Node.js Installation

just-install can be used to automate installation of just in Node.js applications.

just is a great, more robust alternative to npm scripts. If you want to include just in the dependencies of a Node.js application, just-install will install a local,

编辑推荐精选

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具使用教程AI营销产品酷表ChatExcelAI智能客服
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

热门AI工具生产力协作转型TraeAI IDE
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

数据安全AI助手热门AI工具AI辅助写作AI论文工具论文写作智能生成大纲
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

热门AI工具AI办公办公工具智能排版AI生成PPT博思AIPPT海量精品模板AI创作
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

下拉加载更多