---
格式版本: 2
标题: "Fn CLI for OCI Functions: More Capabilities, Simpler Workflows | cloud-infrastructure"
原文链接: "https://blogs.oracle.com/cloud-infrastructure/fn-cli-enhancements-for-oci-functions"
发布日期: "2026-08-31"
发布时间校准状态: "found"
发布时间需复核: "否"
发布时间来源: "rule:configured_publication_date_rule"
发布时间证据: "doc-fixed-49fb23095330-publication-date html:original: August 31, 2026"
发布时间校准原因: "信源发布日期识别规则直接确认发布时间"
发布时间校准置信度: "high"
发布时间候选数量: 1
发布时间严格候选数量: 1
发布时间原页读取状态: "source template page reused from URL open"
发布时间未找到原因: ""
发布时间校准时间: "2026-09-01T06:09:05+08:00"
发布时间仲裁状态: "skipped"
发布时间仲裁尝试次数: 0
发布时间仲裁耗时毫秒: 0
发现时间: "2026-09-01T06:06:23+08:00"
入库时间: "2026-08-31T22:09:05.376Z"
来源平台: "固定入口"
搜索渠道: "fixed_url"
搜索词: "https://blogs.oracle.com/?page=news"
匹配关键词:
  - "deployment"
相关厂家:
  - "Oracle"
相关专家:
  []
内容类型: "网页"
抓取工具: "CDP Render"
清洗工具: "CDP Text + Defuddle/Readability 正文提取"
原始附件:
  []
AI摘要: "Oracle更新Fn CLI，为OCI Functions扩展生产级能力：开发者可直接在CLI中配置预置并发、长时运行函数的分离执行、发现部署Pre-Built Functions，并通过新增子网、标签选项和JSON参数简化配置。"
AI摘要模型: "ali-deepseek-v4-flash"
AI摘要时间: "2026-08-31T23:36:47.803Z"
AI优质: "否"
AI打分: 29
AI分档: "非优质"
AI质检状态: "不通过"
AI打分理由: "正文主线是Oracle官方发布的OCI Functions Fn CLI功能增强，新增预置并发、分离执行、标签、子网及JSON驱动CI/CD等命令能力；固定知识库未见同一更新，但新增事实仅属Serverless开发与运维工具，不涉及超节点、AI机架、关键互连、供电、液冷或机架级部署。页面完整且官方可追溯，但无客户、量产或规模部署信号，命中“教程与运维工具且无机架级发布或生产基准”硬否决项。"
AI质检模型: "gpt-5.6-sol"
AI质检时间: "2026-09-01T07:40:47+08:00"
AI主题相关性: 0
AI来源权威性: 14
AI新颖性: 5
AI技术细节: 1
AI商业部署信号: 0
AI完整性: 9
AI评分提示词版本: "v17-精简生产版"
AI评分提示词SHA256: "48fb9777f386026761b4873eaff30807694fb11e9b352d7c69bf2dfde750cc7d"
AI评分知识库版本: "knowledge_base_v1-20260819+runtime.64"
AI评分知识库SHA256: "f85be4ccf57a543c0931ea48b0768c09f650874d1b003b90c1debd9e5222feb3"
AI评分知识库检索词: "[\"Oracle\",\"https://blogs.oracle.com/?page=news\",\"NPU\",\"CLI\",\"OCI\",\"CI/CD\",\"ID\",\"OCI-specific\",\"JSON\",\"OCI-style\",\"JSON-driven\"]"
AI评分知识库命中: "[{\"id\":\"runtime-dccd09f98e2ca028070793f0\",\"title\":\"OCI Achieves NVIDIA Exemplar Cloud Validation for NVIDIA GB300 NVL72 and HGX B300 | cloud-infrastructure\",\"sourceType\":\"ai_excellent_article\",\"time\":\"2026-08-22\",\"matchedTerms\":[\"Oracle\",\"OCI\",\"ID\"],\"rank\":-12.142165919258392},{\"id\":\"runtime-bf4039a0342d37545e9459a2\",\"title\":\"Most Neoclouds Suck At Security\",\"sourceType\":\"ai_excellent_article\",\"time\":\"2026-08-30\",\"matchedTerms\":[\"Oracle\",\"CLI\",\"OCI\",\"ID\"],\"rank\":-8.601455086510327},{\"id\":\"historical-may-011\",\"title\":\"不只卖GPU！英伟达向OpenAI、Anthropic、SpaceX与甲骨文交付首批Vera CPU\",\"sourceType\":\"curated_item\",\"time\":\"2026-05\",\"matchedTerms\":[\"OCI\"],\"rank\":-6.825419074723231},{\"id\":\"july-correct-0001\",\"title\":\"全球首颗2nm GPU来了！苏姿丰甩出“最强AI机架”，CPU性能干翻英伟达 - 智东西\",\"sourceType\":\"labeled_article\",\"time\":\"2026-07\",\"matchedTerms\":[\"Oracle\",\"NPU\",\"ID\"],\"rank\":-6.566061972148512},{\"id\":\"july-correct-0088\",\"title\":\"StrataCL: Fabric-Native Communication Library for Production Supernodes - 智源社区论文\",\"sourceType\":\"labeled_article\",\"time\":\"2026-07\",\"matchedTerms\":[\"NPU\",\"ID\"],\"rank\":-6.282749646091512}]"
采集批次: "2026年9月1日6点04分57秒"
采集批次ID: "20260901-060457-414"
去重键: "https://blogs.oracle.com/cloud-infrastructure/fn-cli-enhancements-for-oci-functions"
---

