# CSVインポート

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2FFvkjiw4o9mZAr1oPaIj4%2Fimage.png?alt=media&#x26;token=ddd160d8-1ea9-41e0-a0a2-494acd20542e" alt=""><figcaption></figcaption></figure>

## コマンダーを使用して**CSVファイルでレコードをインポート**

Keeperコマンダーでは、カンマ区切りフィールドを使用した.csvテキストファイルのインポートがサポートされています。CSVインポートファイルには、レコード、フォルダ、サブフォルダ、共有フォルダ、デフォルトの共有フォルダ権限を含められます。

以下のフィールドの順序を使用し、各値をカンマで区切ります (カンマの前後にスペースは入れません)。すべてのフィールドが必須というわけではなく、一部は空白のままでも問題ありません。

{% code title="myimport.csv" overflow="wrap" %}

```
Folder,Title,Login,Password,Website Address,Notes,Shared Folder,Custom Field1 Name,Custom Field1 Value,Custom Field2 Name,Custom Field2 Value
```

{% endcode %}

<table><thead><tr><th width="114">位置</th><th width="97">列</th><th width="210">値</th><th>内容 / 形式</th></tr></thead><tbody><tr><td>1</td><td>A</td><td>Folder</td><td>FolderName\Subfolder (オプション)</td></tr><tr><td>2</td><td>B</td><td>Title</td><td>レコード名 (必須)</td></tr><tr><td>3</td><td>C</td><td>Login (Username)</td><td>sampleuser</td></tr><tr><td>4</td><td>D</td><td>Password</td><td>samplepassword</td></tr><tr><td>5</td><td>E</td><td>Website Address (URL)</td><td>domain.com/login</td></tr><tr><td>6</td><td>F</td><td>Notes</td><td>アカウントに関するメモ (オプション)</td></tr><tr><td>7</td><td>G</td><td>Shared Folder Name</td><td>SharedFolderName (オプション)</td></tr><tr><td>8</td><td>H</td><td>Custom Field 1 Name</td><td><mark style="color:green;"><code>$oneTimeCode</code></mark></td></tr><tr><td>9</td><td>I</td><td>Custom Field 1 Value</td><td>otpauth://totp/?secret=ABC123ABC123ABC123ABC123ABC123</td></tr><tr><td>10</td><td>J</td><td>Custom Field 2 Name</td><td><mark style="color:green;"><code>$type</code></mark></td></tr><tr><td>11</td><td>K</td><td>Custom Field 2 Value</td><td>login</td></tr></tbody></table>

{% hint style="info" %}
カスタムフィールドは、8番目のフィールド (H列) からとなります。カスタムフィールドの値は次のフィールド (I列) に入ります。
{% endhint %}

* サブフォルダを指定するには、フォルダ名の間にバックスラッシュ (\\) を使用します
* レコードに共有フォルダのアクセス権限を設定するには、以下のように#editタグまたは#reshareタグを使用します
* 複数行または記号は、フィールドを引用符で囲みます
* 国際文字または2バイト文字に対応するため、ファイルがUTF-8エンコードされていることを確かにします

以下のCSVファイルの例では、個人用フォルダ、共有フォルダ、サブフォルダ、記号、複数行フィールドなどのインポート機能がご確認になれます。

{% code overflow="wrap" lineNumbers="true" %}

```
Business,Twitter,marketing@company.com,"a bad password",https://twitter.com,Some interesting notes!,,API Key,"131939-AAAEKJLE-491231$##%!",Date Created,2018-04-02
Subfolder1,Twitter,craig@gmail.com,xwVnk0hfJmd2M$2l4shGF#p,https://twitter.com,,Social Media\Customer1#edit#reshare
Subfolder2,Facebook,craig@gmail.com,TycWyxodkQw4IrX9VFxj8F8,https://facebook.com,,Social Media\Customer2#edit#reshare
,Google Dev Account,mydevaccount@gmail.com,"8123,9fKJRefa$!@#4912fkk!--3",https://accounts.google.com,"Google Cloud ID 448812771239122
Account Number 449128
This is multi-line",Shared Accounts#edit#reshare,2FA Phone Number,+19165551212
```

{% endcode %}

このファイルを「ログイン」レコードとしてインポートします。

```
keeper import --format=csv --login-type test.csv
```

その結果、ボルトは以下のようになります。

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2F1wrnHXmHlQYueVMcrPkC%2Fimage.png?alt=media&#x26;token=4efbd81a-2fd7-4965-8815-a56b1f8d2c6f" alt=""><figcaption><p>CSVインポートの例</p></figcaption></figure>

以下はレコードタイプの一覧です (カスタムレコードタイプがある場合はさらに多くのレコードタイプが存在し、一部のレコードタイプを制限している場合は少なくなります)。

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fx5QSDEvygPxuQXfrTURB%2Fimage.png?alt=media&#x26;token=240b3a85-4169-4e59-9a8d-de4a2d1109a2" alt=""><figcaption><p>カスタムフィールド名が$typeの場合、レコードタイプはカスタムフィールド値として表示できます</p></figcaption></figure>

以下は、考えられるすべてのフィールドタイプ (カスタムフィールドを含む) の一覧となります。以下に見られるように、**これらを`$oneTimeCode`などのカスタムフィールド名として使用できます。**

<table data-full-width="true"><thead><tr><th>Folder</th><th>Title</th><th>Login</th><th>Password</th><th>Website Address</th><th>Notes</th><th>Shared Folder</th><th>Custom Field1 Name</th><th>Custom Field1 Value</th><th>Custom Field2 Name</th><th>Custom Field2 Value</th><th>Custom Field3 Name</th><th>Custom Field3 Value</th><th>Custom Field4 Name</th><th>Custom Field4 Value</th></tr></thead><tbody><tr><td>Folder1\subfolder</td><td>My Login Account</td><td>user@example.com</td><td>liu.W241Q&#x3C;q$RGl9r;N1</td><td><a href="http://www.google.com/">www.google.com</a></td><td>main google account</td><td>TeamFolder</td><td>$oneTimeCode</td><td>otpauth://totp/?secret=ABC123ABC123ABC123ABC123ABC123</td><td>$type</td><td>login</td><td>$host</td><td>10.0.0.1</td><td>$url</td><td><a href="http://www.example.com/">www.example.com</a></td></tr></tbody></table>

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2FAasJ2TsVvBUQYjUmhIbO%2Fimage.png?alt=media&#x26;token=be1ea29b-f846-44b4-90c7-c3d1ede7d48b" alt=""><figcaption><p>カスタムフィールド名$oneTimeCodeとして使用できるすべてのフィールド タイプ</p></figcaption></figure>

次のセクションで解説する[JSONインポート](/keeperpam/jp/commander-cli/command-reference/import-and-export-commands/json-import.md)形式を使用すると、より高度なインポートオプションを使用できます。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeperpam/jp/commander-cli/command-reference/import-and-export-commands/csv-import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
