Skip to main content

Magento Config Tool 🛠️

A Python terminal-based Magento configuration management tool that allows users to search, edit, and manage Magento's core_config_data table using a curses-based CLI UI.

🚀 Features

✅ Search by Path – Find Magento configurations by their path.
✅ View All Records – Paginated list of core_config_data entries.
✅ Edit Configuration by ID – Modify values in core_config_data.
✅ View Database Configuration – Fetch DB settings from env.php.
✅ Curses-Based UI – Keyboard-friendly navigation.


📦 Installation

1️⃣ Install via pip (from PyPI)

Once published, you can install it via:

pip3 install magento-config-tool

1️⃣ Install via pip (from Git)

pip3 install https://github.com/Genaker/magento-config-tool

2️⃣ Install from Source

If installing from a local clone:

git clone https://github.com/yourusername/magento-config-tool.git
cd magento-config-tool
pip3 install --editable .

🛠 Usage

Run the tool

After installation, run:

mage-conf

Keyboard Shortcuts

  • Arrow Keys (↑ ↓) – Navigate the menu.
  • Enter (↵) – Select an option.
  • ESC (⎋) – Exit to the main menu.

📂 Commands & Functionality

Feature Description
Search by Path Search for records in core_config_data by path.
Show All Records Displays a paginated list of all configuration records.
Edit by ID Edit any configuration value by entering its ID.
View DB Config Reads and displays Magento's DB credentials from env.php.
Exit Quit the application (ESC key).

⚙️ How It Works

1️⃣ Read Magento DB Configuration

The tool automatically fetches database credentials from:

app/etc/env.php

2️⃣ Connect to Magento Database

It connects using SQLAlchemy and MySQL Connector.

3️⃣ Perform Queries on core_config_data

  • Searches by path
  • Lists all records with pagination
  • Allows editing values

🏗 Development

Clone and Run Locally

git clone https://github.com/yourusername/magento-config-tool.git
cd magento-config-tool
pip3 install --editable .
mage-conf

Build and Publish to PyPI

python3 setup.py sdist bdist_wheel
pip3 install twine
rm -rf build/ dist/ *.egg-info
python3 -m build
twine upload dist/*

Reinstall

pip3 uninstall magento-config-tool
## or
pip install --upgrade --force-reinstall magento-config-tool

📝 License

This project is open-source and licensed under the MIT License.


👨‍💻 Contributions & Support

💡 Have ideas or found an issue?
Feel free to open an issue or submit a pull request on GitHub!

🔗 GitHub Repository: yourusername/magento-config-tool


🚀 Now you can manage Magento configs right from your terminal using Python! 🔥

Metadata

Release files for magento-config-tool 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magento-config-tool 1.0.7
File Size Uploaded
magento_config_tool-1.0.7.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for magento-config-tool 1.0.7
File Interpreter ABI Platform
magento_config_tool-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / magento_config_tool-1.0.7.tar.gz

Download URL magento_config_tool-1.0.7.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7e0ff9fc5ae53eb2a05a7456b5f1beabd685eb85f60c65e6d410bd6247b1c1c5
BLAKE2b-256 checksum
How to use checksums
2bdcef308c2790baef5fdf999214463a02db1d66bf06a1644634e79f39855711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / magento_config_tool-1.0.7-py3-none-any.whl

Download URL magento_config_tool-1.0.7-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fe0396e9acf4eace65e24874d12607b6ddb314e8d4a2f9a8cfb9b1e792a0b2a
BLAKE2b-256 checksum
How to use checksums
f1cca2a738bccf6c1a3d1d9a5f08062b6ccc416442b5663935a4bf3da2355d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page