We’re excited to announce enhancements to Fn CLI that bring more OCI capabilities into the developer CLI experience, simplify common commands, and streamline deployment automation. Developers using OCI Functions have historically had to move between Fn CLI, OCI CLI, raw annotations, and lower-level request payloads to manage production workflows.

With the latest Fn CLI enhancements, developers can stay in Fn CLI for more of the OCI Functions lifecycle, from initialization and deployment through configuration, invocation, and automation.

**The update focuses on three areas:**

1. More production capabilities directly in Fn CLI
2. Simpler command options for common configuration
3. Better support for repeatable CI/CD and automation workflows

### Operate more of the Functions lifecycle from Fn CLI

Fn CLI now supports more of the capabilities needed to configure and operate OCI Functions in production.

#### Configure provisioned concurrency

Provisioned concurrency can now be configured directly when creating or updating a function:

```
fn create function <app> <fn> <image> \
  --provisioned-concurrency constant:5
```

To disable it later:

```
fn update function <app> <fn> \
  --provisioned-concurrency none
```

Provisioned concurrency can also be configured during initialization and persisted in `func.yaml`:

```
fn init --runtime java hello-java \
  --provisioned-concurrency constant:5
```

#### Configure long-running functions

Detached execution can now be configured with readable durations and concise destination formats.

```
fn create function <app> <fn> <image> \
  --detached-timeout 20m \
  --on-success stream:<stream_ocid> \
  --on-failure notifications:<topic_ocid>
```

Destinations can be removed explicitly:

```
fn update function <app> <fn> \
  --clear-on-success \
  --clear-on-failure
```

Fn CLI also adds more invocation controls, including detached invocation, invocation intent, dry-run validation, and call ID display.

#### Discover and deploy Pre-Built Functions

You can now discover and create Pre-Built Functions directly from Fn CLI:

```
fn list pbfs --search "Document"

fn create function <app> <fn> \
  --pbf <pbf_listing_ocid>
```

Fn CLI also exposes additional OCI-specific configuration across application and function operations, including tracing, image policy configuration, security attributes, and network security groups.

### Replace lower-level configuration with simpler command options

Several workflows that previously required annotations or request payloads can now be expressed directly through Fn CLI options.

#### Configure application subnets

Previously, configuring application networking could require raw annotation JSON. You can now specify subnets directly:

```
fn create app <app> \
  --subnet-id <subnet_ocid>
```

For multiple subnets, repeat the option:

```
fn create app <app> \
  --subnet-id <first_subnet_ocid> \
  --subnet-id <second_subnet_ocid>
```

#### Manage tags directly

```
Fn CLI now includes dedicated options for managing free-form and defined tags, including:
--tag
--defined-tag
--remove-tag
--remove-defined-tag
--clear-tags
--clear-freeform-tags
--clear-defined-tags
```

For example:

```
fn update function <app> <fn> \
  --tag Team=Payments \
  --remove-tag Department \
  --clear-defined-tags
```

These options make common configuration changes easier to discover and automate without constructing lower-level payloads.

### Build more reliable automation

Fn CLI now provides additional controls designed for CI/CD pipelines and repeatable deployment workflows.

#### Supply parameters using JSON

The new `--from-json` option lets you provide parameters inline or from a file:

```
fn create app my-app \
  --from-json file:///absolute/path/app-create.json
```

```
fn create function my-app my-fn \
  --from-json file:///absolute/path/fn-create.json
```

This is useful for deployment pipelines where inputs are stored as reusable, version-controlled configuration.

#### Control resource operations

OCI-style request and lifecycle controls are also available across application and function operations:

`--if-match` for optimistic concurrency  
`--wait-for-state` to wait for a target lifecycle state  
`--max-wait-seconds` to limit total wait time  
`--wait-interval-seconds` to control polling frequency

These controls help automated workflows handle resource state changes and concurrent updates more predictably.

### One CLI across more of the Functions lifecycle

Together, these enhancements make Fn CLI a more complete interface for developing and operating OCI Functions.

Developers can now use Fn CLI to:

- Initialize functions with OCI deployment settings.
- Create and update applications and functions.
- Configure production features such as provisioned concurrency and detached execution.
- Discover and deploy Pre-Built Functions.
- Manage networking, tags, security, and request behaviour.
- Invoke functions with detached, intent, and dry-run controls.
- Build repeatable, JSON-driven CI/CD workflows.

Fn CLI remains compatible with local Fn server workflows. OCI-specific options are identified when they are used against a local Fn server.

### Upgrade Fn CLI

Upgrade to the latest Fn CLI release to use these capabilities in your OCI Functions workflows. Start by moving one production workflow – such as configuring provisioned concurrency, invoking functions in detached mode, configuring subnets, or deploying with JSON -into Fn CLI. Then explore the other enhancements to simplify more of your development and operations lifecycle.
