> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 勘定科目

> 勘定科目の一覧、追加、編集、無効化を行うコマンド。

# lim accounts

勘定科目の管理を行うコマンドです。

## 一覧表示

```bash theme={null}
# ツリー表示
lim accounts list --tree

# テーブル表示
lim accounts list --format table

# 無効化済みも含む
lim accounts list --include-inactive
```

```
Code  Name         Type      Sub-Type    Status
1100  現金         asset     current     active
1200  普通預金     asset     current     active
1300  売掛金       asset     current     active
2100  買掛金       liability current     active
3100  資本金       equity    capital     active
4100  売上高       revenue   sales       active
7100  通信費       expense   sga         active
7200  地代家賃     expense   sga         active
```

## 科目の追加

```bash theme={null}
lim accounts create \
  --code 7150 \
  --name "SaaSサブスクリプション" \
  --type expense \
  --sub-type selling-general-admin
```

### パラメータ

| パラメータ        | 説明                                         | 必須  |
| ------------ | ------------------------------------------ | --- |
| `--code`     | 4桁の科目コード                                   | はい  |
| `--name`     | 科目名                                        | はい  |
| `--type`     | 区分（asset/liability/equity/revenue/expense） | はい  |
| `--sub-type` | 詳細区分                                       | いいえ |
| `--tax-code` | デフォルト税コード                                  | いいえ |

### 詳細区分（sub-type）

| 区分   | 値                       |
| ---- | ----------------------- |
| 流動資産 | `current-asset`         |
| 固定資産 | `fixed-asset`           |
| 流動負債 | `current-liability`     |
| 固定負債 | `long-term-liability`   |
| 資本   | `capital`               |
| 売上   | `sales`                 |
| 売上原価 | `cost-of-sales`         |
| 販管費  | `selling-general-admin` |

## 科目の編集

```bash theme={null}
lim accounts update 7150 --name "クラウドサービス利用料"
```

## 科目の無効化

```bash theme={null}
lim accounts deactivate 7150
```

```
✅ Account 7150 (SaaSサブスクリプション) deactivated.
   Existing journal entries are not affected.
```

<Warning>無効化された科目は新規仕訳で使用できません。過去の仕訳はそのまま保持されます。</Warning>

## 科目の再有効化

```bash theme={null}
lim accounts activate 7150
```

## 科目の検索

```bash theme={null}
lim accounts search "通信"
```

```
Code  Name    Type     Status
7100  通信費  expense  active
```

## 次のステップ

<CardGroup cols={2}>
  <Card title="勘定科目ガイド" icon="book-open" href="/ja/guides/chart-of-accounts">
    科目体系の設計と管理のベストプラクティス。
  </Card>

  <Card title="lim add" icon="plus" href="/ja/cli/add">
    科目を使って仕訳を追加。
  </Card>
</CardGroup>
