# 使用 Homebrew 安装 fn

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

## 安装

```sh
sudo av install brew:fn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fn
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:fn
- **软件包管理器:** Homebrew
- **版本:** 0.6.63
- **来源摘要:** Command-line tool for the fn project
- **主页:** <https://fnproject.io>
- **仓库:** <https://github.com/fnproject/cli>
- **最后更新:** 2026-08-03T15:14:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fn (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

fn is the command-line client for the Fn Project, an open-source, event-driven Functions-as-a-Service platform. The CLI is used to start local servers, create applications, initialize functions, deploy them, invoke them, manage contexts, and work with Oracle Cloud Infrastructure Functions settings.

### 项目历史

The Fn CLI repository was created in 2017. Its README links the CLI to the wider Fn Project and directs users to the Fn server quickstart, detailed installation instructions, CLI command reference, tutorials, and docs.

The Fn server README describes Fn as a Docker-native FaaS platform written in Go that can run in public, private, and hybrid cloud environments, supports any language through containers, and can import Lambda functions. Later CLI documentation includes OCI Functions features such as provisioned concurrency, detached invocations, subnet-aware app creation, tags, and pre-built functions.

### 采用历史

The official quickstart centers the CLI as the easiest way to experience Fn: install it with Homebrew or the shell installer, run `fn start`, initialize a function, create an app, deploy, and invoke. The project also maintains documentation, tutorials, Slack/community links, Stack Overflow guidance, and subprojects for Flow, UI, and load balancing.

### 使用方式

A typical local workflow is `fn start`, `fn init --runtime go hello`, `fn create app myapp`, `fn deploy --app myapp --local`, and `fn invoke myapp hello`. The CLI docs list command groups for build, config, create, deploy, inspect, invoke, list, start, stop, update, and context management.

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

fn is significant as a cloud-native CLI that packages local container orchestration, serverless deployment, and provider-specific behavior into one executable. It reflects the late-2010s wave of FaaS tooling where a local developer command had to bridge Docker, remote registries, open-source servers, and managed cloud functions.

### 时间线

- 2017: The Fn CLI repository was created.
- 2018: The Fn Project README advertised regular community planning meetings as upcoming in Q1 2019.
- 2025: The CLI README documented OCI Functions features such as provisioned concurrency, detached mode, tags, and pre-built functions.
- 2026: The CLI repository remained active according to official repository metadata.

### Related projects

- Related official projects include fnproject/fn, fnproject/docs, fnproject/flow, fnproject/ui, fnproject/lb, Oracle Cloud Infrastructure Functions, Docker, and Podman.

### 来源

- <https://api.github.com/repos/fnproject/cli>
- <https://github.com/fnproject/cli>
- <https://github.com/fnproject/fn>
- <https://raw.githubusercontent.com/fnproject/cli/master/README.md>
- <https://raw.githubusercontent.com/fnproject/docs/master/cli/README.md>
- <https://raw.githubusercontent.com/fnproject/fn/master/README.md>


## 安全说明

没有找到 fn 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.fn/config.yaml, ~/.fn/contexts/*.yaml, ./func.yaml

## Combined YAML source

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


## 来源

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