Add Extension
Install a new BallsDex package from a git repository.
Syntax
Arguments
| Argument | Type | Description |
|---|---|---|
url |
Required | Git repository URL (HTTPS or SSH) |
Behavior
- Validates the git URL
- Extracts package name from URL
- Downloads package via pip
- Adds entry to
config/extra.toml - Attempts to load the extension
- Shows installation status
Examples
Install from GitHub (HTTPS)
Install from GitHub (SSH)
Install from GitLab
Output
Successful Installation
📦 Installing Extension
Installing `ballsdex_merchant_package` from:
https://github.com/Haymooed/BallsDex-Merchant-Package.git
✅ Extension Installed
Successfully installed and loaded `ballsdex_merchant_package`
URL: https://github.com/Haymooed/BallsDex-Merchant-Package.git
Path: ballsdex_merchant_package
Extension is now active. Restart may be required for full functionality.
Already Installed
Installation Failed
What Gets Added to Config
The command automatically adds to config/extra.toml:
[[ballsdex.packages]]
location = "git+https://github.com/Haymooed/BallsDex-Merchant-Package.git"
path = "ballsdex_merchant_package"
enabled = true
editable = false
Package Naming
Package names are auto-generated from the URL:
https://github.com/User/My-Package.git→my_package- Hyphens and spaces become underscores
- Converted to lowercase
After Installation
Check if Loaded
Should show your new package with status ✅ Enabled.
If Not Working
Some packages require a full bot restart:
- Stop the bot
- Restart the bot
- Extension should now be active
Troubleshooting
Invalid URL Format
Solution: Ensure you're using a valid git URL starting with http or git@.
Installation Timeout
⏱️ Installation Timeout
Installation took too long. The package may still be installing in the background.
Solution: Wait a few minutes and check m.dexadmin extension list.
Permission Errors
Solution: Ensure the bot process has write access to the config directory.
Best Practices
- Check before installing - Run
m.dexadmin extension listfirst - Test on development bot - Try new packages in a test environment
- Read package docs - Check the package's README for special requirements
- Monitor logs - Watch bot logs during installation for errors
See Also
- Remove Extension - Uninstall packages
- List Extensions - View installed packages
- Update Extension - Update to latest version