Builderoom
Install

Command-line tool for Fn Project, supporting function initialization, deployment, invocation, and OCI Functions configuration management.

Apache-2.0
安装命令(说明)bash
```sh
# MacOS
brew update && brew install fn

# Linux/Unix/MacOS
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
```
最小用法bash
```sh
# 初始化一个 Go 函数
fn init --runtime go hello

# 创建带有预置并发的函数
fn create function <app-name> <function-name> <image> --provisioned-concurrency constant:40

# 监控本地目录并自动部署
fn watch --app <app>
```

Product facts

Type
CLI / Terminal
Category
Development & Engineering › Cloud Infrastructure
Pricing
Open source
License
Apache-2.0
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

Fn CLI is the official command-line tool for Fn Project, written in Go and open-sourced under the Apache-2.0 license. It provides developers with a complete set of commands to manage the Serverless function lifecycle, including initialization, creation, updating, deployment, and invocation.

Beyond basic function operations, Fn CLI deeply integrates Oracle Cloud Infrastructure (OCI) Functions configuration capabilities. Developers can use command-line arguments or the func.yaml file to set properties such as Provisioned Concurrency, Detached Mode for long-running functions, and application network subnets. It also supports adding, updating, or removing freeform tags and defined tags for applications and functions.

The tool supports Pre-Built Function (PBF), allowing users to list and search PBFs, and directly create and deploy functions based on a PBF listing OCID, automatically skipping the image build and push process. Additionally, the fn watch command monitors local directory changes and automatically redeploys functions to the local Fn server when files are modified. By default, it ignores directories like .git and node_modules, and supports custom ignore rules via a .fnignore file.

Ideal for engineers using Fn Project or OCI Functions for Serverless development in their daily workflows.

Key features

  • Function lifecycle management: Initialize, create, update, and deploy functions using commands like fn init, create, update, and deploy.
  • OCI provisioned concurrency configuration: Use the --provisioned-concurrency flag to set provisioned concurrency policies for OCI Functions.
  • Detached function support: Configure long-running detached functions and their callback targets using flags like --detached-timeout and --on-success.
  • Application subnet configuration: Specify a subnet OCID via --subnet-id when creating an OCI Functions application.
  • Resource tag management: Add tags via --tag and --defined-tag, with commands available to remove and clear tags.
  • Pre-Built Function support: List and search PBFs, and create and deploy functions directly using a PBF listing OCID, skipping the image build process.
  • Detached invocation: Use fn invoke detached to call functions in detached mode, supporting dry run and intent header.
  • Local auto-deploy monitoring: The fn watch command monitors directory changes and automatically triggers redeployment to the local Fn server upon file modifications.
  • Custom ignore rules: Add extra path ignore rules for fn watch via a .fnignore file or the --ignore flag.

Releases

Notify me

Initial · Fn CLI

Q&A

How do I install Fn CLI?AI-generated
On MacOS, you can use Homebrew: `brew update && brew install fn`. On Linux, Unix, or MacOS, you can also install via a curl script: `curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh`.
How do I persist OCI Functions configurations?AI-generated
You can pass relevant OCI flags (such as `--provisioned-concurrency`) during `fn init`. These settings will be scaffolded and persisted in the `func.yaml` file, and can later be applied via `fn deploy`.
What are the limitations when creating a function using a PBF?AI-generated
The `--image` and `--pbf` flags are mutually exclusive. When using `--pbf`, the image positional argument is optional. If `--memory` is specified manually, its value must be greater than or equal to the minimum memory requirement of the current PBF version.
Which directories does fn watch ignore by default?AI-generated
By default, it ignores `.git`, `.fn`, `node_modules`, `target`, `dist`, `vendor`, and paths matching `Dockerfile-fn-tmp*`.
What happens if I use OCI-specific flags in a non-Oracle environment?AI-generated
When OCI-specific flags are used with a non-Oracle provider or a local Fn server workflow, Fn CLI accepts them but outputs user-friendly warnings where the settings are not applicable.
Install
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.