Questions tagged [symfony-cli]
15 questions
4
votes
1 answer
Symfony CLI doesn't export docker desktop vars
I'm on mac (Apple chip), and I'm trying to create a Symfony project using Symfony CLI & Docker.
$ symfony create new_project
$ cd new_project
$ symfony composer require orm
It install Symfony, Doctrine, and ask me to create…

Thibault Henry
- 816
- 6
- 16
3
votes
1 answer
Can't update the symfony CLI through scoop
When I try to update symfony through this command:
scoop update symfony-cli
It says:
Scoop was updated successfully!
symfony-cli: 5.4.12 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
Scoop is…

Gaga
- 153
- 1
- 9
3
votes
1 answer
How to pass migrations_paths to doctrine:migrations:migrate?
It's possible to define multiple paths, where migrations are stored:
doctrine_migrations.yaml
doctrine_migrations:
migrations_paths:
'App\Migrations': '%kernel.project_dir%/src/App'
'AnotherApp\Migrations':…

automatix
- 14,018
- 26
- 105
- 230
3
votes
1 answer
Symfony CLI does not use the correct PHP version when running the "new" command
I have setup my environment as follows: Wamp 3 with PHP7.1.33 version, composer 2 and the Symfony binary.
But when I try to run symfony new my_project_name --version=4.4 --full I get this error:
Creating a "symfony/website-skeleton" project at…

zackzulg
- 599
- 2
- 5
- 21
2
votes
3 answers
How to avoid duplicating workers with Symfony local server?
I found out that I have quite many Symfony local web server workers registered (around ~35), and the number keeps growing. I usually just start server with symfony serve and then kill it (Ctrl + \) when no longer needed. Apparently killing it leaves…

mindaugasw
- 1,116
- 13
- 18
1
vote
2 answers
Symfony Migrations Bundle creating the same migration over and over again
I added an auto-update timestamp to an entity like in this blog post and it works just fine.
Here is the code snippet:
#[Entity]
class Article
{
#[Column(type: "datetime",
columnDefinition: "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE…

CunningFatalist
- 453
- 1
- 9
- 21
0
votes
0 answers
symfony - symfony CLI is installed but path in environnement variable not working
In the environnement variable, then in system variable, I edited the path and added
C:\Users\Tobe\symfony-cli_windows_amd64\symfony.exe
then I saved it and exit with all the OK messages. I restarted my console just in case too.
But in a console I…

GrowyTobe
- 115
- 1
- 8
0
votes
0 answers
Symfony CLI doesn't find all the php versions on my system
I created a Symfony 6 project locally on my PC (Windows 11 Entreprise v.21H2) and I want to use a specific version of PHP.
I know that we can use different versions by creating a .php-version file in the project root.
So I did this command symfony…

Eve
- 776
- 2
- 11
- 32
0
votes
1 answer
How to run symfony cli command with --webapp using local composer.phar?
I run different versions of Symfony and PHP on my Mac for various apps I have to work on (sorry that our clients are so slow to get to upgrade), and I'm trying to install the LTS version of Symfony through the CLI documentation recommendations, but…

SteveExdia
- 321
- 1
- 3
- 11
0
votes
3 answers
How to install symfony cli on windows 10?
I tried to install with scoop, tried with binary installation and it crashed. Everytime I run symfony command I always get Warning: readfile(http://symfony.com/installer): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in Command…

Deimantas
- 31
- 1
- 1
- 2
0
votes
1 answer
TYPO3 Symfony Command Controller argument starting with - (minus) causes error
I have a Symfony command controller in a TYPO3 extension which has arguments. The arguments are set using for example $this->addArgument('myArgument', InputArgument::OPTIONAL, 'My argument', 'default'); and fetched using…

Rudy Gnodde
- 4,286
- 2
- 12
- 34
0
votes
1 answer
How check if a symfony server is still running?
How to check if a started Symfony server is still running or not??
if I launch the server throw the command symfony server:start, I can guess (and check on a browser) that it is still running as long as the window of the command is still open.
If I…

Hamid ER-REMLI
- 200
- 1
- 7
0
votes
2 answers
Symfony serve looks for PHP libraries at the wrong place
I had previously multiple installations of PHP on my computer. I deleted all of them and reinstalled php from the official source which is now found at C:\\php.
The symfony serve command (ran from PhpStorm console) looks for missing modules in the…

Rápli András
- 3,869
- 1
- 35
- 55
-1
votes
1 answer
Update Symfony-cli with symfony 5.4 - ARM64
Symfony-cli update
Before i had this old version.
## Symfony-cli
RUN wget https://get.symfony.com/cli/installer -O - | bash
RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony

Jonathan KABLAN
- 53
- 1
- 4
-1
votes
1 answer
How to force Symfony to use Composer 2
My Symfony 4.4 application was buit with Composer 1.x. Now I need to switch to Composer 2. But I'm unable to do the switch, because Symfony CLI uses Composer 1 no matter what.
I've both composer1 and composer2 installed:
# ls -la /usr/local/bin/ |…

Dr. Gianluigi Zane Zanettini
- 2,010
- 3
- 32
- 61