You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-2Lines changed: 72 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,42 @@ deploy:
151
151
152
152
When these OCI-specific flags are used with a non-Oracle provider or local Fn server workflows, Fn CLI accepts them and emits user-friendly warnings where the settings are not applicable.
153
153
154
-
### Pre-Built Function create support
154
+
### Pre-Built Function (PBF) support
155
+
List available Pre-Built Functions:
156
+
157
+
```sh
158
+
fn list pbfs
159
+
fn list pbfs --search Document
160
+
fn list pbfs --trigger http
161
+
fn list pbfs --output json
162
+
```
163
+
164
+
Get a specific PBF listing:
165
+
166
+
```sh
167
+
fn get pbfs <pbf-name-or-ocid>
168
+
```
169
+
170
+
List versions for a PBF:
171
+
172
+
```sh
173
+
fn list pbfs versions <pbf-name-or-ocid>
174
+
fn list pbfs versions <pbf-name-or-ocid> --current
175
+
```
176
+
177
+
Get a specific PBF version:
178
+
179
+
```sh
180
+
fn get pbfs version <pbf-listing-version-ocid>
181
+
```
182
+
183
+
List supported PBF trigger names:
184
+
185
+
```sh
186
+
fn list pbfs triggers
187
+
fn list pbfs triggers http
188
+
```
189
+
155
190
Create a function from a Pre-Built Function (PBF) listing OCID:
156
191
157
192
```sh
@@ -164,7 +199,42 @@ For PBF create flows:
164
199
- Fn CLI automatically resolves the minimum required memory from the current PBF version when possible
165
200
- if you specify `--memory`, it must be greater than or equal to the PBF minimum requirement
166
201
167
-
Current limitation: `--pbf` support is currently focused on `fn create function` and is not yet persisted through `func.yaml` / deploy flows.
202
+
Persist a PBF-backed function definition using `fn init`:
203
+
204
+
```sh
205
+
fn init --name hello-pbf --pbf <pbf-listing-ocid>
206
+
```
207
+
208
+
Example `func.yaml` for a PBF-backed function:
209
+
210
+
```yaml
211
+
deploy:
212
+
oci:
213
+
pbf:
214
+
listing_id: <pbf-listing-ocid>
215
+
```
216
+
217
+
Deploy a persisted PBF-backed function:
218
+
219
+
```sh
220
+
fn deploy --app <app-name>
221
+
```
222
+
223
+
For PBF-backed deploys, Fn CLI skips image build/push/sign flows and creates or updates the function using PBF source details instead.
224
+
225
+
Inspect/list output also surfaces PBF-backed functions:
226
+
227
+
```sh
228
+
fn inspect function<app-name><function-name>
229
+
fn list functions <app-name>
230
+
```
231
+
232
+
`fn list functions` includes a `SOURCE` column, for example:
// If the provider is Oracle and ImageCompartmentID is present, we need to deploy image to the ImageCompartmentID.
360
361
// The repository name should be unique throughout a tenancy. We check if a repository exists in the compartment and create it if it doesn't already exist.
361
362
// If the creation fails, it could be because the repository name aready exists in a different compartment.
returnfmt.Errorf("Runtime %s is no more supported for new apps. Please use python or %s runtime for new apps.", runtime, runtime[:strings.LastIndex(runtime, ".")])
0 commit comments