Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Update command reference #262

Merged
merged 2 commits into from
Aug 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 27 additions & 1 deletion Documentation/AdministratorManual/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,31 @@ This is the default location when downloading it from TER with the Extension Man

The extension will automatically be activated and the ``typo3cms`` script will also copied to your TYPO3 root directory.


.. _`TYPO3 distribution`: https://github.com/helhum/TYPO3-Distribution


Shell auto complete
-------------------

You can get shell auto completion either for bash or zsh shells.

1. Temporary auto complete
^^^^^^^^^^^^^^^^^^^^^^^^^^

To get temporary auto complete for the commands in the current TYPO3 installation directory,
type ``eval "$(bin/typo3cms autocomplete bash)"`` or ``eval "$(bin/typo3cms autocomplete zsh)"``
depending on the shell you are using.

2. Permanent auto complete
^^^^^^^^^^^^^^^^^^^^^^^^^^

Put the above command into your ``.profile`` file, or use any other technique to permanently
install the generated completion script in your environment.

.. note::

The ``typo3cms`` command may show commands that are specific to the current TYPO3 installation.
However the auto completion script that is generated is static. This means if you permanently install the script
generated for one TYPO3 installation, you may get unexpected results in another one.


86 changes: 68 additions & 18 deletions Documentation/CommandReference/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Command Reference
in the binary directory specified in the root composer.json (by default ``vendor/bin``)


The following reference was automatically generated from code on 2016-07-16 17:59:28
The following reference was automatically generated from code on 2016-08-01 10:56:27


.. _`Command Reference: typo3_console`:
Expand Down Expand Up @@ -121,7 +121,7 @@ Related commands
``cache:flush``
***************

**Flush all caches.**
**Flush all caches**

Flushes TYPO3 core caches first and after that, flushes caches from extensions.

Expand All @@ -142,7 +142,7 @@ Options
``cache:flushgroups``
*********************

**Flush all caches in specified groups.**
**Flush all caches in specified groups**

Flushes all caches in specified groups.
Valid group names are by default:
Expand Down Expand Up @@ -242,7 +242,7 @@ Options
``configuration:remove``
************************

**Remove configuration option.**
**Remove configuration option**

Removes a system configuration option by path.

Expand Down Expand Up @@ -274,7 +274,7 @@ Options
``configuration:set``
*********************

**Set configuration value.**
**Set configuration value**

Set system configuration option value by path.

Expand All @@ -299,7 +299,7 @@ Arguments
``configuration:show``
**********************

**Show configuration value.**
**Show configuration value**

Shows system configuration value by path.
If the currently active configuration differs from the value in LocalConfiguration.php
Expand All @@ -324,7 +324,7 @@ Arguments
``configuration:showactive``
****************************

**Show active configuration value.**
**Show active configuration value**

Shows active system configuration by path.
Shows the configuration value that is currently effective, no matter where and how it is set.
Expand All @@ -348,7 +348,7 @@ Arguments
``configuration:showlocal``
***************************

**Show local configuration value.**
**Show local configuration value**

Shows local configuration option value by path.
Shows the value which is stored in LocalConfiguration.php.
Expand All @@ -370,7 +370,7 @@ Related commands
^^^^^^^^^^^^^^^^

``configuration:show``
Show configuration value.
Show configuration value



Expand All @@ -379,7 +379,7 @@ Related commands
``database:export``
*******************

**Export database.**
**Export database to stdout**

Export the database (all tables) directly to stdout.
The mysqldump binary must be available in the path for this command to work.
Expand Down Expand Up @@ -512,7 +512,7 @@ Options
``extension:activate``
**********************

**Activate extension(s).**
**Activate extension(s)**

Activates one or more extensions by key.
Marks extensions as active, sets them up and clears caches for every activated extension.
Expand All @@ -534,7 +534,7 @@ Arguments
``extension:deactivate``
************************

**Deactivate extension(s).**
**Deactivate extension(s)**

Deactivates one or more extensions by key.
Marks extensions as inactive in the system and clears caches for every deactivated extension.
Expand All @@ -558,7 +558,7 @@ Arguments

**Dump class auto-load**

Updates class loading information.
Updates class loading information in non composer managed TYPO3 installations.

This command is only needed during development. The extension manager takes care
creating or updating this info properly during extension (de-)activation.
Expand Down Expand Up @@ -620,9 +620,9 @@ Related commands
``extension:setup``
Set up extension(s)
``install:generatepackagestates``
Generate PackageStates.php file.
Generate PackageStates.php file
``cache:flush``
Flush all caches.
Flush all caches



Expand All @@ -631,7 +631,7 @@ Related commands
``frontend:request``
********************

**Submit frontend request.**
**Submit frontend request**

Submits a frontend request to TYPO3 on the specified URL.

Expand All @@ -647,6 +647,55 @@ Arguments



.. _`Command Reference: typo3_console help`:

``help``
********

**Help**

Display help for a command

The help command displays help for a given command:
./typo3cms help <command identifier>



Options
^^^^^^^

``--command-identifier``
Identifier of a command for more details





.. _`Command Reference: typo3_console help:autocomplete`:

``help:autocomplete``
*********************

**Generate shell auto complete script**

Inspired by and copied code from https://github.com/bamarni/symfony-console-autocomplete
See https://github.com/bamarni/symfony-console-autocomplete/blob/master/README.md
for a description how to install the script in your system.



Options
^^^^^^^

``--shell``
"bash" or "zsh"
``--aliases``
Aliases for the typo3cms command





.. _`Command Reference: typo3_console install:fixfolderstructure`:

``install:fixfolderstructure``
Expand All @@ -669,7 +718,7 @@ This command is great e.g. for creating the typo3temp folder structure during de
``install:generatepackagestates``
*********************************

**Generate PackageStates.php file.**
**Generate PackageStates.php file**

Generates and writes ``typo3conf/PackageStates.php`` file.
Goal is to not have this file in version control, but generate it on ``composer install``.
Expand Down Expand Up @@ -701,8 +750,9 @@ Options
``install:setup``
*****************

**TYPO3 Setup. Use as command line replacement for the web installation process.**
**TYPO3 Setup**

Use as command line replacement for the web installation process.
Manually enter details on the command line or non interactive for automated setups.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CommandReferenceCommandController extends CommandController
'commandReferences' => [
'typo3_console' => [
'title' => 'Command Reference',
'extensionKeys' => ['typo3_console', 'extensionmanager'],
'extensionKeys' => ['typo3_console', 'extensionmanager', 'extbase'],
]
]
];
Expand Down