# 使用 Homebrew, MacPorts, Nix, scoop, apt 安装 symfony-cli

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

## 安装

```sh
sudo av install brew:symfony-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install symfony-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install symfony-cli
```

  证据: MacPorts ports tree: devel/symfony-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#symfony-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/sy/symfony-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install php-symfony
```

  证据: Debian stable package indexes: php-symfony from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- Scoop (92%):

```sh
scoop install main/symfony-cli
```

  证据: Scoop official bucket manifest trees: bucket/symfony-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:symfony-cli
- **软件包管理器:** Homebrew
- **版本:** 5.18.2
- **来源摘要:** Build, run, and manage Symfony applications
- **主页:** <https://symfony.com/download>
- **仓库:** <https://github.com/symfony-cli/symfony-cli>
- **最后更新:** 2026-07-26T04:03:48+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- symfony (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.18.2
## 项目历史与用法

Symfony CLI is the official terminal tool around the Symfony PHP framework, combining project creation, a local development web server, PHP version selection, Docker integration, and Symfony Cloud workflows.

### 项目历史

Symfony's official documentation presents the CLI as a free and open source developer tool for building, running, and managing Symfony applications from the terminal. The Symfony blog describes the new Symfony binary as announced during SymfonyCon Lisbon 2018, with the local web server improving rapidly afterward.

Symfony 4.4 deprecated WebServerBundle in favor of the Symfony local web server, making the CLI-backed server the recommended local development path rather than a framework bundle wrapper around PHP's built-in server.

### 采用历史

The CLI became a standard part of Symfony development because it is tied to everyday commands: creating applications, running local HTTPS servers, installing local certificate authorities, attaching local domains, detecting Docker services, and running Composer through Symfony-aware wrappers. Official Symfony weekly posts repeatedly call it a must-have local development tool.

The input package metadata shows the CLI in Homebrew, MacPorts, Nix, Scoop, Debian, and Ubuntu package ecosystems, reflecting its role as a cross-platform executable rather than only a PHP Composer dependency.

### 使用方式

Common usage starts with `symfony new`, then `symfony server:start`, `symfony open:local`, `symfony php`, `symfony composer`, local proxy/domain commands, Docker service environment export, and Symfony Cloud commands. The docs also note autocompletion support for Bash, Zsh, and Fish.

### 为什么软件包爱好者会关心

Symfony CLI is package-manager interesting because it packages a framework-adjacent workflow as a standalone binary. For PHP developers, it bridges Composer, local PHP installations, Docker Compose services, TLS certificates, and cloud deployment commands in one executable that can be installed by Homebrew or other system package managers.

### 时间线

- 2018: The Symfony binary was announced during SymfonyCon Lisbon 2018.
- 2019: Symfony local web server releases began appearing on GitHub, and Symfony 4.4 deprecated WebServerBundle in favor of the local web server.
- 2020: Symfony CLI added Composer 2-aware behavior through `symfony composer`.
- 2026: Current Symfony docs describe Symfony CLI as the terminal tool for project creation, local server, PHP management, Docker integration, and Symfony Cloud integration.

### Related projects

- Symfony CLI sits beside the Symfony framework, Composer, PHP-FPM, Docker Compose, Symfony Cloud, and the deprecated WebServerBundle. Its local web server replaced the older bundle-centered workflow for many developers.

### 来源

- <https://symfony.com/blog/composer-2-support-in-symfony-cli-and-symfonycloud>
- <https://symfony.com/blog/local-web-server-reloaded-for-symfony-apps>
- <https://symfony.com/blog/new-in-symfony-4-4-misc-improvements-part-3>
- <https://symfony.com/doc/current/setup/symfony_cli.html>
- input source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: php.ini
## 其他软件包管理器记录

- Nix - symfony-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/sy/symfony-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - symfony-cli: normalized package name match | MacPorts ports tree: devel/symfony-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/symfony-cli: normalized package name match | Scoop official bucket manifest trees: bucket/symfony-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Debian apt - php-symfony - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | set of reusable components and framework for web projects | https://symfony.com/
- Debian apt - php-symfony-all-my-sms-notifier - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-all-my-sms-notifier from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony AllMySms Notifier Bridge | https://symfony.com/doc/6.4/notifier.html
- Debian apt - php-symfony-amazon-mailer - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-amazon-mailer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Amazon Mailer Bridge | https://symfony.com/doc/6.4/components/mailer.html
- Debian apt - php-symfony-amazon-sns-notifier - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-amazon-sns-notifier from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Amazon SNS Notifier Bridge | https://symfony.com/doc/6.4/notifier.html
- Debian apt - php-symfony-amazon-sqs-messenger - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-amazon-sqs-messenger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Amazon SQS extension Messenger Bridge | https://symfony.com/doc/6.4/components/messenger.html
- Debian apt - php-symfony-amqp-messenger - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-amqp-messenger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony AMQP extension Messenger Bridge | https://symfony.com/doc/6.4/components/messenger.html
- Debian apt - php-symfony-asset - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-asset from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | manage asset URLs | https://symfony.com/doc/6.4/components/asset.html
- Debian apt - php-symfony-asset-mapper - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-asset-mapper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | maps directories of asset and makes them available in a public directory | https://symfony.com/
- Debian apt - php-symfony-bandwidth-notifier - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-bandwidth-notifier from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Bandwidth Notifier Bridge | https://symfony.com/doc/6.4/notifier.html
- Debian apt - php-symfony-beanstalkd-messenger - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-beanstalkd-messenger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Beanstalkd Messenger Bridge | https://symfony.com/doc/6.4/components/messenger.html
- Debian apt - php-symfony-brevo-mailer - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-brevo-mailer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Brevo Mailer Bridge | https://symfony.com/doc/6.4/components/mailer.html
- Debian apt - php-symfony-brevo-notifier - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-brevo-notifier from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Symfony Brevo Notifier Bridge | https://symfony.com/doc/6.4/notifier.html
- Debian apt - php-symfony-browser-kit - 6.4.41+dfsg-0+deb13u1: installed executable or alias match | Debian stable package indexes: php-symfony-browser-kit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simulate the behavior of a web browser | https://symfony.com/doc/6.4/components/browser_kit.html


## Combined YAML source

View the package source record on GitHub. [combined/symfony-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/symfony-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
