Questions tagged [cli]

Denotes questions related to CLI which is a short form of Command-Line Interface

Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Access denied for user 'root'@'localhost' (using password: NO)

I'm trying to install Magento 2.4.0 and I keep getting the "Access Denied" for user: 'root'@'localhost' (using password: NO) I'm using Wamp64 Web Server to configure it and using Mysql 8.0....
1
vote
2answers
878 views

segmentation fault while reindexing catalogsearch_fulltext in magento2

I am trying to reindex all indexes using CLI which results segmetation fault. I am using magento2 version 2.0.8 and previously using 2.0.7 but later updated to 2.0.8. I am getting error in both ...
0
votes
1answer
956 views

Magento 2: How to run CLI command on admin store (storeId:0)?

I have a multi-store setup with Magento 2.1.7 CE on the domain a, domain b, domain c. I want to apply images to some products programmatically. When I make an API call on any domain with the "all" ...
2
votes
2answers
764 views

How the catalog:product:attributes:clean works?

I have used the below command in Magento CLI, php bin/magento catalog:product:attributes:clean I read the description for this command in forums and stack overflow, they only say Removes unused ...
2
votes
1answer
53 views

Magento CLI 2.4.0 - ErrorHandler is turning PHP errors into exceptions in production mode

Preface: I prefer to develop in developer mode, have Magento catch all PHP E_NOTICE|E_WARNING|etc. errors, throw exception on them, and get these issues cleaned up before committing my code. The issue ...
0
votes
0answers
8 views

How can we pass the check Skip Base URL Validation Before the Next Step via command line installation in Magento 1.x?

I'm using the following cli command to setup magento 1.9 ** php -f install.php -- --license_agreement_accepted yes \ --locale en_US --timezone "America/Los_Angeles" --default_currency USD \ -...
0
votes
1answer
23 views

CLI Resize ends with “Killed”

I'm trying to resize all the images in my 2.3.4 Magento database. I have about 100 images to resize. When I run the command line instruction, bin/magento catalog:images:resize , it comes back with a ...
0
votes
0answers
91 views

Magento-cloud Cli setup on windows system

How can we setup magento cloud CLI on window system. For run below commands. If anybody have idea about this please share here. magento-cloud login magento-cloud list magento-cloud environment:list ...
0
votes
0answers
33 views

Why package depencies error is coming in Magento 1.9. please explain

I am working on my eCommerce website called cravestore.in. My magento version is 1.9.4. I am not able to install any extensions from Magento Connect & Mage terminal both. I don't know how to fix ...
0
votes
1answer
152 views

How to install Magento Cloud CLI?

I'm running a Magento Commerce Cloud in my new machine and I need to install the Magento Cloud CLI. How could I do it?
13
votes
11answers
22k views

There are no commands defined in the “setup” namespace : Magento 2

I have installed the latest version of Magento 2, everything is working fine frontend, backend and functionality. I have one issue with bin/magento setup:upgrade command, when I run this command in ...
30
votes
4answers
56k views

Magento 2 - There are no commands defined in the “setup” namespace on windows [duplicate]

I have a problem when I run this command: php bin/magento setup:upgrade Display error: [InvalidArgumentException] There are no commands defined in the "setup" namespace. I found some ...
-1
votes
2answers
481 views

Set production mode magento 2.3

I want to switch to production mode but I can not find information about the exact commands that I have to use. I know that I must use this command: php bin/magento deploy:mode:set production But, ...
0
votes
1answer
25 views

Log in from magento cli?

On Drupal I often log in using drush uli. It opens a one-time login URL in my browser. Is it possible to log in to the Magento backend with bin/magento?
1
vote
2answers
183 views

How to install Magento 2.4

I try install fresh magento 2.4 but always available setup wizard but currently I not see setup wizard in this version. https://prnt.sc/u8eeoi How to install magento 2.4 ?
1
vote
1answer
790 views

Magento 2.2 ssh commands not executed

After a PHP upgrade to 7.1 my ssh (Magento) Commands are not executed anymore... See picture below
6
votes
3answers
5k views

Magento 2 bin/magento not working as it should

I've just installed a fresh copy of Magento 2.1.2 from composer. I've previously installed Magento 2 in a different directory completely fine and the commands all run as they should. This has only ...
0
votes
2answers
48 views

