CLI Quick Start Guide
Get your plugin deployed to TagadaPay in just a few minutes! This guide will walk you through installing the CLI, authenticating, and deploying your first plugin.Prerequisites
Before you begin, make sure you have:- Node.js 18+ installed (Download)
- A TagadaPay account with access to a store
- Your plugin built and ready to deploy
Installation
1
Install the CLI globally
Installs the latest version (v3.0.0+)
2
Verify installation
3.0.0 or higher3
Login to TagadaPay
Your First Deployment
Option 1: Interactive Mode (Recommended)
The easiest way to deploy is using interactive mode:- Store Selection: Choose which store to deploy to
- Config Selection: Pick a configuration file (or none)
- Confirmation: Review details before deploying
- Deployment: Watch real-time progress
- Success: Get your deployment ID and CDN URL
Option 2: Command Line
For automation or scripts, use the direct command:Plugin Structure
Your plugin directory should look like this:Create plugin.manifest.json
If you donβt have one yet, create it:plugin.manifest.json
Build Your Plugin
Make sure your plugin is built:Step-by-Step Deployment Walkthrough
Step 1: Prepare Your Plugin
Step 2: Login & Select Store
Step 3: Deploy
- Interactive (Easy)
- Command Line (Fast)
- Select π Deploy Plugin
- Choose your store from the list
- Select a configuration (or skip)
- Confirm and deploy
- Copy your deployment ID and URL
Step 4: Verify Deployment
Step 5: Mount to Alias (Optional)
To make your plugin accessible at a custom path:https://yourstore.com/my-plugin
Common Workflows
Deploy to Multiple Environments
1
Deploy to Development
2
Test in Development
Visit the CDN URL and test your plugin thoroughly
3
Deploy to Staging
4
Deploy to Production
Update Existing Deployment
To update a plugin:-
Update version in
plugin.manifest.json: -
Rebuild your plugin:
-
Deploy again:
-
Update mount (if needed):
Deploy with Different Configs (A/B Testing)
Pro Tips π‘
1. Use Interactive Mode for Manual Operations
2. Save Store ID as Default
3. Use Verbose Mode for Debugging
4. Organize Configs by Environment
5. Validate Before Deploying
Troubleshooting
Command not found: tgdcli
Command not found: tgdcli
Problem: CLI not installed or not in PATHSolution:
Authentication failed
Authentication failed
Problem: Login expired or credentials invalidSolution:
Plugin manifest not found
Plugin manifest not found
Problem: Running deploy outside plugin directorySolution:
Build directory not found
Build directory not found
Problem: Plugin not built before deployingSolution:
Store not found
Store not found
Problem: Invalid store ID or no accessSolution:
Whatβs Next?
CLI Configuration
Learn about advanced configuration options
Full CLI Reference
Explore all available commands
Plugin SDK
Build plugins with the SDK
Examples & Templates
See real-world plugin examples
Quick Reference
Essential Commands
Common Flags
| Flag | Description | Example |
|---|---|---|
--store-id | Specify store | --store-id store_123 |
--config | Use config file | --config config/prod.json |
--verbose | Detailed logging | --verbose |
--base-url | API endpoint | --base-url production |
--help | Show help | --help |
Support
Need help? Weβre here for you:- Documentation: Complete guides and references
- Community: Join our developer community
- Support: [email protected]
- GitHub: Report issues
π Congratulations! Youβve successfully deployed your first plugin with the TagadaPay CLI!
