Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kibocommerce/intra-tenant-catalog-clone

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kibocommerce/intra-tenant-catalog-clone

Kibo Cross Catalog Clone

  • 0.0.22
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

README.md

Catalog Intra Tenant Catalog Clone Utility (CLI Tool)

This CLI tool provides utilities for syncing, managing, and validating configurations related to catalogs in a given tenant.

Prerequisites

Ensure you have Node.js 16+ installed.

Setup

  1. Install dependencies:

    npm install @kibocommerce:intra-tenant-catalog-clone
    
  2. Make sure the .env file is set up with the required environment variables:

    • API_URL: The API endpoint.
    • CLIENT_ID: Client ID for the API.
    • CLIENT_SECRET: Client secret for the API.
    • CATALOG_PAIRS: JSON array of source and destination catalog pairs.
    • SITE_PAIRS: JSON array of source and destination site pairs.
    • PRIME_CATALOG: Prime catalog number.
    • MASTER_CATALOG: Master catalog number.

    You can use the init-env command to create an empty .env file.

Available Commands

  • categories: Sync categories.
  • settings: Sync site settings.
  • entities: Sync entities.
  • search-settings: Sync search settings.
  • search-facets: Sync search facets.
  • search-merchandising: Sync search merchandising settings.
  • search-all: Sync all search-related settings.
  • products: Sync products in catalogs.
  • clean-category-prefixes: Clean category prefixes.
  • 'sync-content -pages -redirects -catalogContent -themeSettings': Syncs Content Pages , redirects , theme settings
  • validate-config: Validate the configuration settings.
  • init-env: Creates an empty .env file.

Usage

To use the CLI tool, run the following command:

npx @kibocommerce:intra-tenant-catalog-clone [command]

Replace [command] with any of the available commands listed above.

Example:

npx @kibocommerce:intra-tenant-catalog-clone categories

Environment Variables

Make sure you set up the following environment variables in your .env file:

API_URL=https://t***.com/api
CLIENT_ID=YourClientID
CLIENT_SECRET=YourClientSecret
CATALOG_PAIRS='[{"source":5,"destination":7}, {"source":6,"destination":8}]'
SITE_PAIRS='[{"source":100148,"destination":100150}, {"source":100149,"destination":100151}]'
PRIME_CATALOG=5
MASTER_CATALOG=2

Contributing

Please raise an issue or pull request on our GitHub repository if you have any fixes, enhancements, or suggestions.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


If you have any issues, please reach out to our support team or check our documentation for more details.

FAQs

Package last updated on 23 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc