# Is it possible to export tilesets as JSON from a .tsx file via the command line?

**URL:** <https://discourse.mapeditor.org/t/is-it-possible-to-export-tilesets-as-json-from-a-tsx-file-via-the-command-line/2828>\
**Category:** Questions\
**Created:** [November 13, 2017, 1:41pm UTC](https://discourse.mapeditor.org/t/is-it-possible-to-export-tilesets-as-json-from-a-tsx-file-via-the-command-line/2828 "2017-11-13T13:41:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrapass](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@terrapass](https://discourse.mapeditor.org/u/terrapass)\
**Post date:** [November 13, 2017, 1:41pm UTC](https://discourse.mapeditor.org/t/is-it-possible-to-export-tilesets-as-json-from-a-tsx-file-via-the-command-line/2828/1 "2017-11-13T13:41:18Z")

</div>

I see that in the CLI interface of `tiled` (Tiled v1.0.3, built from `master` branch) there is an `--export-map` option, which allows exporting a .tmx tilemap into various formats, including JSON.

Is there a way to export a .tsx tileset into JSON via command line?

Thanks.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [November 14, 2017, 7:01am UTC](https://discourse.mapeditor.org/t/is-it-possible-to-export-tilesets-as-json-from-a-tsx-file-via-the-command-line/2828/2 "2017-11-14T07:01:10Z")

</div>

> [@terrapass](#):
>
> Is there a way to export a .tsx tileset into JSON via command line?

Not yet. I recently [made some improvements](https://github.com/bjorn/tiled/commit/f55ea17c40f4369ac89aac1494ec6c81cabbfbb5) to the export functionality, and I also considered that there should be support for exporting/converting tilesets as well. I hope to get around to adding that soon.
