---
schema_version: "1"
id: c3b4bf1d042e1264973fe308739deffacf93cf17884682fa446df4041661feac
title: "Step 2: Retrieve (Export) the WaveTemplate Object"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_wave_templates/guides/concept/bi-templatesdev-retrieve-export-object.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-retrieve-export-object.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a6a6a58adaf670a0ac50cd8786e88f7942d8574cb0c90dd1d0416d6290a0357b
products:
  - Analytics Templates Developer Guide
  - analytics
---

# Step 2: Retrieve (Export) the WaveTemplate Object

CRM Analytics templates are no different than any other metadata (such as Visualforce pages and Apex classes). You can retrieve the `WaveTemplate` object and its JSON files for editing using CLI or Microsoft Visual Studio (VS) Code. Then store them in a source code management system, and work with them using the development environment of your choice.

**note:** Performing this step overwrites your template object folder contents. If you’ve edited JSON files (such as `rules.json`), make sure you first push those changes back to the development org as described in [Step 4: Deploy the WaveTemplate Object](https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-deploy-object.md).

- **[Use the Salesforce CLI to Retrieve the Template Files](https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/task/bi-templatesdev-export-using-cli.md)**


    Pull the template metadata from the scratch org to your local workspace using the Salesforce CLI command `sf project retrieve start`.

- **[Use Visual Studio Code to Retrieve the Template Files](https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/task/bi-templatesdev-export-using-vscode.md)**


    Pull the template metadata from the scratch org to your local workspace using the Command Palette **Pull Source from Default Scratch Org**. Use VS Code to view and edit the template files.

- **[Template Folder Structure](https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-folder-structure.md)**


    Decompressing the exported template file exposes the following folder structure.
