Questions tagged [command-line]

Denotes questions related to command line.

Filter by
Sorted by
Tagged with
1
vote
2answers
156 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 ?
0
votes
2answers
69 views

Magento 2 CLI commands doesn't work

I am having a problem trying to migrate my magento2 board from server to my localhost, I copy the database and files I changed app/etc/env.php config parameters to fit with the local host, I did the ...
1
vote
3answers
155 views

Di compile error while installing Magento 2.3.5

Hi i am installing Magento 2.3.5 but getting error on di:compile command MiBErrors during compilation: Dotdigitalgroup\Email\Model\Apiconnector\EngagementCloudAddressBookApi Incompatible argument type:...
0
votes
0answers
49 views

Magento 2 commands automatically killed

I am running commands setup:di:compile and cache: clean it's running for while, but after sometime it got killed in magento2.3.2. Please let me know the exact issue for this.
0
votes
1answer
17 views

Command line enable / disable static blocks

I would like to be able to enable and disable static blocks via the command line, is there a utility that provides this functionality. My use case is to configure a cron job to periodically enable ...
9
votes
3answers
6k views

How to disable Two factor Authentication module in Magento 2.4 [closed]

Anyone, please help me with how to disable the Two-factor Authentication module using a command-line. Thanks.
1
vote
1answer
63 views

Install Magento 2 via command line: Getting Error SQLSTATE[HY000] [2054]

I am using Mac OS Catalina and I am trying to install Magento 2 via the command line and I am getting this error. ➜ php bin/magento setup:install --base-url=http://local.magento2.com --db-host="...
3
votes
3answers
152 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 ...
1
vote
2answers
73 views

Can you run a command to re-size only certain image types in Magento2?

The below command will re-size all images based on new specified dimensions: php bin/magento catalog:images:resize Is there a variable to add to run for a certain image type only? For example, ...
1
vote
1answer
86 views

Magento 2.3.2: setup:di:compile not working getting out in command line after 14%

Hey there i am trying to run command setup:di:compile . its getting started but and stopping for sometimes on 14% and then its gettin out back to cli. i am not getting any error or exception so that ...
0
votes
1answer
34 views

Magento Stuck at running command

My Magento command for compile is stuck What should I do and what is the problem??
0
votes
2answers
72 views

Error while upgrading Magento 2.3.3 to 2.3.4

When I run the Setup Upgrade Command. Getting below error Notice: Undefined index: column in /vendor/magento/framework/Setup/Declaration/Schema/Declaration/SchemaBuilder.php on line 196
0
votes
2answers
70 views

store logo in not loading

I am overwriting my theme logo in my child theme with the default.xml file but the logo is not loading in the storefront. This is my default.xml code: <referenceBlock name="logo"> <...
0
votes
2answers
137 views

Error running the `setup:di:compile` command Magento 2.3.0

Run:: /opt/plesk/php/7.2/bin/php -dmemory_limit=3G bin/magento setup:di:compile Error screenshot:: Any one can help me
0
votes
0answers
152 views

Random error while creating storefront theme

Hi everyone I'm new to magento, few days ago I installed magento and now I was developing a sample storefront theme. But before i configure and install it, I just started facing an unknown error both ...
0
votes
2answers
111 views

Invalid argument type in Magento 2.3.4 in third party module register page

I am getting an issue while compiling in a command line. I am using Magento 2.3.4 version (latest version). I was tried to add a customer repository interface class and passing the parameters in the ...
0
votes
2answers
37 views

How can I use ssh command using php script as root user?

I am working third party integration for which new files generating automatically when my code is running. But it required permission after creating the file. I want to give the permission as a ...
0
votes
1answer
25 views

Magento Cloud - how to set my key for magento

How do I setup New Relic license key for my magento on the magento cloud? I don't use Magento CLI often magento-cloud variable:set php:newrelic.license AAAAAAAAAAAAAAAAAAAAAAAAAAA I execute above by ...
0
votes
1answer
86 views

Allowed memory size of 2097152 bytes exhausted (tried to allocate 8192 bytes) i

I am getting error while running the cli commands, I increased the memory_limit to 5G
1
vote
0answers
41 views

Image Resize Command Issue in Magento 2.2.X

I have Magento 2.2.x running website which is having more than 50K products and each product has up to 27 additional Images. When we run resize command (bin/magento catalog:images:resize), it takes ...
0
votes
1answer
189 views

Magento 2 : how can we use of setup:db-schema:upgrade?

Can we add or update the database schema and if yes, so can anyone give example?
0
votes
0answers
39 views

Magento 2 : use of setup:db-data:upgrade?

I have some doubt for this command "setup:db-data:upgrade". How can we use this command? Can we add or update the database filed and if yes, so can anyone give example?
2
votes
0answers
69 views

How do I execute Magento 2 CLI commands using a custom script?

I had created a custom script which update my database. After completion of database update, I want to execute the Magento CLI commands by adding custom functions in my custom script. The script ...
1
vote
0answers
247 views

How to export products using commandline

How to export product along with all attributes & images/video using commandline?
1
vote
1answer
184 views

Magento 2.3.3 Incompatible argument type

Interception cache generation... 6/7 [========================>---] 85% 50 secs 351.0 MiBErrors during compilation: Vendor\Module\Model\ResourceModel\Brand\Collection Incompatible ...
1
vote
1answer
257 views

How to Disable Inventory Management In Magento 2.x

It may be necessary to disable Inventory Management modules to: Speed up the upgrade process for merchants migrating from 2.0.x, 2.1.x, or 2.2.x to 2.3.x. Use custom or third party inventory and ...
2
votes
2answers
250 views

