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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vodia-cli

v1.0.5

Published

Vodia PBX CLI tool with web browser support

Readme

Vodia PBX CLI

A powerful command-line tool for analyzing and migrating 3CX PBX system data to Vodia PBX format. This CLI helps you extract extension information from 3CX database backups and export them in various formats for easy migration.

🚀 Features

  • 3CX Database Analysis: Parse and analyze 3CX database XML files
  • Extension Extraction: Extract user extensions with detailed information
  • Multiple Export Formats: Export data as CSV or TAR files
  • Batch Processing: Process multiple database files at once
  • Data Validation: Verify file format before processing
  • Interactive CLI: User-friendly command-line interface with colored output

📦 Installation

Global Installation (Recommended)

npm install -g vodia-pbx-cli

Local Installation

npm install vodia-pbx-cli

🛠️ Usage

Display Help

vodia-pbx-cli help
# or
vodia-pbx-cli -h

Analyze 3CX Database

vodia-pbx-cli 3cx --path /path/to/3cx/backup/folder
# or
vodia-pbx-cli 3cx -p /path/to/3cx/backup/folder

📋 Commands

help

Display available commands and options.

Usage:

vodia-pbx-cli help
vodia-pbx-cli -h
vodia-pbx-cli --help

3cx

Analyze 3CX database files and extract extension information.

Usage:

vodia-pbx-cli 3cx --path <folderPath>

Options:

  • -p, --path <folderPath>: Path to the folder containing 3CX backup files (required)

What it does:

  1. Scans the specified folder for 3CX database files (*Db.xml)
  2. Validates file format to ensure it's a valid 3CX database
  3. Extracts extension information including:
    • Extension Number
    • First Name
    • Last Name
    • Email Address
    • Authentication Password
  4. Displays results in a formatted table
  5. Offers export options (CSV or TAR format)

📁 File Structure Requirements

The tool looks for XML files ending with Db.xml in the specified folder. These files should contain valid 3CX database structure with the following elements:

<?xml version="1.0" encoding="utf-8"?>
<PhoneSystem>
  <header>
    <version>...</version>
    <Date>...</Date>
    <TenantName>...</TenantName>
  </header>
  <Parameters>
    <Extension>
      <Number>100</Number>
      <FirstName>John</FirstName>
      <LastName>Doe</LastName>
      <EmailAddress>[email protected]</EmailAddress>
      <AuthPassword>password123</AuthPassword>
    </Extension>
    <!-- More extensions... -->
  </Parameters>
</PhoneSystem>

📤 Export Formats

CSV Export

Exports extension data to a CSV file with the following columns:

  • Number
  • First Name
  • Last Name
  • Email Address
  • Auth Password

Output file: 3cx-extensions.csv (in current directory)

TAR Export

Creates a TAR archive containing a domain.xml file formatted for Vodia PBX:

<?xml version="1.0" encoding="utf-8"?>
<domain>
  <users>
    <type>extensions</type>
    <primary-name>
      <display>100</display>
      <name>100</name>
      <type>acc</type>
    </primary-name>
    <body>
      <display_name>Doe</display_name>
      <first_name>John</first_name>
      <password>password123</password>
      <email_address>[email protected]</email_address>
    </body>
  </users>
</domain>

Output file: 3cx-extensions-[timestamp].tar (in current directory)

🎯 Example Usage

# Navigate to your 3CX backup folder
cd /home/user/3cx-backups

# Run the analysis
vodia-pbx-cli 3cx --path ./database-backup

# Follow the interactive prompts to export data

Example Output:

🔍 Analyzing 3CX database in: ./database-backup

Found 1 3CX database file(s):

Processing: SystemDb.xml
  ✅ Valid 3CX database format
  Found 25 extensions

┌────────┬────────────┬───────────┬─────────────────────────┬───────────────┐
│ Number │ First Name │ Last Name │ Email Address           │ Auth Password │
├────────┼────────────┼───────────┼─────────────────────────┼───────────────┤
│ 100    │ John       │ Doe       │ [email protected]    │ abc123        │
│ 101    │ Jane       │ Smith     │ [email protected]  │ xyz789        │
└────────┴────────────┴───────────┴─────────────────────────┴───────────────┘

╔═════════════════════════════════════╗
║          EXPORT OPTIONS             ║
╠═════════════════════════════════════╣
║ 1. Export as CSV                    ║
║ 2. Export as TAR                    ║
║ 3. Skip export                      ║
╚═════════════════════════════════════╝

Enter your choice (1-3): 1
✅ CSV file exported to: /current/directory/3cx-extensions.csv

🔧 Requirements

  • Node.js 12 or higher
  • Read access to 3CX backup files

📚 Dependencies

This package uses the following key dependencies:

  • chalk - Terminal styling
  • figlet - ASCII art text
  • table - Table formatting
  • glob - File pattern matching
  • csv-writer - CSV file generation
  • tar - TAR archive creation
  • fs-extra - Enhanced file system operations

🐛 Error Handling

The tool includes comprehensive error handling for:

  • Missing or invalid folder paths
  • Invalid file formats
  • Corrupted XML data
  • File system permissions
  • Export failures

📖 Support

For more information about Vodia PBX, visit: https://doc.vodia.com/

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

📄 License

[Add your license information here]

🏷️ Version History

  • 1.0.0 - Initial release with 3CX database analysis and export functionality