Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

Denotes questions related to command line.

2
votes
3answers
1k 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
3answers
547 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\...
2
votes
2answers
203 views

“Area code not set” error. Still getting this error after a lot of search?

First of all, I have to tell you that I have spent a lot of time researching and I have done all the solutions I have came across but I'm still getting this error when I run setup:di:compile The full ...
1
vote
2answers
41 views

Why indexing in command/CLI works?

Whenever I had problems with admin Index Management, I just have to go to the CLI/Command and execute the command line to reindex specific or all indexes to fix the issue. This was suggested by the ...
1
vote
2answers
348 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
998 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
2answers
160 views

Magento 2 - bin/magento Commands not working in Cpanel Terminal

I have an issue while try to run commands bin/magento in terminal. Commands not working. No command run after bin directory. You can see the below screenshot about the error. Basically yesterday I ...
0
votes
2answers
100 views

Install module in magento 2 on hosting

pls help me, install module in hosting, I upload module on hosting using filezilla but module cant not run, because i dont know run cmd bin/magento setup:upgrade on host server. My english isn't good,...
5
votes
1answer
125 views

Problem with CLI

Hello i have an error of every command i press in CLI. Following this Error Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /var/...
2
votes
1answer
43 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 ,
2
votes
1answer
254 views

Notice: Undefined index: modules in ../Converter.php line 47 - Magento 2 - (Solved)

Hi i am getting error in magento 2 frontend after creating my custom module.(Here mmm2 is my magento directory) a:4:{i:0;s:134:"Notice: Undefined index: modules in /home/vhost/_default/mmm2/lib/...
2
votes
1answer
690 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?
1
vote
1answer
156 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 ...
1
vote
1answer
514 views

Command line not accepting commands

When I run any M2 command line scripts I get the follow error message: Command line user does not have read and write permissions on var/generation directory. Please address this issue before using ...
1
vote
1answer
636 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 ...
0
votes
1answer
21 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....
0
votes
1answer
31 views

Magento 2 - Module Instalation without CLI

Hey guys I have created a php file in the public_html folder and writed the following code: <?php system('php bin\magento module:enable Wisedat_PDFInvoiceFile'); system('php bin/magento setup:...
0
votes
1answer
337 views

SSH Command Line Error on fresh install of Magento 2.2.5 on Bitnami

I have tried numerous installations of magento on Bitnami and I keep getting the below error when trying to upgrade using 'sudo php /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:upgrade': ...
0
votes
1answer
108 views

Composer stuck in Terminal

When I want to intergrade a new plugin through composer I get an error from a attempt of intergrating a tool through the command line. How do I remove this and try to add the following tool: composer ...
0
votes
1answer
13 views

Magento 2: How to optimize the execution of the CLI?

I run the command php bin/magento many times a day, so I'd like to know if I can optimize the execution of this one? For example: php bin/magento cache:flush
0
votes
1answer
297 views

Permission denied when try any command in magento 2.1

When I try to set permissions to folder and files using command like find . -type f -exec chmod 644 {} \; // 644 permission for files find . -type d -exec chmod 755 {} \; ...
0
votes
1answer
58 views

Can not export database by command line window

I exported database by command line. I got this error: gzip is not recognized as an internal or external command, operable program or batch file. How to fix it ?
0
votes
1answer
887 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: '/...
0
votes
1answer
274 views

how to use command line in magento 2.1?

I have tried to run the command line script in a linux VPS with PuTTy and get this error: Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/...
0
votes
1answer
97 views

Get custom command line parameter during module install() process

Is there a way to access command line parameters from inside the magento installer routines? I'm attempting to set up a few custom variables representing our current environment (dev / test / prod) ...
2
votes
0answers
20 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
2
votes
0answers
166 views

magento setup:upgrade enables module

I've just created a Magento2 module, here is the module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
2
votes
0answers
48 views

Deploy Sample Data Content to app/code folder instead of vendor

I can deploy sample data to vendor folder with with the command bin/magento sampledata:deploy in Magento 2 however I want to edit this command to deploy sample data to app/code/magento folder instead ...
2
votes
0answers
394 views

Magento2 - Change product status programatically depending on View

I'm working in a command script to import products to a Magento2 Store. I have more than 10(1 per language) Views for the same Website/Store. I don't have any problem when a product has to be in all ...
1
vote
0answers
21 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.
1
vote
0answers
40 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 ...
1
vote
0answers
33 views

Magento 2 : Error on running magento command

I'm new on Magento 2. (2.2.5, nginx, linux, MySQL 5.7.22, PHP 7.1.21) I was setting the configuration of store and when I refreshed the store page I get diamond question marks, also in admin console, ...
1
vote
0answers
57 views

n98-magerun doesn't throw errors?

I am working on a magerun command, but it seems that errors are not triggered. E.g. protected function execute(InputInterface $input, OutputInterface $output) { $this->detetMagento($output); } ...
1
vote
0answers
102 views

Category URL won't update without command line reindex

Using Magento EE 1.14.0.1 with all patches installed. If I make a change to a category URL, the change will never manifest itself on the front end. Cron is running, all indexes are set to "Run When ...
0
votes
0answers
23 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 ...
0
votes
0answers
14 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\...
0
votes
0answers
25 views

while creating custom module upgrade command not working and all other commands not working before it works at the time of magento2 installation

its showing one message- Magento supports 7.0.2, 7.0.4, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements.html
0
votes
0answers
27 views

N98 magerun url rewrites command issue - Magento 1.9x

I am using the n98-magerun version 1.101.1 for my Magento 1.9x version. When I execute this command php n98-magerun.phar rewrites:analysis:top then it shows [Exception] Table 'my_database....