Skip to main content

Altera CLI Overview

A command line interface for interacting with Altera and your Shopify data

Updated in the last hour

The Altera CLI tool is a powerful command-line interface for interacting with your Shopify store through the Altera app. It provides an efficient way to manage your Shopify files, and soon, data imports and exports. While we do not provide direct API access to Altera, this tool allows you to manage your store's data and files from the command line and to automate your workflows.

We launched the CLI tool in September 2025. If you have any questions or feedback we would love to hear from you.

Getting Started

Important: Keep your API key private as anyone with access will be able to access your store's data.

  1. Install the Altera app from the Shopify App Store

  2. Navigate to Settings β†’ API Keys

  3. Enter a contact email and save the settings

  4. Then generate an API key and copy it to your clipboard

  5. In your terminal run npx altera shop add to connect your store to the CLI

Command Reference

This section provides a reference for all the commands available in the Altera CLI.

Shop Management

  • shop add [shopDomain] - Connect a new Shopify store to the CLI

  • shop list - View all configured shops

  • shop use [shopDomain] - Switch between different shops

  • shop remove [shopDomain] - Remove a shop configuration

  • shop test [shopDomain] - Test API connection for a specific shop

File Management

The files subcommand allows you to upload and download files from the Shopify Files section. Each time you upload or downloads files you will also get an Excel file of the files in the Altera format.

  • files download [localDir] - Download files from Shopify to local folder

  • Options:

    • --filename <filename> - Filter files by filename

    • --media_type <type> - Filter by media type (IMAGE, EXTERNAL_VIDEO, MODEL_3D, VIDEO, FILE)

  • files upload [filePath] - Upload a file to Shopify

Example Commands

Download all files from Shopify to a local folder:

$ npx altera files download local_folder
Downloading Files
-----------------
URL: https://admin.shopify.com/store/example-store/apps/altera/job/q17bPE/
Output directory: ./local_folder
Excel summary: ./local_folder/Files_2025-09-24_062200.xlsx
[x] Preparing file list (1029)
[x] Creating local directory
[x] Downloading files (1029/1029)
1029 files downloaded to ./local_folder

Download all images from Shopify that contain 'shoes' in the filename:

$ npx altera files download local_folder --filename shoes --media_type IMAGE

Upload files from a local folder to Shopify:

$ npx altera files upload ./product_images/*.jpg
Uploading Files
-----------------
URL: https://admin.shopify.com/store/example-store/apps/altera/job/ED2k8q/
Excel summary: File_Upload_2025-09-24_063407.xlsx
[x] Uploading files (4/4)
[x] Waiting for Shopify to process files
[x] Download summary
File upload job completed successfully

Export Operations

Exports are still in development and will be available soon.

  • export create <types> - Create a new export job

  • Options:

    • --shop <shopDomain> - Specify the shop domain

    • --nodownload - Create export and return URL without waiting

    • --file-name <fileName> - Specify the output file name

  • export status <jobId> - Check export job status

  • export list - View recent export jobs

Import Operations

Imports are still in development and will be available soon.

  • import create <filePath> - Create a new import job

  • Options:

    • --shop <shopDomain> - Specify the shop domain

    • --types <types> - Specify the types to import (products, orders, customers, etc.)

Did this answer your question?