codebaby · 下载codebaby · Download

下载 codebabyDownload codebaby

macOS 安装包发布在 GitHub Releases。文件名以该版本的附件为准,历史版本沿用发布时的命名。macOS packages are available on GitHub Releases. Use the file names shown in the release assets. Earlier versions retain their original names.

选择你的安装包Choose your package

macOS 桌面端macOS desktop app

已签名并通过 Apple 公证,macOS 12 以上。打开后把 codebaby 拖进“应用程序”。Signed and notarized by Apple. macOS 12 or later. Open it and drag codebaby into Applications.

codebaby-<版本号>.dmgcodebaby-<version>.dmg

命令行 · macOS(Apple 芯片)CLI · macOS (Apple silicon)

M 系列芯片的 Mac。Macs with M-series chips.

codebaby-aarch64-apple-darwin.tar.gz

命令行 · macOS(Intel)CLI · macOS (Intel)

Intel 芯片的 Mac。Intel-based Macs.

codebaby-x86_64-apple-darwin.tar.gz

命令行 · LinuxCLI · Linux

从源码构建,需要 Rust 和 cmake。Build from source with Rust and cmake.

cargo install --locked --path crates/codebaby-cli

前往 Releases 下载Download from Releases

每个安装包旁边有同名的 Each package has a matching .sha256 文件,可以用来校验下载是否完整。桌面端是 macOS 版,命令行覆盖 macOS 和 Linux。 file for checking the download. The desktop app is for macOS; the CLI covers macOS and Linux.

安装Install

桌面端Desktop app

打开 DMG,把 codebaby 拖进“应用程序”。桌面端自带命令行:在菜单里选“安装命令行工具”,终端里就能直接用 Open the DMG and drag codebaby into Applications. The app bundles the CLI: choose “Install command-line tool” from the menu and codebaby 命令。 works in your terminal.

命令行Command line

在 Releases 下载适合你电脑的压缩包,再进入下载目录。以下命令以 Apple 芯片 Mac 的 codebaby 安装包为例。Download the archive that matches your computer from Releases, then open its folder. The commands below use the codebaby package for Apple silicon as an example.

tar -xzf codebaby-aarch64-apple-darwin.tar.gz
sudo mv codebaby /usr/local/bin/
codebaby --version

校验下载Verify the download

从同一个 Release 下载与安装包同名的校验文件,放在同一目录。Download the matching checksum from the same release and save it alongside the package.

shasum -a 256 -c codebaby-aarch64-apple-darwin.tar.gz.sha256

升级Upgrade

命令行运行 Run codebaby upgrade,会下载最新版本、校验后替换自己;加 to download the latest version, verify it and replace itself; add --check 只检查不安装。桌面端启动时会检查,有新版本时状态栏会提示。 to only check. The desktop app checks at launch and shows a notice in the status bar when a new version is out.

从更名前的版本迁移Moving to codebaby

首次请手动安装 codebaby,并将脚本中的命令改为 codebaby。已有项目请将根配置文件改为 codebaby.json,运行历史迁移到 .codebaby/。若运行 Mac 桌面用例,请为新的 App 重新授权。Install codebaby manually the first time and update your scripts to call codebaby. Rename the project configuration to codebaby.json and migrate run history to .codebaby/. Grant macOS permissions to the new app if you run desktop cases.

运行环境Requirements

从源码构建Build from source

需要 Rust(rustup)和 cmake,源码在 Needs Rust (rustup) and cmake. The source is on GitHub。.

装好之后After installing

几条命令就能跑出第一份结果:A few commands get you a first result:

codebaby init myapi && cd myapi
codebaby vars set baseUrl http://localhost:8080 -e dev
codebaby run
codebaby open

遇到问题见If something goes wrong, see the 支持页support page。.