How to use config:sensitive:set command in Magento 2 CLI?

I notice there are two commands, config:set to Change system configuration and config:sensitive:set to Set sensitive configuration values. I learned Sensitive configuration values hold restricted or ...
0
votes
1answer
40 views

No command works in Magento 2.x

I used sudo php bin/magento setup:upgrade command but get [InvalidArgumentException] There are no commands defined in the "deploy:mode" namespace. after ...
0
votes
1answer
199 views

Magento 2 Maintenance Mode IP filtering not working

I hope you can help me with this issue. I already enabled the maintenance mode and set up the IP filter, but it's not working. Although I configured to access the site with my IP I'm unable to see ...
0
votes
2answers
101 views

Error while sudo php bin/magento setup:upgrade

Replace App And Pub Folder of Theme In Magento2. After that Run Following Command : **sudo php bin/magento setup:upgrade** Show Following error : > PHP Fatal error: Cannot redeclare __() (...
0
votes
1answer
547 views

Error when execute sudo php bin/magento setup:upgrade

PHP Warning: require(/var/www/html/magento2/bin/../app/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/magento2/bin/magento on line 14 PHP Fatal error: require(): ...
0
votes
1answer
476 views

cron:remove and cron:install command is not working. Magento 2

I'm trying to remove cron but it is not working and as well on install as well it is not working but in case of cron:run it works while I run the above two commands it give me an error C:\xamppp\...
0
votes
0answers
121 views

Magento 2.2.8 Error After Update

have in local a Clone of my site online, have update with composer from 2.2.8 to 2.3.2, have reproduced all steps from Magento 2 Guide https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade....
0
votes
0answers
43 views

Magento Command Run Using .bat file

How to Use Magento 2 CMD Command using the .bat file I am Wrtting this Commands but still it is not working D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento cron:run D:\xampp7.2\php\php....
2
votes
3answers
506 views

How Uninstall Theme Using command line in Magento 2

How to uninstall or remove a theme using the command line In Magento 2. Thank You...
0
votes
2answers
187 views

Magento 2 - How to truncate table using SSH?

I want to truncate database tables using command line. Any directions will be highly appreciated.
0
votes
2answers
93 views

SQL error when run command line upgrade Magento 2

When I run the following commmand: php bin/magento s:up; It throws the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_magen34.mg7a_sm_products_filter' doesn't ...
0
votes
1answer
651 views

all magento2 command error

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Cache\FrontendInterface in /home/chicpla1/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:...
3
votes
0answers
683 views

Facing issue when running the command php bin/magento setup:upgrade

Facing issue when running the command php bin/magento setup:upgrade The XML in file "D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml" is invalid: Element 'topic', ...
0
votes
2answers
5k views

Installation failed, reverting ./composer.json to its original content Magento 2

when i try to run require extention-name it gives me following error, i tried many possibilities but it not worked. any advice highly appriciated i'm using cpanel, centOS 6. and trying to install ...
0
votes
1answer
7k views

To enable extensions, verify that they are enabled in your .ini files

Any Help To enable extensions, verify that they are enabled in your .ini files: - /opt/cpanel/ea-php72/root/etc/php.ini - /opt/cpanel/ea-php72/root/etc/php.d/20-bcmath.ini - /opt/...
1
vote
2answers
330 views

Magento 2 Enable maintenance mode except my ip

I want to enable maintenance mode except my ip address, and I have run below command in CLI tool php bin/magento maintenance:enable --ip= 180.233.1--.1-- (this is my ip) this enables the ...
0
votes
1answer
61 views

How to stop run command line after changed in Magento 2?

Can anyone help me how to change the content in Magento without using the command line like php bin/magento cache:clean or php bin/magento cache:flush I always have to run this command after any ...
0
votes
3answers
51 views

Is there any alternative for commands in Magento?

We are all known that there are commands we need to run at some instances in Magento.Is there any possibilities to make things work without running commands? For example, we can flush the cacheeven ...
1
vote
1answer
39 views

Is it possible to run commands for the Magento in xampp from another device?

My colleague installed Magento in xampp on his system and I can browse the site frontend and backend on my system using his system IP. Is it possible to develop and run commands in my system though ...
0
votes
1answer
54 views

Is it possible Magento 2 site work without ssh/command prompt? [closed]

I am installed Magento 231 site. After that, I want to installed Magento extension and theme but I have no ssh or command prompt? Someone help me how can I achieve this. Thanks in advance.
0
votes
2answers
239 views

Custom Console command creation error in Magento 2

I am creating console command to input values into the database, there is some argument missing an error. I have gone through several tutorials but to me, the code looks fine. The error is: Not ...
0
votes
0answers
47 views

Magento2: setup:di:compile issue

Got the error below when I run the setup:di:compile command [Magento\Framework\Exception\LocalizedException] Source class "\Magento\Framework\EntityManager\OperationInterface" for "Magento\...
1
vote
2answers
401 views

Magento 2 - Area code not set when running script via command line CLI

I have created module for exporting my product data to script outside of Magento2. This is my Data.php <?php namespace Oktarin\Nabavanet\Helper; class Data extends \Magento\Framework\App\Helper\...
0
votes
1answer
94 views

SSH “Could not open input file: bin/magento” in Magento2

I try to install: https://www.magesolution.com/front-end-cms-page-builder.html in Magesolution document told run ssh command: unzip -o Extension_Package_Name.zip but the problem is when run unzip -...