Symfony-cli - The Symfony CLI tool For Golang

Overview

Symfony CLI

Install

To install Symfony CLI, please download the appropriate version, unarchive the files, and move the binary somewhere under your path. To upgrade, download the latest version and replace the binary by the new one.

Comments
  • Can't update Symfony CLI

    Can't update Symfony CLI

    Hi
    My Symfony CLI version is 5.0.8 and a few hours ago version 5.0.9 was released.
    Now I want update my Symfony CLI by using symfony self-update command but say there is no update:

    Checking for Platform.sh CLI for Symfony updates (current version: 3.73.2) No updates found

    @fabpot What's wrong?

    opened by karaka200 26
  • Sign (RPM) packages in the (YUM) repos

    Sign (RPM) packages in the (YUM) repos

    Currently, the instructions say to disable GPG check for Yum / DNF. This is not the best security practice and the packages should be signed by Symfony.

    opened by dkarlovi 21
  • LinuxMint 21 not supported

    LinuxMint 21 not supported

    During execution of the setup script for the 'symfony/stable' repository the following error occurs :

    Distro=linuxmint version=21 codename=vanessa arch=x86_64

    Failed to fetch configurationn for your OS distribution release/version

    It looks like we don't currently support your distribution release and version.

    opened by mdeherder 9
  • Re-add `check:security` command?

    Re-add `check:security` command?

    As Fabien said here:

    The (check:security) command does not exist in the new version of the CLI, you should use https://github.com/fabpot/local-php-security-checker instead.

    Unless there are technical reasons to not do it, could we please reconsider adding the command again? It was very useful and the alternative of having to install another project to have that feature causes lots of friction in my opinion.

    Thanks!

    opened by javiereguiluz 8
  • panic: runtime error: invalid memory address or nil pointer dereference

    panic: runtime error: invalid memory address or nil pointer dereference

    I am getting this error

    panic: runtime error: invalid memory address or nil pointer dereference on ubuntu 20.04 new installation, after:

    echo 'deb [trusted=yes] https://repo.symfony.com/apt/ /' | sudo tee /etc/apt/sources.list.d/symfony-cli.list
     sudo apt update
     sudo apt install symfony-cli
    

    Version: 5.2.2

    Then I try to create a project using:

    symfony new my-project

    I have permissions in the directory. This is only happening with 'new' command, others like console or composer are working. Well, I don't have php nor composer installed yet. Any ideas?

    opened by alejgarciarodriguez 7
  • symfonycorp/cli docker image not found (404) on DockerHub

    symfonycorp/cli docker image not found (404) on DockerHub

    Hello,

    As mentionned in Symfony support channel on Slack, some CI workflows fail on Github when using symfonycorp/security-checker-action.

    Here is the error message : image

    We found out that this URL was sending a 404 response : https://hub.docker.com/r/symfonycorp/cli

    Does anyone have any information about this docker image ? Why did it disappear ?

    To get rid of this error, we now have to download and install Symfony CLI and then run symfony security:check in our CI workflow.

    Is there any alternative ?

    Thank you all !

    opened by pbories 6
  • symfony new project not installing recipe by default

    symfony new project not installing recipe by default

    When creating a new symfony project without --webapp option, the project's directory is created containing only the config/bundles.php file, vendor directory and composer.* files.

    $ symfony new some-project
    * Creating a new Symfony project with Composer
      (running /usr/local/bin/composer create-project symfony/skeleton /some/path/some-project  --no-interaction)
    
    * Setting up the project under Git version control
      (running git init /some/path/some-project)
    
    
     [OK] Your project is now ready in /some/path/some-project
    
    $ ls -lag some-project
    total 184
    drwxr-xr-x   7 staff    224 Jul 28 20:29 .
    drwxr-xr-x   4 staff    128 Jul 28 20:29 ..
    drwxr-xr-x  13 staff    416 Jul 28 20:29 .git
    -rw-r--r--   1 staff   1628 Jul 28 20:29 composer.json
    -rw-r--r--   1 staff  86158 Jul 28 20:29 composer.lock
    drwxr-xr-x   3 staff     96 Jul 28 20:29 config
    drwxr-xr-x   8 staff    256 Jul 28 20:29 vendor
    
    $ symfony -v
    Symfony CLI version 5.4.12 (c) 2017-2022 Symfony SAS #StandWithUkraine Support Ukraine (2022-07-07T14:58:33Z - stable)
    Symfony CLI helps developers manage projects, from local code to remote infrastructure
    
    These are common commands used in various situations:
    
    Work on a project locally
    
      new                                                            Create a new Symfony project
      server:start                                                   Run a local web server
      server:stop                                                    Stop the local web server
      security:check                                                 Check security issues in project dependencies
      composer                                                       Runs Composer without memory limit
      console                                                        Runs the Symfony Console (bin/console) for current project
      php, pecl, pear, php-fpm, php-cgi, php-config, phpdbg, phpize  Runs the named binary using the configured PHP version
    
    Manage a project on Cloud
    
      init                Initialize a new project using templates
      cloud:domains       Get a list of all domains
      cloud:branch        Branch an environment
      cloud:environments  Get a list of environments
      cloud:push          Push code to an environment
      cloud:ssh           SSH to the current environment
      cloud:projects      Get a list of all active projects
      cloud:tunnel:open   Open SSH tunnels to an app's relationships
      cloud:user:add      Add a user to the project
      cloud:variables     List variables
    
    Show all commands with symfony help,
    Get help for a specific command with symfony help COMMAND.
    

    To get the project skeleton actually ready to use, I need to run symfony composer update.

    $ symfony composer update
    Loading composer repositories with package information
    Info from https://repo.packagist.org: #StandWithUkraine
    Restricting packages listed in "symfony/symfony" to "6.1.*"
    Updating dependencies
    Nothing to modify in lock file
    Installing dependencies from lock file (including require-dev)
    Nothing to install, update or remove
    Generating optimized autoload files
    26 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    
    Symfony operations: 4 recipes (61163691a741ba797e50394891eeeb98)
      - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:main
      - Configuring symfony/framework-bundle (>=5.4): From github.com/symfony/recipes:main
      - Configuring symfony/console (>=5.3): From github.com/symfony/recipes:main
      - Configuring symfony/routing (>=6.1): From github.com/symfony/recipes:main
    Executing script cache:clear [OK]
    Executing script assets:install public [OK]
    
     What's next?
    
    
    Some files have been created and/or updated to configure your new packages.
    Please review, edit and commit them: these files are yours.
    
     symfony/framework-bundle  instructions:
    
      * Run your application:
        1. Go to the project directory
        2. Create your code repository with the git init command
        3. Download the Symfony CLI at https://symfony.com/download to install a development web server
    
      * Read the documentation at https://symfony.com/doc
    

    And then I can see the skeleton ready to use:

    $ ls -lg
    total 208
    drwxr-xr-x  14 staff    448 Jul 28 20:33 .
    drwxr-xr-x   4 staff    128 Jul 28 20:29 ..
    -rw-r--r--   1 staff    952 Jul 28 20:33 .env
    drwxr-xr-x  13 staff    416 Jul 28 20:29 .git
    -rw-r--r--   1 staff    189 Jul 28 20:33 .gitignore
    drwxr-xr-x   3 staff     96 Jul 28 20:33 bin
    -rw-r--r--   1 staff   1727 Jul 28 20:33 composer.json
    -rw-r--r--   1 staff  86158 Jul 28 20:29 composer.lock
    drwxr-xr-x   8 staff    256 Jul 28 20:33 config
    drwxr-xr-x   3 staff     96 Jul 28 20:33 public
    drwxr-xr-x   4 staff    128 Jul 28 20:33 src
    -rw-r--r--   1 staff   1595 Jul 28 20:33 symfony.lock
    drwxrwxrwx   4 staff    128 Jul 28 20:33 var
    drwxr-xr-x   8 staff    256 Jul 28 20:29 vendor
    
    opened by tsantos84 6
  • Mac install says to update already-updated Mac

    Mac install says to update already-updated Mac

    I'm following the instructions in the macOS tab to install Symfony CLI using Homebrew: https://symfony.com/download

    brew install symfony-cli/tap/symfony-cli

    EDIT: Sorry, I accidentally submitted too soon; updating...

    However, this is giving me a strange error:

    ==> Installing symfony-cli from symfony-cli/tap
    Error: Your Command Line Tools are too outdated.
    Update them from Software Update in System Preferences or run:
      softwareupdate --all --install --force
    
    If that doesn't show you any updates, run:
      sudo rm -rf /Library/Developer/CommandLineTools
      sudo xcode-select --install
    

    So, my macOS is already updated to the latest Monterey; I know because I just updated it yesterday, and there's no new updates in the Apple button > System Preferences > Software Updates.

    So now I'm afraid to just run the suggested command line when it appears it's going to try to update macOS some way (which could have unpredictable consequences) when I've already done it through the Mac's pop-up suggestions...

    So now I'm wondering, is the error just trying to tell me that I need to update my XCode? If so, why is it suggesting I completely recursively permanently delete my CommandLineTools directory then reinstall from a suggested command? This is making me really concerned. Apple changes a lot of things each major update since Catalina, so maybe those commands won't do what this repo's maintainers think they will on Monterey...

    I think XCode was required to install git the recommended way... I'm not sure. XCode and git may have been pre-installed since I received the computer set up (at least partially) from my employer. Deleting the CommandLineTools directory seems like it would break a lot of things.

    So... is it the best idea to recommend these commands for this issue ("Your Command Line Tools are too outdated.")? Or are there better recommendations based on macOS version?

    I suppose I can check what version my XCode is at and how to update it the Apple-recommended way, but I'm scratching my head on Symfony CLI's output at the moment.

    opened by givihuda 6
  • Nix integration:

    Nix integration: "Unable to find Composer" even if present

    Hi

    I recently tried Replit, it is like GitHub Codespaces but with nix behind to handle packages. So I tried to install php, composer & symfony-cli with nix to create a new Symfony project, and I saw this:

    $ symfony-cli new foo
    * Creating a new Symfony project with Composer
      WARNING: Unable to find Composer, downloading one. It is recommended to install Composer yourself at https://getcomposer.org/download/
    ...
    
    
    $ # so I tried to understand why
    $ whereis composer
    composer: /nix/store/grm58racabmyxakvp1axlb4r6b8icvfj-php-composer-2.2.6/bin/composer
    
    
    $ echo $PATH | tr E':' '\n'
    ...
    /nix/store/6ni9a0gkfscic4bq8l376xza2zf874y9-php-with-extensions-8.1.3/bin
    /nix/store/grm58racabmyxakvp1axlb4r6b8icvfj-php-composer-2.2.6/bin
    /nix/store/x9ja3hf9plylx9rpaqy9wd2f5j60wy26-symfony-cli-5.3.4/bin
    ...
    
    
    $ cat /nix/store/grm58racabmyxakvp1axlb4r6b8icvfj-php-composer-2.2.6/bin/composer
    #! /nix/store/4nmqxajzaf60yjribkgvj5j54x9yvr1r-bash-5.1-p12/bin/bash -e
    PATH=${PATH:+':'$PATH':'}
    PATH=${PATH/':''/nix/store/64kd7qghqw3j0wqbss7shm3ad3awbsis-unzip-6.0/bin'':'/':'}
    PATH='/nix/store/64kd7qghqw3j0wqbss7shm3ad3awbsis-unzip-6.0/bin'$PATH
    PATH=${PATH#':'}
    PATH=${PATH%':'}
    export PATH
    exec "/nix/store/6ni9a0gkfscic4bq8l376xza2zf874y9-php-with-extensions-8.1.3/bin/php"  /nix/store/grm58racabmyxakvp1axlb4r6b8icvfj-php-composer-2.2.6/libexec/composer/composer.phar "[email protected]"
    

    The warning is triggered because we check if the composer file starts with this shebang: https://github.com/symfony-cli/symfony-cli/blob/54ff09da1ab7085262f0dfef7c97ea8d0ea76423/local/php/composer.go#L98-L111

    based on the comment on top of the function, should we do the opposite to fix this (checking if this is a bat file)?


    To reproduce: https://replit.com/@mykiwi/reproduce-symfony-cli-warning and hit "Run"

    opened by mykiwi 6
  • From the

    From the "The Fast Track" missing --docker flag

    The initializing-the-project page from The Fast Track book the command shown an error for a missing -docker flag

    https://symfony.com/doc/current/the-fast-track/en/3-zero.html#initializing-the-project symfony new guestbook --version=6.0 --php=8.1 --webapp --docker --cloud

    Incorrect usage: flag provided but not defined: -docker

    opened by ghost 6
  • Blackfire integration - Enable BLACKFIRE_AGENT_SOCKET support?

    Blackfire integration - Enable BLACKFIRE_AGENT_SOCKET support?

    I'm trying to get blackfire agent as a docker service instead of using my OS installed blackfire-agent.

    I installed the https://github.com/symfony/recipes/tree/master/blackfireio/blackfire-symfony-meta/1.0 recipe but PHP probe still want to connect to unix socket.

    According to https://blackfire.io/docs/php/configuration, I can use the BLACKFIRE_AGENT_SOCKET env var to configure the PHP probe.

    I looked into the code and found a reference to BLACKFIRE_AGENT_SOCKET env var: https://github.com/symfony-cli/symfony-cli/blob/48ca923fa3adc2e725788626f02501dff52ddc6a/envs/envs.go#L262-L266.

    Is it time to enable the integration using BLACKFIRE_AGENT_SOCKET env var?

    opened by fbourigault 5
  • mkdir /.symfony5: permission denied

    mkdir /.symfony5: permission denied

    Hi,

    I have this problem with Symfony CLI, do you have any idea?

    $ symfony -V
    Disabling update check: "mkdir /.symfony5: permission denied"
    Symfony CLI version 5.4.13 (c) 2017-2022 Symfony SAS #StandWithUkraine Support Ukraine (2022-08-16T08:17:04Z - stable)
    $ symfony new test
    Disabling update check: "mkdir /.symfony5: permission denied"
    * Creating a new Symfony project with Composer
      (running /usr/bin/composer create-project symfony/skeleton /app/test  --no-interaction)
    
    mkdir /.symfony5: permission denied
    
                                                                                                   
      unable to run /usr/bin/composer create-project symfony/skeleton /app/test  --no-interaction  
                                                                                                   
    $ /usr/bin/composer create-project symfony/skeleton /app/test  --no-interaction
    Creating a "symfony/skeleton" project at "./test"
    Info from https://repo.packagist.org: #StandWithUkraine
    Installing symfony/skeleton (v6.1.99)
      - Downloading symfony/skeleton (v6.1.99)
      - Installing symfony/skeleton (v6.1.99): Extracting archive
    [...](Everything works fine)
    
      * Read the documentation at https://symfony.com/doc
    $ 
    
    opened by roukmoute 0
  • Please specify user and group other than root

    Please specify user and group other than root

    | | Version | | ------------- | ------------- | | OS | ubuntu 22 jamy | | php | 7.4 | | php-fpm | php7.4-fpm | | nginx | 1.18.0 | | symfony cli | 5.4.13 | | symfony app | 5.4.12 |

    i got the error in the image below when running symfony server:start

    Screenshot 2022-09-15 at 12 23 35 AM

    Thing i tried

    • i tried to append -R to the ExecStart as it is mentioned here https://stackoverflow.com/a/26045162/5701752 but still getting the same error
    opened by aa-ahmed-aa 0
  • Symfony CLI doesn't find all the php versions on my system

    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 local:php:list to see the choices I have and it only shows Wamp64 and Xampp php that I don't want to use. I have many other versions inside C:/php/ folder and I would like to select one of them.

    Why Symfony CLI doesn't show them in the list ? And how to fix that ?

    For info, I work with a non-admin user account on my PC but I have another admin account for installing programs.

    php versions 2022-09-08 10_28_07-php

    opened by eved42 0
  • Make open:local command open local domain if defined

    Make open:local command open local domain if defined

    Hi,

    I think it would be great if running symfony open:local would open the project with the local domain if it is defined rather than the IP+port.

    WDYT?

    opened by jmsche 2
  • Unable to locate package symfony-cli

    Unable to locate package symfony-cli

    I'm trying to install the symfony-cli on a Raspberry Pi 3 running Raspbian.

    I ran the script: curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash

    sudp apt update shows me

    Get:5 https://dl.cloudsmith.io/public/symfony/stable/deb/raspbian bullseye InRelease [5,077 B]

    After that, I ran:

    sudo apt install symfony-cli
    
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    E: Unable to locate package symfony-cli
    

    I also tried to change the source to https://dl.cloudsmith.io/public/symfony/stable/deb/debian bullseye InRelease without success

    opened by bneumann97 0
  • Try to use external interface or hostname as default

    Try to use external interface or hostname as default

    Hello. I've been trying to use the proxy server not in a single box environment, where the projects run under a different environment, and the default setting for being "127.0.0.1" for everything produces errors like rejecting connections. I've just tried to start with --host=externalhostname (reachable from the host) and it works. That took me some time to find out, and I think that, at least, this case should be better documented. So, as solution, I think that if the proxy were trying to bind to an external interface other than the loopback, it could be better and work more "out of the box".

    opened by omgslinux 0
Releases(v5.4.13)
Owner
Symfony CLI
The official Symfony CLI
Symfony CLI
This tool is a CLI-interactive tool for TA who use eeclass platform

NTHU eeclass TA helper. This tool is a CLI-interactive tool for TA who use eeclass platform. It helps TA to download all the submitted homework, and use CSV to record the score and comment, and upload CSV score directly to the eeclass platform with just 2 Enter key!

Bo-Wei Chen 1 Dec 11, 2021
bcrypt-cli is the CLI tool for hashing passwords with bcrypt.

bcrypt-cli bcrypt-cli is the CLI tool for hashing passwords with bcrypt. Install go install github.com/ryicoh/bcrypt-cli Usage It can be used like bas

Ryuichiroh Ikeuchi 1 Sep 11, 2022
GTDF-CLI - The official CLI tool to operate with Getting Things Done Framework

This is the official CLI tool to operate with Getting Things Done Framework. How

akrck02 1 Feb 14, 2022
A CLI tool implemented by Golang to manage `CloudComb` resource

CloudComb CLI tool: comb Get Started comb is a CLI tool for manage resources in CloudComb base on cloudcomb-go-sdk. Support Mac, Linux and Windows. We

Bingo Huang 22 Jan 4, 2021
Got: Simple golang package and CLI tool to download large files faster 🏃 than cURL and Wget!

Got. Simple and fast concurrent downloader. Installation ❘ CLI Usage ❘ Module Usage ❘ License Comparison Comparison in cloud server: [[email protected]

Mohamed El Bahja 604 Sep 20, 2022
A golang CLI tool to download malware from a variety of sources.

mlget _____ _____ _____ _____ _____ /\ \

null 105 Sep 9, 2022
A CLI tool written in golang to track your orders.

orders-tracker-cli This project still under development. This project was inspired by track-correios. A CLI tool written in Go to track your orders. I

Cristóvão Olegário 6 Apr 19, 2022
A small CLI tool to compress and decompress files using Golang

Goflate A simple & small CLI tool to compress and decompress files using Golang Usage Install the binary to your local machine with the below command

Pedre Viljoen 0 May 27, 2022
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Dipto Chakrabarty 2 Jan 2, 2022
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
fofax is a fofa query tool written in go, positioned as a command-line tool and characterized by simplicity and speed.

fofaX 0x00 Introduction fofax is a fofa query tool written in go, positioned as

null 461 Sep 24, 2022
A small CLI tool to check connection from a local machine to a remote target in various protocols.

CHK chk is a small CLI tool to check connection from a local machine to a remote target in various protocols.

null 25 Mar 30, 2022
A CLI Tool to easily generate your Terraform configuration

Tf Tf is a command line tool to easily generate your Terraform configuration with an interactive prompt. Inspiration Boredom in Covid-19 Installation

Gowtham Munukutla 19 Jul 26, 2022
A powerful cli tool to implement gin annotation ⭐

gin-annotation A powerful cli tool to implement gin annotation Chinese Document Features Using code generating technology by operating golang AST Rout

Tang WenXuan 49 Mar 24, 2022
A CLI tool that generates OpenTelemetry Collector binaries based on a manifest.

OpenTelemetry Collector builder This program generates a custom OpenTelemetry Collector binary based on a given configuration. TL;DR $ go get github.c

OpenTelemetry - CNCF 52 Sep 14, 2022
PingMe is a CLI tool which provides the ability to send messages or alerts to multiple messaging platforms & email.

PingMe is a personal project to satisfy my needs of having alerts, most major platforms have integration to send alerts but its not always useful, either you are stuck with one particular platform, or you have to do alot of integrations. I needed a small app which i can just call from my backup scripts, cron jobs, CI/CD pipelines or from anywhere to send a message with particular information. And i can ship it everywhere with ease. Hence, the birth of PingMe.

Khaliq 553 Sep 23, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

Gruntwork 650 Sep 28, 2022
A CLI tool for leveraging IDP signing keys to impersonate users and groups

Imperson8 Disclaimer This is a security testing tool. Only use this on systems you have explicit authorization to test. This isn't an exploit and won'

null 17 Jul 23, 2022