---
title: "subako function"
description: "Function packages: the WebAssembly tools an agent's config may grant it"
---

[CLI reference](/cli)

## `subako function`

Function packages: the WebAssembly tools an agent's config may grant it

### Usage

```text
Usage: subako function <COMMAND>
```

### Subcommands

- [`subako function create`](#subako-function-create)
- [`subako function push`](#subako-function-push)
- [`subako function list`](#subako-function-list)

### Options

#### `--help`

Print help

- Short option: `-h`.

## `subako function create`

Create a function package in the selected workspace from a bundle, which becomes its version 1

### Usage

```text
Usage: subako function create [OPTIONS] <BUNDLE>
```

### Arguments

#### `<BUNDLE>`

The bundle: its gzipped tar, or the directory to pack into one

- Required.

### Options

#### `--profile <PROFILE>`

Credential profile to act as. Defaults to the current one


#### `--credentials-file <CREDENTIALS_FILE>`

Path to the credentials file. Defaults to SUBAKO_CREDENTIALS_FILE, then ~/.config/subako/credentials.json.


#### `--help`

Print help

- Short option: `-h`.

## `subako function push`

Push a bundle as the function package's next version

### Usage

```text
Usage: subako function push [OPTIONS] <FUNCTION_ID> <BUNDLE>
```

### Arguments

#### `<FUNCTION_ID>`

Function package id, as `function list` shows it

- Required.

#### `<BUNDLE>`

The bundle: its gzipped tar, or the directory to pack into one

- Required.

### Options

#### `--profile <PROFILE>`

Credential profile to act as. Defaults to the current one


#### `--credentials-file <CREDENTIALS_FILE>`

Path to the credentials file. Defaults to SUBAKO_CREDENTIALS_FILE, then ~/.config/subako/credentials.json.


#### `--help`

Print help

- Short option: `-h`.

## `subako function list`

List the selected workspace's function packages

### Usage

```text
Usage: subako function list [OPTIONS]
```

### Options

#### `--profile <PROFILE>`

Credential profile to act as. Defaults to the current one


#### `--credentials-file <CREDENTIALS_FILE>`

Path to the credentials file. Defaults to SUBAKO_CREDENTIALS_FILE, then ~/.config/subako/credentials.json.


#### `--help`

Print help

- Short option: `-h`.
