Automic VaultAutomic Vault

brew / 排名 1174

安装 d2

查看 d2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

使用 Automic Vault 安装

Automic Vault
下载 AV
sudo av install brew:d2

macOS

Homebrewverified · 100%
brew install d2

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install d2

MacPorts ports tree · graphics/d2/Portfile · source: api.github.com

Linux

Fedora dnfverified · 92%
sudo dnf install d2

Fedora Rawhide package metadata · d2 · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#d2

nixpkgs package indexes · pkgs/by-name/d2/d2/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S d2

Arch Linux sync databases · d2 · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install d2

openSUSE Tumbleweed package metadata · d2 · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/d2

Scoop official bucket manifest trees · bucket/d2.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id Terrastruct.D2 -e

Windows Package Manager source index · Terrastruct.D2 · source: cdn.winget.microsoft.com

平台说明

  • 没有特定于此软件包的平台说明。

概览

软件包摘要

Modern diagram scripting language that turns text to diagrams

命令和别名

  • d2

安全态势

风险级别:yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:scripting language

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
d2cliglobal executable

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-06-10
管理器版本0.7.1
管理器更新时间
本地数据ok
上游current
检测到的最新版本v0.7.1

https://github.com/terrastruct/d2

  • infoNo package-manager update timestamp was available.low confidence

安装元数据

软件包元数据

Package keybrew:d2
Version0.7.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/d2
Homepagehttps://d2lang.com/
Repositoryhttps://github.com/terrastruct/d2
Upstream docshttps://d2lang.com/
LicenseMPL-2.0
Source archivehttps://github.com/terrastruct/d2/archive/refs/tags/v0.7.1.tar.gz
Build dependenciesgo
Bottleavailable (arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Named2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

d2

nix profile install nixpkgs#d2
  • normalized package name match
  • Matched by: D2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/d2/d2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

d2 0.6.9-8.fc44

Modern diagram scripting language that turns text to diagrams

https://github.com/terrastruct/d2

sudo dnf install d2
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND FTL AND ISC AND MIT AND MPL-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: d2
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: D2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: d2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst
pacman95%

d2 0.7.1-2

A modern diagram scripting language that turns text to diagrams

https://d2lang.com

sudo pacman -S d2
  • License: MPL-2.0
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: D2
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: d2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

d2 0.7.1-1.4

CLI tool and modern declarative language that turns text to diagrams

https://github.com/terrastruct/d2

sudo zypper install d2
  • License: Apache-2.0 AND MIT AND MPL-2.0 AND EPL-2.0 AND GPL-2.0-or-later AND BSD-3-Clause
  • Category: Productivity/Text/Utilities
  • Architecture: x86_64
  • Source Package: d2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: D2
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: d2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst
MacPorts95%

d2

sudo port install d2
  • normalized package name match
  • Matched by: D2
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/d2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/d2

scoop install main/d2
  • normalized package name match
  • Matched by: D2
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/d2.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Terrastruct.D2

winget install --id Terrastruct.D2 -e
  • normalized package name match
  • Matched by: D2
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Terrastruct.D2 from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment