npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tiendanubecli

v1.3.0

Published

CLI tool for Tienda Nube / Nuvemshop theme development with FTP synchronization

Readme

Tienda Nube / Nuvemshop CLI

FTP synchronization tool for Tienda Nube (Argentina/LATAM) and Nuvemshop (Brazil) theme development

npm version License: MIT Node.js

⚠️ Unofficial Tool: This is a community-developed tool and is NOT officially affiliated with, endorsed by, or supported by Tienda Nube or Nuvemshop. Use at your own discretion.

⚠️ Herramienta No Oficial: Esta es una herramienta desarrollada por la comunidad y NO está oficialmente afiliada, respaldada ni soportada por Tienda Nube o Nuvemshop. Úsela bajo su propia responsabilidad.

A modern CLI tool for Tienda Nube and Nuvemshop theme developers. Automate your workflow with real-time FTP synchronization, theme downloads/uploads, and configuration validation.

🇦🇷 For Tienda Nube developers | 🇧🇷 Para desenvolvedores Nuvemshop

Features

  • 🚀 Fast Performance: Optimized FTP operations with connection pooling
  • 🔄 Auto-Sync: Real-time file monitoring with automatic FTP synchronization
  • ⚡ Interactive Setup: Quick CLI-guided FTP configuration
  • 📥 Download/Upload: Full theme download or upload with a single command
  • ✅ Enhanced Config Validator: Comprehensive Tienda Nube specific validation with critical tab indentation checks
  • 🔍 Smart Error Detection: Duplicate name detection and cross-file validation with defaults.txt
  • 🔁 Smart Retry: Automatic retry logic for reliable file transfers
  • 💻 Cross-Platform: Works on Windows, macOS, and Linux

Installation

Install globally to use tiendanube command anywhere:

npm install -g tiendanubecli

Or use locally in your project:

npm install --save-dev tiendanubecli

Quick Start

1. Initialize Configuration

Run the interactive setup to configure your FTP connection:

tiendanube init

This will prompt you for:

  • FTP Host (provided by Tienda Nube / Nuvemshop)
  • FTP Username
  • FTP Password
  • FTP Port (default: 21)
  • Secure connection (FTPS)
  • Base path
  • Connection timeout
  • Debug mode

The wizard validates your connection and creates a .env file with your credentials.

2. Download Your Theme

Download your entire theme from the FTP server:

tiendanube download

3. Start Developing

Watch for file changes and auto-sync to FTP:

tiendanube watch

Now edit your theme files locally - changes are automatically uploaded to your store!

Commands

tiendanube init

Interactive setup wizard to configure FTP connection. Creates .env file and validates credentials.

tiendanube init

tiendanube watch

Monitor theme/ folder and automatically sync changes to FTP server.

tiendanube watch

This is the recommended mode for development. Any file you create, modify, or delete in the theme/ folder will be automatically synchronized to your store.

tiendanube download

Download entire theme from FTP server to local theme/ folder.

tiendanube download

tiendanube push

Upload entire local theme to FTP server.

tiendanube push

⚠️ Warning: This will overwrite all files on the FTP server with your local files.

tiendanube download-file <path>

Download a specific file from FTP server.

tiendanube download-file config/settings.txt
tiendanube download-file templates/product.tpl

tiendanube check

Validate theme configuration files (.txt and .json files in config/ folder) with Tienda Nube specific requirements.

tiendanube check

Critical Validations:

  • Tab Indentation: Enforces Tienda Nube requirement for tabs only (no spaces)
  • Duplicate Names: Detects duplicate name fields across configuration files
  • Cross-Reference: Validates that every name field has a corresponding value in defaults.txt

Additional Checks:

  • Valid JSON syntax for .json files
  • Tienda Nube specific file format validation (settings.txt, sections.txt, translations.txt)
  • Required language translations (es, pt, en, es_mx)
  • File size optimization warnings (>500KB for .txt, >100KB for .json)
  • Excessive nesting detection
  • Best practices compliance

tiendanube --help

Display help information and all available commands.

tiendanube --help

tiendanube --version

Display current version.

tiendanube --version

Configuration

The .env file contains your FTP credentials. You can create this manually or use tiendanube init for interactive setup.

# Tienda Nube / Nuvemshop FTP Configuration

FTP_HOST=your-ftp-host.com
FTP_USER=your-username
FTP_PASSWORD=your-password
FTP_PORT=21
FTP_SECURE=false
FTP_BASE_PATH=/
FTP_TIMEOUT=30000
DEBUG=false

Configuration Options:

  • FTP_HOST: FTP server hostname (provided by Tienda Nube/Nuvemshop)
  • FTP_USER: Your FTP username
  • FTP_PASSWORD: Your FTP password
  • FTP_PORT: FTP port (default: 21)
  • FTP_SECURE: Use FTPS secure connection (true/false)
  • FTP_BASE_PATH: Remote base directory (default: "/")
  • FTP_TIMEOUT: Connection timeout in milliseconds (default: 30000)
  • DEBUG: Enable verbose logging (true/false)

⚠️ Security: Never commit your .env file to version control. Add it to .gitignore.

Theme Structure

The theme/ directory follows Tienda Nube / Nuvemshop standard structure:

theme/
├── config/          # Theme configuration (settings.txt, data.json)
├── layouts/         # Page layouts (.tpl files)
├── templates/       # Page templates (home.tpl, product.tpl, cart.tpl, etc.)
├── snipplets/       # Reusable template components
└── static/          # Static assets
    ├── css/         # Stylesheets
    ├── js/          # JavaScript files
    └── images/      # Image assets

Troubleshooting

Connection Issues

  • Verify FTP credentials in .env
  • Check FTP_SECURE setting (some servers require false)
  • Ensure firewall allows FTP connections (port 21 by default)
  • Run tiendanube init to re-validate credentials

Debug Mode

Enable detailed logging in .env:

DEBUG=true

Or enable during tiendanube init setup. This will show detailed FTP protocol logs and help identify connection issues.

Config Check Errors

Run tiendanube check to validate your configuration files:

tiendanube check

This will show specific errors with line and column numbers for easy debugging.

Common Error Types:

  • CRITICAL: Tab Indentation: Use tabs only for indentation, never spaces (fundamental Tienda Nube requirement)
  • Duplicate Name Fields: Each name field must be unique across all configuration files
  • Missing Defaults: Every name field must have a corresponding value in defaults.txt
  • JSON Syntax Errors: Invalid JSON formatting in .json files
  • Missing Translations: Required languages missing in translations.txt
  • File Structure: Invalid Tienda Nube specific file formats

Upload/Download Failures

The CLI includes automatic retry logic for transient errors. If operations fail repeatedly:

  1. Check your internet connection
  2. Verify FTP credentials are correct
  3. Enable debug mode to see detailed error messages
  4. Check if FTP server is accessible

Requirements

  • Node.js >= 16.0.0
  • FTP access to Tienda Nube / Nuvemshop server

About Tienda Nube / Nuvemshop

Tienda Nube (Argentina and LATAM) and Nuvemshop (Brazil) are leading e-commerce platforms in Latin America. This CLI tool helps theme developers streamline their workflow with automated FTP synchronization.

For Nuvemshop Developers (Brazil)

Este CLI funciona perfeitamente com Nuvemshop. Use os mesmos comandos e configurações - a ferramenta funciona de forma idêntica para Tienda Nube e Nuvemshop.

Disclaimer

This tool is NOT an official product of Tienda Nube or Nuvemshop. It is a community-developed tool created to help theme developers. For official tools and documentation, please visit:

Contributing

Contributions are welcome! For development setup, architecture details, and contribution guidelines, see DEVELOPMENT.md.

License

MIT © Innovate Group

Links