{"id":5572,"date":"2021-07-19T08:52:00","date_gmt":"2021-07-19T08:52:00","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=5572"},"modified":"2021-07-22T08:30:49","modified_gmt":"2021-07-22T08:30:49","slug":"create-admin-user-via-command-line-in-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/","title":{"rendered":"How To Create Admin User Via Command Line In Magento 2"},"content":{"rendered":"\n<p>In this post, I will guide you on&nbsp;<strong>How To Create Admin User Via Command Line In Magento 2<\/strong>. Use the bin\/magento command to create an admin account.<\/p>\n\n\n\n<p>If you are a Magento 2 admin you probably already know the bin\/magento commands. Actually, Magento provides a lot of bin\/magento commands to help administrators operate the system more easily. You can learn more with&nbsp;<strong><a href=\"https:\/\/www.magetop.com\/blog\/magento-2-commands-list\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 SSH\/CLI Commands List<\/a><\/strong>.<\/p>\n\n\n\n<p>In that set of commands, there is a command that can help you create an admin account easily. Let\u2019s find out in this post.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps To Create Admin User Via Command Line In Magento 2<\/h2>\n\n\n\n<p>1. &nbsp;First, you need to connect to your server via SSH as the root user by command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nssh root@&lt;your-ip-address&gt; -p &lt;your-port-number&gt;\n<\/pre><\/div>\n\n\n<p>2. Go to Magento 2 root folder.<\/p>\n\n\n\n<p>3. Run the below command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp bin\/magento admin:user:create --help\n<\/pre><\/div>\n\n\n<p>Or use shortcut command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp bin\/magento a:u:c -h\n<\/pre><\/div>\n\n\n<p>You can see the output like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nDescription:\n  Creates an administrator\n \nUsage:\n  admin:user:create &#x5B;options]\n \nOptions:\n      --admin-user=ADMIN-USER                    (Required) Admin user\n      --admin-password=ADMIN-PASSWORD            (Required) Admin password\n      --admin-email=ADMIN-EMAIL                  (Required) Admin email\n      --admin-firstname=ADMIN-FIRSTNAME          (Required) Admin first name\n      --admin-lastname=ADMIN-LASTNAME            (Required) Admin last name\n      --magento-init-params=MAGENTO-INIT-PARAMS  Add to any command to customize Magento initialization parameters\n                                                 For example: &quot;MAGE_MODE=developer&amp;MAGE_DIRS&#x5B;base]&#x5B;path]=\/var\/www\/example.com&amp;MAGE_DIRS&#x5B;cache]&#x5B;path]=\/var\/tmp\/cache&quot;\n  -h, --help                                     Display this help message\n  -q, --quiet                                    Do not output any message\n  -V, --version                                  Display this application version\n      --ansi                                     Force ANSI output\n      --no-ansi                                  Disable ANSI output\n  -n, --no-interaction                           Do not ask any interactive question\n  -v|vv|vvv, --verbose                           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n<\/pre><\/div>\n\n\n<p>Please pay attention to the required items in options when using the command. You will need to have the full user, password, email, first name, last name fields when running the command.<\/p>\n\n\n\n<p>4. Run the command below to create an admin account:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp bin\/magento admin:user:create --admin-user=&lt;your-user&gt; --admin-password=&lt;your-password&gt; --admin-email=&lt;your-email&gt; --admin-firstname=&lt;your-firstname&gt; --admin-lastname=&lt;your-lastname&gt;\n<\/pre><\/div>\n\n\n<p>For example, I will create an account with the following options:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>user: magetop<\/li><li>password: admin123@<\/li><li>email: info@magetop.com<\/li><li>firstname: Admin<\/li><li>lastname: Magetop<\/li><\/ul>\n\n\n\n<p>Substituting in the above command we get the command line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp bin\/magento admin:user:create --admin-user=magetop --admin-password=admin123@ --admin-email=info@magetop.com --admin-firstname=Admin --admin-lastname=Magetop\n<\/pre><\/div>\n\n\n<p>When created successfully admin account, it returned output:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nCreated Magento administrator user named magetop\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"281\" data-attachment-id=\"5822\" data-permalink=\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/create-successfully-admin-account\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?fit=1915%2C673&amp;ssl=1\" data-orig-size=\"1915,673\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Create-successfully-admin-account\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?fit=300%2C105&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?fit=800%2C281&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?resize=800%2C281&#038;ssl=1\" alt=\"Create successfully admin account\" class=\"wp-image-5822\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?w=1915&amp;ssl=1 1915w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?resize=300%2C105&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?resize=1024%2C360&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?resize=768%2C270&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?resize=1536%2C540&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Create-successfully-admin-account.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>5. Go to Admin Panel and check your result.<\/p>\n\n\n\n<p>This is the end of the&nbsp;post.<\/p>\n\n\n\n<p>Follow us for the more helpful posts!<\/p>\n\n\n\n<p>We hope this is a useful post for you&nbsp;on&nbsp;<strong><a href=\"https:\/\/www.magetop.com\/blog\/get-admin-path-command-line-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Get Admin Path Command Line In Magento 2<\/a><\/strong>.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I will guide you on\u00a0How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin account.<\/p>\n","protected":false},"author":106,"featured_media":5823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[1300,1301,1302,1303,107],"class_list":["post-5572","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-create-admin-user","tag-create-admin-user-via-command-line","tag-create-admin-user-via-command-line-in-magento-2","tag-how-to-create-admin-user-via-command-line-in-magento-2","tag-magento-2-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Create Admin User Via Command Line In Magento 2 - Magetop<\/title>\n<meta name=\"description\" content=\"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create Admin User Via Command Line In Magento 2 - Magetop\" \/>\n<meta property=\"og:description\" content=\"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-19T08:52:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-22T08:30:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"1068\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"How To Create Admin User Via Command Line In Magento 2\",\"datePublished\":\"2021-07-19T08:52:00+00:00\",\"dateModified\":\"2021-07-22T08:30:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\"},\"wordCount\":283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1\",\"keywords\":[\"Create Admin User\",\"Create Admin User Via Command Line\",\"Create Admin User Via Command Line In Magento 2\",\"How To Create Admin User Via Command Line In Magento 2\",\"magento 2 tutorials\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\",\"name\":\"How To Create Admin User Via Command Line In Magento 2 - Magetop\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1\",\"datePublished\":\"2021-07-19T08:52:00+00:00\",\"dateModified\":\"2021-07-22T08:30:49+00:00\",\"description\":\"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1\",\"width\":1800,\"height\":1068,\"caption\":\"How To Create Admin User Via Command Line In Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create Admin User Via Command Line In Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create Admin User Via Command Line In Magento 2 - Magetop","description":"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How To Create Admin User Via Command Line In Magento 2 - Magetop","og_description":"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user","og_url":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2021-07-19T08:52:00+00:00","article_modified_time":"2021-07-22T08:30:49+00:00","og_image":[{"width":1800,"height":1068,"url":"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"How To Create Admin User Via Command Line In Magento 2","datePublished":"2021-07-19T08:52:00+00:00","dateModified":"2021-07-22T08:30:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/"},"wordCount":283,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","keywords":["Create Admin User","Create Admin User Via Command Line","Create Admin User Via Command Line In Magento 2","How To Create Admin User Via Command Line In Magento 2","magento 2 tutorials"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/","name":"How To Create Admin User Via Command Line In Magento 2 - Magetop","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","datePublished":"2021-07-19T08:52:00+00:00","dateModified":"2021-07-22T08:30:49+00:00","description":"In this post, I will guide you on How To Create Admin User Via Command Line In Magento 2. Use the bin\/magento command to create an admin user","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","width":1800,"height":1068,"caption":"How To Create Admin User Via Command Line In Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/create-admin-user-via-command-line-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Create Admin User Via Command Line In Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Create-Admin-User-Via-Command-Line-In-Magento-2.png?fit=1800%2C1068&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-1rS","jetpack-related-posts":[{"id":4128,"url":"https:\/\/www.magetop.com\/blog\/magento-2-commands-list\/","url_meta":{"origin":5572,"position":0},"title":"Magento 2 SSH\/CLI Commands List","author":"Aaron LX","date":"January 8, 2021","format":false,"excerpt":"If you regularly run and set up the Magento 2 website, you will need to use the SSH and CLI commands. The commands in Magento are quite a few, and you'll probably miss out on some useful ones. I have compiled all the commands in Magento 2 SSH\/CLI Commands List.\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 SSH\/CLI Commands List","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Magento-2-SSH-CLI-Commands-List.jpg?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Magento-2-SSH-CLI-Commands-List.jpg?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Magento-2-SSH-CLI-Commands-List.jpg?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Magento-2-SSH-CLI-Commands-List.jpg?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5577,"url":"https:\/\/www.magetop.com\/blog\/get-admin-path-command-line-in-magento-2\/","url_meta":{"origin":5572,"position":1},"title":"How To Get Admin Path Command Line In Magento 2","author":"Aaron LX","date":"July 19, 2021","format":false,"excerpt":"will guide you on\u00a0How To Get Admin Path Command Line In Magento 2. Admin URL helps you can access the Admin Panel.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Get Admin Path Command Line In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Get-Admin-Path-Command-Line-In-Magento-2.png?fit=1184%2C692&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Get-Admin-Path-Command-Line-In-Magento-2.png?fit=1184%2C692&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Get-Admin-Path-Command-Line-In-Magento-2.png?fit=1184%2C692&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Get-Admin-Path-Command-Line-In-Magento-2.png?fit=1184%2C692&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Get-Admin-Path-Command-Line-In-Magento-2.png?fit=1184%2C692&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5591,"url":"https:\/\/www.magetop.com\/blog\/reset-admin-password-in-magento-2\/","url_meta":{"origin":5572,"position":2},"title":"How To Reset Admin Password In Magento 2","author":"Aaron LX","date":"July 14, 2021","format":false,"excerpt":"Forgot your Magento 2 admin password? Want to get it back but don\u2019t know how? In this post, I will guide you on\u00a0How To Reset Admin Password In Magento 2.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Reset Admin Password In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Reset-Admin-Password-In-Magento-2.png?fit=1199%2C711&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Reset-Admin-Password-In-Magento-2.png?fit=1199%2C711&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Reset-Admin-Password-In-Magento-2.png?fit=1199%2C711&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Reset-Admin-Password-In-Magento-2.png?fit=1199%2C711&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Reset-Admin-Password-In-Magento-2.png?fit=1199%2C711&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5696,"url":"https:\/\/www.magetop.com\/blog\/display-magento-2-module-list\/","url_meta":{"origin":5572,"position":3},"title":"How To Display Magento 2 Module List","author":"Aaron LX","date":"May 17, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Display Magento 2 Module List. Display a list and check the status of modules in your Magento 2 store.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Display Magento 2 Module List","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":8784,"url":"https:\/\/www.magetop.com\/blog\/how-to-fix-an-abstract-factory-could-not-create-an-instance-in-magento-2\/","url_meta":{"origin":5572,"position":4},"title":"How to fix An abstract factory could not create an instance of magentoframeworkappdeploymentconfig in Magento 2","author":"Callula Huy","date":"December 14, 2023","format":false,"excerpt":"Explore the potential reasons behind the error and solutions to fix An abstract factory could not create an instance of magentoframeworkappdeploymentconfig error in Magento 2","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How to fix An abstract factory could not create an instance in Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/12\/HOWTOF1.png?fit=1024%2C683&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/12\/HOWTOF1.png?fit=1024%2C683&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/12\/HOWTOF1.png?fit=1024%2C683&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/12\/HOWTOF1.png?fit=1024%2C683&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":7291,"url":"https:\/\/www.magetop.com\/blog\/enable-or-disable-maintenance-mode-in-magento-2\/","url_meta":{"origin":5572,"position":5},"title":"How To Enable Or Disable Maintenance Mode In Magento 2","author":"Aaron LX","date":"August 12, 2021","format":false,"excerpt":"In this post, I will guide you on How To Enable Or Disable Maintenance Mode In Magento 2. Use maintenance mode to upgrade or reconfigure your site.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Enable Or Disable Maintenance Mode In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=5572"}],"version-history":[{"count":2,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5572\/revisions"}],"predecessor-version":[{"id":5824,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5572\/revisions\/5824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/5823"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=5572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=5572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=5572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}