Questions tagged [command-line]

Denotes questions related to command line.

Filter by
Sorted by
Tagged with
2
votes
2answers
56 views

All necessary commands for Using Magento 2 - For beginner

ALL Basic Commands I am new in Magento 2 but require I necessary commands including bash commands and git command to working with Linux based system ,
1
vote
2answers
1k views

Magento file system owner Ubuntu

I am really really new to Magento 2 so forgive my lack of knowledge. I am reading the Magento documentation and I keep seeing Magento file system owner. E.g. sudo -u Magento_file_system_owner ...
0
votes
0answers
26 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....
0
votes
0answers
15 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....
2
votes
3answers
52 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
47 views

Magento 2 - How to truncate table using SSH?

I want to truncate database tables using command line. Any directions will be highly appreciated.
1
vote
1answer
248 views

Magento 2 Command line throw errors in developer mode

In production mode, my website is working fine. But as soon as I enable developer mode, I can not use command line any more. In developer mode, if I use for example php bin/magento cache:flush, I'll ...
0
votes
4answers
626 views

Adding products using a custom CLI command

I've written a custom CLI command to import products from an external database into Magento, however whenever I try to save the product, an Exception is thrown. [Magento\Framework\Exception\...
1
vote
1answer
715 views

Magento Code Migration Tool - Installation issue

i'm currently following the steps in https://github.com/magento/code-migration to install the Code Migration Tool (not data migrate) to my localhost. i am facing a problem at the Installation ...
1
vote
3answers
1k views

Magento Command Line Global Commands

I am in a Digital Ocean Ubuntu droplet trying to toggle development mode in my Magento installation so that I can develop a theme. My problem is I can't figure out how to run magento deploy:mode:set ...
0
votes
2answers
38 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 ...
17
votes
4answers
38k views

How to reindex Magento 1.x by using command line

How can I reindex magento using by command line. Kindly provide steps for the same.
3
votes
3answers
2k views

Missing commands for Magento command line

Whenever I run the common commands I get this and similarly named errors: [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "deploy:mode" ...
0
votes
1answer
40 views

Magento 2 Enable maintenance mode except my ip

I want to enable maintenance mode except my ip 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 maintenance mode ...
0
votes
1answer
88 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:...
2
votes
0answers
110 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
1answer
304 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
52 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/...
2
votes
1answer
732 views

Reindex command line for specific store view

I'm wondering is there any way to re-index the "Catalog Url Rewrites" of a specific store view in Magento with Multiple Stores. Is it possible to have store Id in indexer.php command-line?
0
votes
1answer
43 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
1answer
24 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
33 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
33 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 ...
3
votes
2answers
139 views

Magento 2: Implementing module with cli

I'm trying to implement a banner slider without Commands I have already pasted the folder into public_html/app/code/ And I created a PHP file in public_html and tried to run it but nothing happens ...
0
votes
2answers
41 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
46 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
65 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
48 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 -...
2
votes
0answers
29 views

Fatal Error in Magento Command Line

Trying to do a module check from the command line gets me a Fatal Error. I'm using XAMPP to run Magento 2.3
0
votes
0answers
46 views

How to fix “There are no commands define in the namespace” error?

I have upgraded the Magento version from 2.2.6 to 2.3.0 via composer. I have tried running the command php bin/magento setup:upgrade but it says the below error There are no commands defined in the ...
2
votes
2answers
103 views

My live site page has unaligned

It's urgent my live site website has unaligned after running; "sudo bin/magento-cli setup:static-content:deploy" command. All page alignment has changed. Please help to fix this solution. Please ...
0
votes
1answer
26 views

Magento 1 : Get product collection using command line throwing error

I have a script file like getproducts.php & have placed it under script/getproducts.php. I want to get products collection in my script file. code in my file: <?php require_once('../app/Mage....
1
vote
0answers
38 views

Plesk Hosting Magento 2 commands not working

I'm Using Plesk Hosting Magento 2 installed but i can't use commands any kind of command not working. i'have tried many different commands all gives error some can advice will be highly appreciated.
0
votes
1answer
911 views

M2 - Cannot change deploy mode to Production

I am trying to set the deploy mode on an M2 instance to Production from Developer. On my local environment however I keep getting the error message: Command returned non-zero exit code: '/...
32
votes
5answers
15k views

Why can't one switch back to the default mode on Magento 2?

So I have switched to the developer mode while developing on a Magento 2 project using the following command: php bin/magento deploy:mode:set developer All good, I got this message and I developed ...
5
votes
2answers
2k views

Command line error stock magento

I get this error after install when trying to clear var/ generation, and static content deploy via command line. [Exception] Warning: Invalid argument supplied for foreach() in /vendor/magento/...
2
votes
2answers
316 views

Using Command Lines Magento 2

Dear Magento specialists, I always had Magento 1 running. However for my new webshop I like to run Magento 2. I have installed Magento 2 using Installatron. I extracted theme files in the root ...
19
votes
5answers
19k views

Magento 2: What is difference between Cache Clean & Cache Flush?

In Magento 2 we have 2 commands php bin/magento cache:flush php bin/magento cache:clean What's the exact difference between them? I'm generally using cache:flush. I never used cache:clean. So, ...
2
votes
2answers
286 views

Magento 2 : Run command line without prompt confirmation

When I run: bin/magento setup:config:set --http-cache-hosts=172.xx.xx.xx I get a command prompt: Overwrite the existing configuration for http-cache-hosts?[Y/n] I want to use this into a bash ...
3
votes
1answer
939 views

Installing Magento2 Data-Migration-Tool manual without composer

How can I install the magento2 data-migration-tool manual without composer? Already I copied the complete "data-migration-tool"-folder in vendor/magento. When I try to use migrate commands (ex. "...
5
votes
5answers
2k views

enable multiple modules for same namespace

I am installing a few modules one by one into my magento 2 application. Can we enable all modules in the same namespace with one command? Right now I am using: php bin/magento module:enable ...
0
votes
0answers
16 views

How to create symlinks to all source files after changing git branch?

I am working in git workflow. I want to know how I can create symlinks to source files after changing git branch? Let's say I have three root source files in my theme that are located as below. app\...
1
vote
0answers
42 views

How to change admin secure value and generate integration keys for api?

I've developed a script which sets up my magento installations from scratch to production mode with ssl etc. I have on tiny problem and that is, I am not sure which command to use in order to change ...
0
votes
4answers
43 views

Magento 2 indexer:reindex Command Not Working

when i run command php bin/magento indexer:reindex it don't reindex all indexers. but when i run php -dmemory_limit=6G bin/magento indexer:reindex the the following error Please advice your ...
2
votes
2answers
109 views

Magento Commands Not working

Any one can help will be highly appriciated, i'm running magento 2.2.6 Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /home/...
1
vote
2answers
370 views

Magento Commands - Segmentation Fault (Core Dumped)

I receive the following error when running any of the magento commands in CL? Any ideas on how to resolve? Segmentation Fault (Core Dumped) Thanks
1
vote
2answers
49 views

Magic Method unsItemName()

I'm trying to use an unset magic method to delete a row from the table. Following is the line of code from execute method of my CLI command. $item->unsEquipmentName($input->getArgument(self::...
1
vote
1answer
28 views

Magento 2, plugin for MaintenanceEnableCommand does not get executed

Considering below in etc/di.xml: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type ...
1
vote
1answer
300 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 ...
0
votes
1answer
87 views

How to walk through a collection with pagination

I working on a command line which is fetching all the products in the database, using the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory object. In order to avoid memory problems, I'm ...