
# Accounting

Generated from `--help` output of fob-zb 0.2.1. Every command also accepts the global options `--profile <name>` (alias `--org`), `--help` and `--version`.

## chart-of-accounts

### chart-of-accounts list

```text
fob-zb chart-of-accounts list

List chart-of-accounts (general ledger)

Options:
      --page      Page number                              [number] [default: 1]
      --per-page  Page size (max 200)                    [number] [default: 200]
      --json      Output raw JSON                                      [boolean]
      --fields    Columns to show, comma-separated                      [string]
      --format    Output format. csv/json auto-paginate the full result set
                                      [string] [choices: "table", "csv", "json"]
      --output    Write output to a file instead of stdout              [string]
      --type      Filter by account type / status
  [string] [choices: "all", "active", "inactive", "asset", "liability", "equity"
                                                          , "income", "expense"]
      --search    Free-text search                                      [string]
```

### chart-of-accounts show

```text
fob-zb chart-of-accounts show <id>

Show a ledger account by id

Positionals:
  id  Account id                                             [string] [required]

Options:
      --json  Output raw JSON                                          [boolean]
```

### chart-of-accounts create

```text
fob-zb chart-of-accounts create

Create a ledger account

Options:
      --code         Account code                                       [string]
      --description  Description                                        [string]
      --parent       Parent account id                                  [string]
      --json         Output raw JSON of the saved record               [boolean]
      --name         Account name                            [string] [required]
      --type         Account type
  [string] [required] [choices: "other_asset", "other_current_asset", "cash", "b
  ank", "fixed_asset", "accounts_receivable", "other_current_liability", "credit
  _card", "long_term_liability", "accounts_payable", "equity", "income", "other_
                      income", "expense", "cost_of_goods_sold", "other_expense"]
```

### chart-of-accounts edit

```text
fob-zb chart-of-accounts edit <id>

Update a ledger account (only passed flags change)

Positionals:
  id  Account id                                             [string] [required]

Options:
      --code         Account code                                       [string]
      --description  Description                                        [string]
      --parent       Parent account id                                  [string]
      --json         Output raw JSON of the saved record               [boolean]
      --name         Account name                                       [string]
      --type         Account type
  [string] [choices: "other_asset", "other_current_asset", "cash", "bank", "fixe
  d_asset", "accounts_receivable", "other_current_liability", "credit_card", "lo
  ng_term_liability", "accounts_payable", "equity", "income", "other_income", "e
                                 xpense", "cost_of_goods_sold", "other_expense"]
```

### chart-of-accounts delete

```text
fob-zb chart-of-accounts delete <id>

Delete a ledger account (requires --yes)

Positionals:
  id  Account id                                             [string] [required]

Options:
  -y, --yes  Confirm deletion                                          [boolean]
```

### chart-of-accounts activate

```text
fob-zb chart-of-accounts activate <id>

Mark an account active

Positionals:
  id  Account id                                             [string] [required]
```

### chart-of-accounts deactivate

```text
fob-zb chart-of-accounts deactivate <id>

Mark an account inactive

Positionals:
  id  Account id                                             [string] [required]
```

## journals

### journals list

```text
fob-zb journals list

List journals (manual journal entries)

Options:
      --page      Page number                              [number] [default: 1]
      --per-page  Page size (max 200)                    [number] [default: 200]
      --json      Output raw JSON                                      [boolean]
      --fields    Columns to show, comma-separated                      [string]
      --format    Output format. csv/json auto-paginate the full result set
                                      [string] [choices: "table", "csv", "json"]
      --output    Write output to a file instead of stdout              [string]
      --status    Filter by status
                                 [string] [choices: "all", "draft", "published"]
```

### journals show

```text
fob-zb journals show <id>

Show a journal by id (with line items)

Positionals:
  id  Journal id                                             [string] [required]

Options:
      --json  Output raw JSON                                          [boolean]
```

## items

### items list

```text
fob-zb items list

List items (products & services)

Options:
      --page      Page number                              [number] [default: 1]
      --per-page  Page size (max 200)                    [number] [default: 200]
      --json      Output raw JSON                                      [boolean]
      --fields    Columns to show, comma-separated                      [string]
      --format    Output format. csv/json auto-paginate the full result set
                                      [string] [choices: "table", "csv", "json"]
      --output    Write output to a file instead of stdout              [string]
      --status    Filter by status
                                 [string] [choices: "all", "active", "inactive"]
      --search    Free-text search (name, sku)                          [string]
```

### items show

```text
fob-zb items show <id>

Show an item by id

Positionals:
  id  Item id                                                [string] [required]

Options:
      --json  Output raw JSON                                          [boolean]
```

### items create

```text
fob-zb items create

Create an item

Options:
      --rate           Sales rate                            [number] [required]
      --sku            SKU                                              [string]
      --unit           Unit (e.g. pcs, hrs)                             [string]
      --description    Description                                      [string]
      --product-type   Product type       [string] [choices: "goods", "service"]
      --item-type      Item type
    [string] [choices: "sales", "purchases", "sales_and_purchases", "inventory"]
      --purchase-rate  Purchase rate                                    [number]
      --json           Output raw JSON of the saved record             [boolean]
      --name           Item name                             [string] [required]
```

### items edit

```text
fob-zb items edit <id>

Update an item (only passed flags change)

Positionals:
  id  Item id                                                [string] [required]

Options:
      --rate           Sales rate                                       [number]
      --sku            SKU                                              [string]
      --unit           Unit (e.g. pcs, hrs)                             [string]
      --description    Description                                      [string]
      --product-type   Product type       [string] [choices: "goods", "service"]
      --item-type      Item type
    [string] [choices: "sales", "purchases", "sales_and_purchases", "inventory"]
      --purchase-rate  Purchase rate                                    [number]
      --json           Output raw JSON of the saved record             [boolean]
      --name           Item name                                        [string]
```

### items delete

```text
fob-zb items delete <id>

Delete an item (requires --yes)

Positionals:
  id  Item id                                                [string] [required]

Options:
  -y, --yes  Confirm deletion                                          [boolean]
```

### items activate

```text
fob-zb items activate <id>

Mark an item active

Positionals:
  id  Item id                                                [string] [required]
```

### items deactivate

```text
fob-zb items deactivate <id>

Mark an item inactive

Positionals:
  id  Item id                                                [string] [required]
```