Table prefix error when running - setup:db-declaration:generate-whitelist

I've run the command php bin/magento setup:db-declaration:generate-whitelist --module-name={Vendor_Module} and receive the following error... Magento was installed with a table prefix. Please re-...
0
votes
2answers
4k views

“Could not open input file” error while running php command in windows

I have installed Magento 2.2.5 on my loaclhost windows system. I use wamp server. I am unable to run any php command and getting the error Could not open input file: C:\wamp64\www\magento2 I got this ...
2
votes
1answer
841 views

Magento 2 static deploy en_US argument invalid on XAMPP

I've cloned a working magento 2 repo, done composer install and when I'm trying do do: setup:static-content:deploy I get the error: [InvalidArgumentException] en_US argument has invalid value, please ...
2
votes
1answer
58 views

Unable to Create admin user from cli Magento2

Hi am trying to create an admin user from the cli while running the commands i get the following error:- # php bin/magento admin:user:create --admin-user=pramod --admin-password=pramod@123 --admin-...
3
votes
3answers
154 views

How to run php function directly after a specific Magento 2 CLI command?

For the sake of simplicity, let's say I want to echo out "Hello World" (in reality i want to do a lot more) directly after anyone runs php bin/magento setup:di:compile. In the latest version ...
17
votes
3answers
14k views

Magento 2 run a specific Cron without cron:run CLI command?

To make a long story short xdebug will not reliably stop on the breakpoints in my cron files when using the typical: php bin/magento cron:run Xdebug is all setup properly and sometimes it will work ...
13
votes
5answers
12k views

Constant name is expected. Error

I am receiving this error: Uncaught exception 'InvalidArgumentException' with message 'Constant name is expected. While running php bin/magento setup:upgrade in command line. i got this http://...
1
vote
5answers
3k views

Magento 2.2 with PHP 7.1.9 Issue

I have a MultiPHP Manager on my WHM and I have installed Magento 2.2 with PHP 7.1.9. However, whenever I execute a simple cli command I receive an error Magento supports 7.0.2, 7.0.4 and 7.0.6 or ...
2
votes
1answer
1k views

remove 'pub/' folder for URLs from command line

For increased security, we configured the DocumentRoot for our Magento application to be in the pub/ directory of the Magento installation, as described in the official documentation. However, there ...
0
votes
1answer
1k views

Removing modules from vendor magento 2.3

I'm trying to remove a few modules located inside the vendor folder. If i remove them manually it throws an error on the frontend. Warning: require(/srv/public_html/vendor/composer/../amzn/amazon-pay-...
3
votes
4answers
6k views

getting error: Class Magento\Indexer\Model\ResourceModel\Indexer\State\CollectionFactory does not exist

