# Importing/Exporting Data

{% hint style="info" %}
The examples here are performed using the App Builder. The same methods can be used using the ADO builder. The export buttons are found next to the publish button in the ADO builder.&#x20;
{% endhint %}

There are several options to export a build:

* [Exporting to CLI](#exporting-to-cli)
* [Downloading to device](#downloading-to-device)
* [Exporting using a URL](#exporting-using-url)&#x20;

### Exporting to CLI

{% hint style="info" %}
If unfimiliar with the Andromeda CLI, you can read about it [here](https://docs.andromedaprotocol.io/andromeda/andromeda-cli/introduction).&#x20;
{% endhint %}

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2F6XSy6wrw0coqLSetfBNq%2FScreen%20Shot%202023-04-26%20at%205.54.13%20PM.png?alt=media&#x26;token=a889c39c-b75d-46bb-b060-6b591349da9e" alt=""><figcaption><p>Copy CLI Command Button</p></figcaption></figure>

Builds/Panels can be exported to the [Andromeda CLI](https://docs.andromedaprotocol.io/andromeda/andromeda-cli/introduction) to be published to the chain. By selecting the "Copy CLI Command" button, a CLI command of what you have built will be created. You can then paste it in the CLI and run it.&#x20;

{% hint style="info" %}
This works with execute messages as well.&#x20;
{% endhint %}

Let us go through a small example to demonstrate this. Import a template and fill it with any data:

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2FM9ucMa84OJvpCe2pyAOn%2FScreen%20Shot%202023-05-24%20at%204.15.09%20PM.png?alt=media&#x26;token=699c237a-cc0b-44a3-974b-a87749d3022c" alt=""><figcaption></figcaption></figure>

Now, press the "Copy CLI Command" and paste in the CLI and run. The CLI will simulate the transaction with an approximate Fee cost and will prompt if you want to proceed with the transaction:

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2Fq9dL8nkUm3xG96YnliQn%2FScreen%20Shot%202023-05-24%20at%204.31.22%20PM.png?alt=media&#x26;token=022c0755-d33c-49ba-9879-9c40cef1cc45" alt=""><figcaption></figcaption></figure>

Once you accept, the transaction is broadcast to the chain and the app that was created with all the data and information will be on chain.&#x20;

### Downloading to Device

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2FgEa9H9IzXxIMFLiiVFSc%2FScreen%20Shot%202023-04-26%20at%205.56.14%20PM.png?alt=media&#x26;token=852b4ca9-89cb-4117-8bfb-bcc67e3127b9" alt=""><figcaption><p>Save Button</p></figcaption></figure>

Using the **Export** button, you can save a build to your device. When pressed, a .flex file will be downloaded. This file will contain whatever panels/configurations/Apps you had on the canvas. The file can be shared with others and loaded to the web-app on a later date.

Let us go through a quick example on exporting a build. Select a template and fill in the fields with any data:

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2FB1W6Pla4IhiC3XRN3K6T%2FScreen%20Shot%202023-04-26%20at%206.03.19%20PM.png?alt=media&#x26;token=a34d812a-9b41-420d-b798-9b661bb6ddb7" alt=""><figcaption><p>Example Build to Export</p></figcaption></figure>

Now save the build by pressing the Export button and giving the file a suitable name:

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2F5qv5a8J9GcRujizB8bUT%2FScreen%20Shot%202023-04-26%20at%206.12.46%20PM.png?alt=media&#x26;token=5bf11750-fa2b-40d6-a549-a5073b7210d1" alt=""><figcaption><p>Naming the .flex File</p></figcaption></figure>

Open a new blank canvas and select the **Load** button on the top left of the screen:

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2FtDIjuUwfjNWZdA7dP9nt%2FScreen%20Shot%202023-04-26%20at%206.17.04%20PM.png?alt=media&#x26;token=a13dbee7-3064-4621-a9e4-4e459a0b35b0" alt=""><figcaption><p>Loading a .flex File</p></figcaption></figure>

Once selected, you will need to select the file to load in. Select the .flex file you just downloaded and voila, you are back where you left of.&#x20;

### Exporting Using URL&#x20;

<figure><img src="https://3919035805-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNGg2pluC6LG4475Lq89%2Fuploads%2FFXWgb7rtupx4gUQL52Zf%2FScreen%20Shot%202023-04-26%20at%206.26.25%20PM.png?alt=media&#x26;token=d48b037c-1c5f-4f0f-accf-11386faadd13" alt=""><figcaption><p>Copy Flex URL Button </p></figcaption></figure>

The last method for exporting a build is using a URL. This method is the fastest way to share a build with someone. Just select the **Copy Flex URL** button and share it. The receiving party can just paste it in their search engine opening a canvas of the build.
