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,

编辑推荐精选

扣子-AI办公

扣子-AI办公

职场AI,就用扣子

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

堆友

堆友

多风格AI绘画神器

堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。

图像生成AI工具AI反应堆AI工具箱AI绘画GOAI艺术字堆友相机AI图像热门
码上飞

码上飞

零代码AI应用开发平台

零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。

Vora

Vora

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

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

Refly.AI

Refly.AI

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

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

酷表ChatExcel

酷表ChatExcel

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

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

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
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工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

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

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

下拉加载更多