File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,15 @@ completion (by default, by pressing the Tab key).
106106 $ php vendor/bin/phpstan completion --help
107107 $ composer completion --help
108108
109+ .. tip ::
110+
111+ If you are using the :doc: `Symfony local web server
112+ </setup/symfony_server>`, it is recommended to use the built-in completion
113+ script that will ensure the right PHP version and configuration are used when
114+ running the Console Completion. Run ``symfony completion --help `` for the
115+ installation instructions for your shell. The Symfony CLI will provide
116+ completion for the ``console `` and ``composer `` commands.
117+
109118Creating a Command
110119------------------
111120
Original file line number Diff line number Diff line change @@ -17,6 +17,17 @@ Installation
1717The Symfony server is part of the ``symfony `` binary created when you
1818`install Symfony `_ and has support for Linux, macOS and Windows.
1919
20+ .. tip ::
21+
22+ The Symfony CLI supports auto completion for Bash, Zsh, or Fish shells. You
23+ have to install the completion script *once *. Run ``symfony completion
24+ --help `` for the installation instructions for your shell. After installing
25+ and restarting your terminal, you're all set to use completion (by default,
26+ by pressing the Tab key).
27+
28+ The Symfony CLI will also provide completion for the ``composer `` command
29+ and for the ``console `` command if it detects a Symfony project.
30+
2031.. note ::
2132
2233 You can view and contribute to the Symfony CLI source in the
You can’t perform that action at this time.
0 commit comments