LinuxCommandLibrary

symfony

Manage and develop Symfony applications

TLDR

Create a new Symfony project

$ symfony new [name]
copy

Run a local web server
$ symfony serve
copy

Stop the local web server
$ symfony server:stop
copy

Check for security issues in the project's dependencies
$ symfony security:check
copy

SYNOPSIS

symfony [options] [command]

PARAMETERS

--version
    Display this application version.

--ansi
    Force ANSI output.

--no-ansi
    Disable ANSI output.

--no-interaction
    Do not ask any interactive question.

--help (-h)
    Display help for the given command.

--quiet (-q)
    Do not output any message.

--verbose (-v|vv|vvv)
    Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

--env (-e)
    The Environment name. (default: "dev")

--no-debug
    Switches off debug mode.

DESCRIPTION

The Symfony CLI is a command-line tool designed to simplify the creation, development, and management of Symfony applications.
It provides a unified interface for common tasks such as creating new projects, serving applications locally, managing cloud deployments on SymfonyCloud, and integrating with other tools and services.
It also offers features like automatic configuration of environment variables, support for multiple PHP versions, and integration with debugging tools, making the development workflow more efficient. This CLI is widely used by Symfony developers to streamline their processes and improve productivity. It is particularly useful for developers working with SymfonyCloud as it facilitates deployments and other cloud-related tasks.

CAVEATS

The Symfony CLI requires a working internet connection for initial setup and for interacting with SymfonyCloud services. The CLI assumes that PHP is installed and configured correctly on the system.

COMMANDS

Common commands include: new (to create a new Symfony project), server:start (to start a local web server), cloud:deploy (to deploy to SymfonyCloud), and console (to execute Symfony console commands). Use `symfony list` to display all available commands.

ENVIRONMENT VARIABLES

The Symfony CLI automatically manages environment variables, setting them up based on the current environment and project configuration. This simplifies the process of configuring database connections, API keys, and other sensitive information.

HISTORY

The Symfony CLI was initially developed to streamline the development and deployment process for Symfony applications, especially within the SymfonyCloud environment. Over time, it has evolved from a simple wrapper around Symfony's built-in console commands to a comprehensive tool for managing the entire application lifecycle. Development continues with new features and integrations being added regularly. Its usage has grown alongside the adoption of the Symfony framework.

Copied to clipboard