When i run command for indexing php bin/magento indexer:info Error was thrown Class Magento\Indexer\Model\ResourceModel\Indexer\State\CollectionFactory does not exist [Magento\Framework\...
0
votes
0answers
430 views

Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in magento 2

when i run cli commends I'm getting error Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in /home/project/public_html/vendor/magento/framework/...
3
votes
2answers
8k views

Magento 2: How to solve an error when reindex by CLI?

I used Magento 2 stable version. when I run Magento setup:upgrade, following error occurred. [InvalidArgumentException] There are no commands defined in the "setup" namespace. And when I run Magento ...
0
votes
1answer
72 views

How to stop db.log in magento 2.3

How to stop the DB log i had used the CLI to stop but it is not stopping it increasing to huge file. I used the below command but it is not stopping. It is in the path var/debug/db.log bin/magento ...
0
votes
2answers
17 views

Magento2 - Run composer require without cli

I don't have access to ssh on my cpanel. How is it possible to run composer require(composer require razorpay/magento) without any cli interface?
0
votes
1answer
24 views

CLI command to switch off Redis cache

There is CLI command to set up Redis as backend for Magento cache: $ ./bin/magento setup:config:set --cache-backend=redis Does any CLI command exist to switch off Redis as cache backend for Magento?
0
votes
2answers
764 views

PHP Warning after upgrade from Magento 2.1.9 to 2.1.10

I'm having some issues with an installation of Magento 2 that I'm upgrading from 2.1.9 to the 2.1.10 security update. I'm following the cli-upgrade instructions. I'm running all commands as root. I ...
0
votes
1answer
1k views

Magento 2.1 Upgrade Data Issue

Following directions from Magento Documentation for Command-line upgrade to Magento 2.1. Running into some errors when data is upgrading. Below are the errors i receive after running the upgrade ...
0
votes
0answers
16 views

“bin/magento theme:uninstall frontend/Magento/luma” results in “dependent package(s): magento/product-community-edition”

Magneto 2.3.4 Community, attempting to uninstall the luma theme, but there is some kind of dependency: [public_html]$ bin/magento theme:uninstall frontend/Magento/luma Unable to uninstall. Please ...
2
votes
1answer
379 views

Can not create an instance of magentoframeworkappdeploymentconfig

I get this error when i try bin/magento comand from CLI An abstract factory could not create an instance of magentoframeworkappdeploymentconfig(alias: Magento\Framework\App\DeploymentConfig) how can ...
3
votes
1answer
262 views

PHP Fatal error on running bin/magento inventory:reservation:list-inconsistencies command

I am getting this error when running bin/magento inventory:reservation:list-inconsistencies: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Inventory\Model\ResourceModel\...
1
vote
1answer
189 views

How to setup Magento Cloud + Bitbucket?

I've set up Bitbucket Pipelines to use in different Magento Commerce versions but not Magento Cloud yet. I usually do like that in Magento Open Source or Magento Commerce: How to setup CI on Magento ...
0
votes
1answer
64 views

Why does Magento Setup:Upgrade fail when ConfigurableSampleData module is updating?

I have attempted installing Magento in several ways. With and without sample data. This last time I have installed primarily using the CLI method however when I attempt to install sample data and I ...
3
votes
3answers
406 views

Obtain list of actively used locales - Magento 2 CLI

I know that with bin/magento setup:static-content:deploy en_US en_GB I can generate the static content for the above two locales. How can I look up which locales are actively being used by a store (...
1
vote
1answer
70 views

Setting Store-Specific Options for the non-Default Store via CLI

The Magento CLI application allows you to set store URLs directly, like so: bin/magento setup:store-config:set \ --base-url="http://example.dev/" --base-url-secure="https://example.dev/" But how can ...
0
votes
0answers
49 views

Magento 2 Missing required argument $areaCode of Magento\Framework\App\Area

I'm using CLI to execute a custom module, that generate a custom sales report. It has been working nicely, but it suddenly failed with the error Missing required argument $areaCode of Magento\...
2
votes
1answer
20 views

Cannot save custom product attribute via custom console command

I am trying to update a custom product attribute via a custom console command. The command runs, and the product seemingly saves; it never throws an exception or any form of error, yet the attribute ...
3
votes
4answers
12k views

How we can install magento 2.2.0 via command line comand?

How we can install magento 2.2.0 via command line command(CLI) using Ubuntu ? Could you please some share command?
0
votes
1answer
20 views

Why I'm not receiving any output from the Magento CLI?

When I run bin/magento in my server I'm not receiving any output, so I'm not able to see any possible issue. How could I solve it?
0
votes
1answer
64 views

Unable to unserialize value. Error: Syntax error after upgrade 2.2.8 to 2.3.2

After the update process using the Composer has finished I am getting an Unable to unserialize value. Error: Syntax error error with any CLI command I try running (like upgrade or cache flush). I ...
4
votes
2answers
2k views

Why my bin/magento setup:upgrade is really slow?

Running this command seems incredibly slow taking around half an hour+. I feel like it didn't always take this long and am wondering if this is normal and if not what can cause this? This is a very ...
86
votes
12answers
183k views

Magento 2 Reindexing - One or more indexers are invalid. Make sure your Magento cron job is running

I couldn't find the way to do reindexing in mass actions on magento 2. Seems like you need to run it from cronjob. Is there an alternative way to reindex data in magento 2 from backend or command ...
0
votes
1answer
150 views

Magento2 - Cannot Resize Images due to error message In CLI

I'm currently trying to run the image resize command in the CLI for Magento2.3.2 but it keeps coming up with the following error as soon as I run the command: mysite@dx1287:~/httpdocs$ php bin/...

1
2 3 4 5 6