TagadaPay Plugin CLI
Latest Version
v3.0.3 —
@tagadapay/plugin-clitgd (short) and tgdcli (long). All examples below use tgd.
Quick Start
Interactive Mode
The easiest way to manage everything — deploy, mount, install, manage domains:Commands
Authentication
Deploy
| Flag | Alias | Description |
|---|---|---|
--store | --store-id, -s | Target store ID (prompts if omitted) |
--config | -c | Path to manifest (default: plugin.manifest.json) |
--env | -e | Environment: dev, local, prod |
--dev | -d | Shortcut for --env dev |
--local | -l | Shortcut for --env local |
--prod | -p | Shortcut for --env prod (default) |
--plugin-id | Override plugin ID from manifest | |
--auto-suffix | Append random 6-char suffix to plugin ID | |
--overwrite | --force | Delete existing deployment and replace |
--verbose | Show detailed API logs |
config/ folder exists (presets, schema, uiSchema).
Archive
Create a local ZIP without deploying:List
Instance Management
Domain Management
Domain commands authenticate via your login session. They do not require--store-id.
Plugin Manifest
Every plugin requires aplugin.manifest.json. The CLI validates it before deploying.
Required Fields
All Manifest Fields
| Field | Required | Description |
|---|---|---|
pluginId | Yes | Unique plugin identifier |
name | Yes | Human-readable name |
version | Yes | Semver (1.0.0) |
description | Yes | Short description |
author | Yes | Author name |
category | Yes | Category (e.g. checkout, landing, upsell) |
pages | Yes | Array of page definitions (at least one) |
router | Yes | Routing config: basePath, matcher, excluder |
requirements | Yes | SDK info: sdk, sdkVersion (v1 or v2) |
mode | No | direct-mode (default) or proxy-mode |
configuration | No | Config schema for CRM: schema, uiSchema, presets |
homepage | No | URL to plugin homepage |
repository | No | URL to source repository |
license | No | License identifier |
tags | No | Array of tag strings |
landingImgUrl | No | Preview image URL |
public | No | Whether plugin is listed publicly |
Page Features
Simple string features:landing, checkout, thankyou, product-page, catalog, upsell, post-purchase, static
Requirements: payment, shipping, customer, order, cart, inventory
Environments
The CLI supports three built-in environments:| Flag | Environment | API URL |
|---|---|---|
--prod (default) | Production | https://app.tagadapay.com |
--dev | Development | https://app.tagadapay.dev |
--local | Local | http://app.localhost:3000 |
Workflow Examples
Deploy & Mount
Update a Plugin
A/B Testing
Deploy two variants and mount them via the A/B testing API:Custom Domain
Troubleshooting
Authentication failed
Authentication failed
Plugin manifest not found
Plugin manifest not found
Ensure
plugin.manifest.json exists in your current directory and is valid JSON:Build directory missing
Build directory missing
Build your plugin before deploying:
Version conflict on deploy
Version conflict on deploy
A deployment already exists for this plugin ID + version. Either:
- Bump the
versionin your manifest - Use
--overwriteto replace the existing deployment
Domain verification failed
Domain verification failed
DNS can take up to 48 hours to propagate. Check status:
Verbose Mode
For detailed API request/response logs:Support
- Documentation: docs.tagadapay.com
- Support: developer-support@tagadapay.com
- GitHub: Report issues
