Automic VaultAutomic Vault

brew

mas を Homebrew, MacPorts, Nix でインストール

mas のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install mas

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install mas

MacPorts ports tree · sysutils/mas/Portfile · ソース: api.github.com

Linux

Nix確認済み · 92%
nix profile install nixpkgs#mas

nixpkgs package indexes · pkgs/by-name/ma/mas/package.nix · ソース: api.github.com

概要

パッケージ概要

Mac App Store command-line interface

コマンドとエイリアス

  • mas

履歴

プロジェクトの歴史と使われ方

mas is a macOS command-line interface for the Mac App Store, designed for scripting and automation. It gives package-manager users a way to search, list, install, update, and inspect App Store apps from shell scripts and Brewfiles.

プロジェクトの歴史

The mas repository was created in August 2015, and v1.0.0 was released in September 2015 as the initial public release. Early releases quickly added app upgrade and App Store sign-in/sign-out commands, establishing the project's role as a bridge between command-line workflows and Apple's GUI-oriented app distribution system.

The project matured into a Swift-based macOS utility with a man page, `mas --help`, GitHub wiki documentation, and a command table in the README. Recent releases continue to track App Store behavior and macOS compatibility changes; the v6 series improved minimum-OS handling for outdated checks, and GitHub listed v7.0.0 as the latest release in May 2026 with optional JSON output and tabular output improvements.

採用の歴史

mas became especially prominent in the Homebrew ecosystem because Homebrew Bundle can include Mac App Store applications in a Brewfile. The official README lists Homebrew Core, the mas tap, MacPorts, and GitHub Releases as installation routes, while the supplied package metadata also records Nix packaging.

With more than twelve thousand GitHub stars, mas is one of the better-known macOS-specific CLI tools. Its adoption reflects a common need among dotfile, laptop-bootstrap, and managed-Mac users: keeping App Store software in the same declarative or scripted workflow as Homebrew packages.

使われ方

Common commands include `search`, `lookup`, `list`, `outdated`, `get`, `install`, `lucky`, `update`, `uninstall`, `open`, and `home`. The README notes that detailed command documentation is available through `man mas` and `mas --help`.

The CLI depends on macOS and App Store behavior rather than a portable service API. Its README documents practical constraints such as App Store eventual consistency, Spotlight indexing requirements, free-app installation behavior, and the need to purchase paid apps directly in the App Store.

パッケージ好きにとっての重要性

mas is package-nerd glue: it does not replace Homebrew, but it fills the Mac App Store gap that Homebrew intentionally leaves alone. In Brewfiles, it lets a machine rebuild include both Unix packages and GUI App Store apps.

It is also a useful reminder that package management on macOS is plural. Homebrew, MacPorts, Apple's App Store, and system update mechanisms all own different slices, and mas gives one of those slices a scriptable face.

タイムライン

  • 2015: GitHub repository created.
  • 2015: v1.0.0 initial release.
  • 2016: v1.1.0 adds sign-in and sign-out commands.
  • 2026: v7.0.0 released with optional JSON output and improved tabular spacing.

Related projects

  • mas is commonly paired with Homebrew Bundle for Brewfile-based Mac provisioning.
  • It is related to macOS automation tools and update orchestrators such as Topgrade, both of which can call into system package managers.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 4 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
mascliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版7.0.0
マネージャ更新日2026-06-09
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/mas-cli/mas

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:mas
バージョン7.0.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/mas
ホームページhttps://github.com/mas-cli/mas
リポジトリhttps://github.com/mas-cli/mas
上流ドキュメントhttps://github.com/mas-cli/mas#readme
ライセンスMIT
ソースアーカイブhttps://github.com/mas-cli/mas.git
最終更新2026-06-09T11:09:24+02:00
Pulseupdated
macOS 提供ライブラリjq
Bottle利用可能 (対象 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

mas

nix profile install nixpkgs#mas
  • normalized package name match
  • 一致条件: Mas
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ma/mas/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

mas

sudo port install mas
  • normalized package name match
  • 一致条件: Mas
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/mas/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

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