PHPackages                             kryptalabs/module-admin-password-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. kryptalabs/module-admin-password-cli

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

kryptalabs/module-admin-password-cli
====================================

Magento 2 module for changing admin passwords via CLI with email verification

1.0.0(1y ago)091MITPHPPHP ~7.4.0||~8.0.0||~8.1.0||~8.2.0||~8.3.0

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/divyesh-thadani/magento2-admin-password-cli)[ Packagist](https://packagist.org/packages/kryptalabs/module-admin-password-cli)[ RSS](/packages/kryptalabs-module-admin-password-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (2)Used By (0)

Magento 2 Admin Password CLI
============================

[](#magento-2-admin-password-cli)

[![Latest Stable Version](https://camo.githubusercontent.com/09f2f7949ce17a373f72f9c1ae3fd23c8e62de1a17bf88cc1518267ba63b7b58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72797074616c6162732f6d6f64756c652d61646d696e2d70617373776f72642d636c692e737667)](https://packagist.org/packages/kryptalabs/module-admin-password-cli)[![Total Downloads](https://camo.githubusercontent.com/a3afcc68ed2f85ddbf61a56d5eb601a7d78b81ee19f29e7d6ea729f8877f1a3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72797074616c6162732f6d6f64756c652d61646d696e2d70617373776f72642d636c692e737667)](https://packagist.org/packages/kryptalabs/module-admin-password-cli)[![License](https://camo.githubusercontent.com/afd81cdc42fe8ddc2771cd9038e2ad7c725c1ed92b39decf7774553ba6f78afd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b72797074616c6162732f6d6f64756c652d61646d696e2d70617373776f72642d636c692e737667)](https://packagist.org/packages/kryptalabs/module-admin-password-cli)

A Magento 2 module that provides a secure CLI command to change admin user passwords. This module adds an extra layer of security by requiring email verification during the password change process.

Features
--------

[](#features)

- 🔐 Secure password changing via CLI
- ✉️ Email verification to identify the correct admin user
- 🛡️ Input validation and error handling
- 📝 Detailed success/error messaging

Requirements
------------

[](#requirements)

- Magento 2.3.x, 2.4.x
- PHP 7.4 or higher

Installation
------------

[](#installation)

### Using Composer (Recommended)

[](#using-composer-recommended)

```
composer require kryptalabs/module-admin-password-cli
bin/magento module:enable Kryptalabs_AdminPasswordCli
bin/magento setup:upgrade
bin/magento cache:flush
```

### Manual Installation

[](#manual-installation)

1. Create the following directory structure in your Magento installation:

    ```
    app/code/Kryptalabs/AdminPasswordCli/

    ```
2. Download the module and copy the contents to the directory.
3. Enable the module:

    ```
    bin/magento module:enable Kryptalabs_AdminPasswordCli
    bin/magento setup:upgrade
    bin/magento cache:flush
    ```

Usage
-----

[](#usage)

The module adds a new CLI command to change admin passwords:

```
bin/magento admin:user:password:change -u admin_username -p new_password -e admin_email
```

### Command Options

[](#command-options)

OptionShortRequiredDescription--username-uYesAdmin username--password-pYesNew password--email-eYesAdmin email address### Examples

[](#examples)

Change password for a specific admin user:

```
bin/magento admin:user:password:change --username adminuser --password newPassword123 --email admin@example.com
```

Using short options:

```
bin/magento admin:user:password:change -u adminuser -p newPassword123 -e admin@example.com
```

Error Handling
--------------

[](#error-handling)

The command includes comprehensive error handling for various scenarios:

- Missing required options
- User not found
- Email mismatch
- Invalid password format
- Database errors

Security
--------

[](#security)

- Passwords are securely hashed using Magento's native password hashing mechanism
- Email verification prevents unauthorized password changes
- CLI-only access adds an extra layer of security

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Support
-------

[](#support)

If you encounter any issues or have questions, please:

1. Check the [Issues](https://github.com/divyesh-thadani/magento2-admin-password-cli/issues) page
2. Submit a new issue if your problem isn't already listed
3. For urgent support, contact \[\]

Author
------

[](#author)

- GitHub: [@divyesh-thadani](https://github.com/divyesh-thadani)
- Email:

Changelog
---------

[](#changelog)

### 1.0.0

[](#100)

- Initial release
- Basic password change functionality
- Email verification feature
- Error handling implementation

---

⭐ Found this useful? Show your support by giving this repository a star on [GitHub](https://github.com/yourusername/magento2-admin-password-cli)!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65b7778c1900a3075ea380d5a2c82a90b8b6b0d0e655b97fe7e4cfc101f05000?d=identicon)[divyesh-thadani](/maintainers/divyesh-thadani)

---

Top Contributors

[![divyesh-thadani](https://avatars.githubusercontent.com/u/100219480?v=4)](https://github.com/divyesh-thadani "divyesh-thadani (1 commits)")

### Embed Badge

![Health badge](/badges/kryptalabs-module-admin-password-cli/health.svg)

```
[![Health](https://phpackages.com/badges/kryptalabs-module-admin-password-cli/health.svg)](https://phpackages.com/packages/kryptalabs-module-admin-password-cli)
```

###  Alternatives

[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[yireo/magento2-theme-commands

CLI commands to manipulate themes

1334.2k1](/packages/yireo-magento2-theme-commands)[macopedia/magento2-categoryimporter

Category Importer for Magento 2

344.6k](/packages/macopedia-magento2-categoryimporter)[o2ti/sigep-web-carrier

O2TI - Sigep Web Carrier

141.5k](/packages/o2ti-sigep-web-carrier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
