CLI Tool

Process unlimited CSV files locally with the SchemaMap command-line tool

Installation

Install globally with npm:

npm install -g @schemamap/cli

Verify installation:

schemamap --version

Basic Usage

1. Generate a mapping file

schemamap guess --schema shopify-products < input.csv > mapping.json

2. Apply the mapping

schemamap map --schema shopify-products --mapping mapping.json < input.csv > output.csv

Examples for All Schemas

Shopify Products

Map product catalog data to Shopify's import format:

# Auto-detect mappings and validate
schemamap map --schema shopify-products < products.csv > shopify_products.csv
# With custom mapping file
schemamap map --schema shopify-products --mapping custom_mapping.json < products.csv > shopify_products.csv

Shopify Inventory

Update inventory levels and locations:

# Process inventory updates
schemamap map --schema shopify-inventory < stock_levels.csv > shopify_inventory.csv
# Validate without output
schemamap validate --schema shopify-inventory < stock_levels.csv

Stripe Customers

Import customer data to Stripe:

# Map customer records
schemamap map --schema stripe-customers < contacts.csv > stripe_customers.csv
# Generate mapping for review
schemamap guess --schema stripe-customers < contacts.csv > customer_mapping.json

Advanced Features

Process large files (no row limit):

schemamap map --schema shopify-products < large_catalog_1M_rows.csv > output.csv

Validate without output:

schemamap validate --schema shopify-products < input.csv

Export errors to CSV:

schemamap map --schema shopify-products --errors errors.csv < input.csv > output.csv

Help

schemamap --help