# Nextcloud Deck delivers: file attachments, checkboxes and export

**URL:** <https://help.nextcloud.com/t/nextcloud-deck-delivers-file-attachments-checkboxes-and-export/34051>\
**Category:** 📰 News\
**Created:** [July 16, 2018, 9:35am UTC](https://help.nextcloud.com/t/nextcloud-deck-delivers-file-attachments-checkboxes-and-export/34051 "2018-07-16T09:35:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mactrent](https://help.nextcloud.com/letter_avatar/mactrent/32/6_449c533f586939b6e5f246632a46421f.png) [@mactrent](https://help.nextcloud.com/u/mactrent)\
**Post date:** [August 28, 2018, 1:28pm UTC](https://help.nextcloud.com/t/nextcloud-deck-delivers-file-attachments-checkboxes-and-export/34051/8 "2018-08-28T13:28:42Z")

</div>

@woosting regarding the guide, have a look at [Using the OCC Command](https://docs.nextcloud.com/server/13/admin_manual/configuration_server/occ_command.html) in Nextcloud admin docs.  
Following that guide, on my Ubuntu install I’ve run the following to get a list of commands:

```auto
> sudo -u www-data php /var/www/nextcloud/occ list
<snip>
 deck
  deck:export Export a JSON dump of user data
<snip>

```

I can then show the help page for that command to get more information:

```auto
> sudo -u www-data php /var/www/nextcloud/occ help deck:export
Usage:
  deck:export <user-id>

Arguments:
  user-id User ID of the user

Options:
  -h, --help Display this help message
  -q, --quiet Do not output any message
  -V, --version Display this application version
      --ansi Force ANSI output
      --no-ansi Disable ANSI output
  -n, --no-interaction Do not ask any interactive question
      --no-warnings Skip global warnings, show command output only
  -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Export a JSON dump of user data

```

You can redirect the JSON output of the command using the standard shell operators like ‘|’ and ‘\>’.  
So if I wanted to export data for user “fabio” to a JSON file in my OS, in my environment I would run:  
`sudo -u www-data php /var/www/nextcloud/occ deck:export fabio > /path/i/want/fabio.deck.json`

What to do with the JSON after that would be up to you. I don’t currently see a way to import it, but I’m sure that’s high priority for next release. The [GitHub issue](https://github.com/nextcloud/deck/issues/87) for import/export looks to still be open.  
_Updated in 2024:_ Unfortunately, the import feature still isn’t there. Folks have put together a few unofficial attempts. They’re missing some of the integration features, but you may find something like [this script](https://gist.github.com/svbergerem/5914d7f87764901aefddba125af99938) useful in a pinch.

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-deck-delivers-file-attachments-checkboxes-and-export/34051)._
