Magento 2 add a user via command line cli
Create Magento 2 admin users using command line. Quick CLI commands for adding users, setting roles, and managing administrator access.
e.g. cd /var/www/magento2Enter the below command and press enter.
php bin/magento admin:user:createThe CLI will prompt for username, password, email address, first name and last name for the user being created.
Related Articles
Email Authentication: The Critical Foundation of Modern Business Communication
Complete guide to email authentication protocols. Learn SPF, DKIM, DMARC & BIMI configuration, adoption stats, business impact, and 2025 compliance requirements.
Whats DevOps and How to Learn DevOps
PHP Get path in an Laravel application
Laravel framework provides several useful helper methods to get various paths required to access some commonly used directories/folders.app_path() - Laravel app_path helperbase_path() - Laravel helperconfig_path() - Laravel helperdatabase_path() - Laravel helpermix() - Laravel helperpublic_path(...
How to Extract a .gz File or directory in Linux using command prompt / terminal / shell / bash
Extract GZ archive file in Linux TerminalTo extract the GZ archive to the current directory, use below command.$ gunzip archive.gz .gz files are compressed with gzip compression algorithm. To extract .gz files we use gunzip command is used in Linux.if the operation is successful, nothing is shown an...