> For the complete documentation index, see [llms.txt](https://j-osler.gitbook.io/wdid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://j-osler.gitbook.io/wdid/advanced/import-export.md).

# Import/Export

I believe that it's important for tools to not force lock-in through data. To that end, you can export all your items to a file and import as well.

### E**xport**

Data can be exported to text through the [list](/wdid/working-with-items/viewing-items-1.md#list) command with text format. For example, to write the last 14 days worth of data to text, you can use the following:

```
wdid list --format=text 14 > file.txt
```

To view, `column` works nicely:

```
column -t -s $'\t' file.txt
```

### **Import**

Data can be imported in text format from a file or stdin.

```
wdid import file.txt
```

```
cat file.txt | wdid import
```

Imported items will overwrite duplicates of that item.

####
