Neos Command Reference
The commands in this reference are shown with their full command identifiers. On your system you can use shorter identifiers, whose availability depends on the commands available in total (to avoid overlap the shortest possible identifier is determined during runtime).
To see the shortest possible identifiers on your system as well as further commands that may be available, use:
./flow help
The following reference was automatically generated from code on 2026-06-05
Package NEOS.FLOW
neos.flow:cache:collectgarbage
Cache Garbage Collection
Runs the Garbage Collection (collectGarbage) method on all registered caches.
Though the method is defined in the BackendInterface, the implementation can differ and might not remove any data, depending on possibilities of the backend.
Options
--cache-identifierIf set, this command only applies to the given cache
neos.flow:cache:flush
Flush all caches
The flush command flushes all caches (including code caches) which have been registered with Flow’s Cache Manager. It will NOT remove any session data, unless you specifically configure the session caches to not be persistent.
If fatal errors caused by a package prevent the compile time bootstrap from running, the removal of any temporary data can be forced by specifying the option –force.
Options
--forceForce flushing of any temporary data
neos.flow:cache:flushone
Flushes a particular cache by its identifier
Given a cache identifier, this flushes just that one cache. To find the cache identifiers, you can use the configuration:show command with the type set to “Caches”.
Note that this does not have a force-flush option since it’s not meant to remove temporary code data, resulting into a broken state if code files lack.
Arguments
--identifierCache identifier to flush cache for
Related commands
neos.flow:cache:flushFlush all caches
neos.flow:configuration:showShow the active configuration settings
neos.flow:cache:list
List all configured caches and their status if available
This command will exit with a code 1 if at least one cache status contains errors or warnings This allows the command to be easily integrated in CI setups (the –quiet flag can be used to reduce verbosity)
Options
--quietIf set, this command only outputs errors & warnings
Related commands
neos.flow:cache:showDisplay details of a cache including a detailed status if available
neos.flow:cache:setup
Setup the given Cache if possible
Invokes the setup() method on the configured CacheBackend (if it implements the WithSetupInterface) which should setup and validate the backend (i.e. create required database tables, directories, …)
Arguments
--cache-identifier
Related commands
neos.flow:cache:listList all configured caches and their status if available
neos.flow:cache:setupallSetup all Caches
neos.flow:cache:setupall
Setup all Caches
Invokes the setup() method on all configured CacheBackend that implement the WithSetupInterface interface which should setup and validate the backend (i.e. create required database tables, directories, …)
This command will exit with a code 1 if at least one cache setup failed This allows the command to be easily integrated in CI setups (the –quiet flag can be used to reduce verbosity)
Options
--quietIf set, this command only outputs errors & warnings
Related commands
neos.flow:cache:setupSetup the given Cache if possible
neos.flow:cache:show
Display details of a cache including a detailed status if available
Arguments
--cache-identifieridentifier of the cache (for example “Flow_Core”)
Related commands
neos.flow:cache:listList all configured caches and their status if available
neos.flow:cache:warmup
Warm up caches
The warm up caches command initializes and fills – as far as possible – all registered caches to get a snappier response on the first following request. Apart from caches, other parts of the application may hook into this command and execute tasks which take further steps for preparing the app for the big rush.
Related commands
neos.flow:cache:flushFlush all caches
neos.flow:configuration:generateschema
Generate a schema for the given configuration or YAML file.
./flow configuration:generateschema –type Settings –path Neos.Flow.persistence
The schema will be output to standard output.
Options
--typeConfiguration type to create a schema for
--pathpath to the subconfiguration separated by “.” like “Neos.Flow
--yamlYAML file to create a schema for
neos.flow:configuration:listtypes
List registered configuration types
neos.flow:configuration:show
Show the active configuration settings
The command shows the configuration of the current context as it is used by Flow itself. You can specify the configuration type and path if you want to show parts of the configuration.
Display all settings: ./flow configuration:show
Display Flow persistence settings: ./flow configuration:show –path Neos.Flow.persistence
Display Flow Object Cache configuration ./flow configuration:show –type Caches –path Flow_Object_Classes
Options
--typeConfiguration type to show, defaults to Settings
--pathpath to subconfiguration separated by “.” like “Neos.Flow
--depthTruncate the configuration at this depth and show ‘…’
neos.flow:configuration:validate
Validate the given configuration
Validate all configuration ./flow configuration:validate
Validate configuration at a certain subtype ./flow configuration:validate –type Settings –path Neos.Flow.persistence
You can retrieve the available configuration types with: ./flow configuration:listtypes
Options
--typeConfiguration type to validate
--pathpath to the subconfiguration separated by “.” like “Neos.Flow
--verboseif true, output more verbose information on the schema files which were used
neos.flow:core:migrate
Migrate source files as needed
This will apply pending code migrations defined in packages to the specified package.
For every migration that has been run, it will create a commit in the package. This allows for easy inspection, rollback and use of the fixed code. If the affected package contains local changes or is not part of a git repository, the migration will be skipped. With the –force flag this behavior can be changed, but changes will only be committed if the working copy was clean before applying the migration.
Arguments
--packageThe key of the package to migrate
Options
--statusShow the migration status, do not run migrations
--packages-pathIf set, use the given path as base when looking for packages
--versionIf set, execute only the migration with the given version (e.g. “20150119114100”)
--verboseIf set, notes and skipped migrations will be rendered
--forceBy default packages that are not under version control or contain local changes are skipped. With this flag set changes are applied anyways (changes are not committed if there are local changes though)
Related commands
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:core:setfilepermissions
Adjust file permissions for CLI and web server access
This command adjusts the file permissions of the whole Flow application to the given command line user and webserver user / group.
Arguments
--commandline-userUser name of the command line user, for example “john
--webserver-userUser name of the webserver, for example “www-data
--webserver-groupGroup name of the webserver, for example “www-data
neos.flow:database:setcharset
Convert the database schema to use the given character set and collation (defaults to utf8mb4 and utf8mb4_unicode_ci).
This command can be used to convert the database configured in the Flow settings to the utf8mb4 character set and the utf8mb4_unicode_ci collation (by default, a custom collation can be given). It will only work when using the pdo_mysql driver.
Make a backup before using it, to be on the safe side. If you want to inspect the statements used for conversion, you can use the $output parameter to write them into a file. This file can be used to do the conversion manually.
For background information on this, see:
The main purpose of this is to fix setups that were created with Flow before version 5.0. In those cases, the tables will have a collation that does not match the default collation of later Flow versions, potentially leading to problems when creating foreign key constraints (among others, potentially).
If you have special needs regarding the charset and collation, you can override the defaults with different ones.
Note: This command is not a general purpose conversion tool. It will specifically not fix cases of actual utf8 stored in latin1 columns. For this a conversion to BLOB followed by a conversion to the proper type, charset and collation is needed instead.
Options
--character-setCharacter set, defaults to utf8mb4
--collationCollation to use, defaults to utf8mb4_unicode_ci
--outputA file to write SQL to, instead of executing it
--verboseIf set, the statements will be shown as they are executed
neos.flow:doctrine:create
Create the database schema
Creates a new database schema based on the current mapping information.
It expects the database to be empty, if tables that are to be created already exist, this will lead to errors.
Options
--outputA file to write SQL to, instead of executing it
Related commands
neos.flow:doctrine:updateUpdate the database schema
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:dql
Run arbitrary DQL and display results
Any DQL queries passed after the parameters will be executed, the results will be output:
doctrine:dql –limit 10 ‘SELECT a FROM NeosFlowSecurityAccount a’
Options
--depthHow many levels deep the result should be dumped
--hydration-modeOne of: object, array, scalar, single-scalar, simpleobject
--offsetOffset the result by this number
--limitLimit the result to this number
neos.flow:doctrine:entitystatus
Show the current status of entities and mappings
Shows basic information about which entities exist and possibly if their mapping information contains errors or not.
To run a full validation, use the validate command.
Options
--dump-mapping-dataIf set, the mapping data will be output
--entity-class-nameIf given, the mapping data for just this class will be output
Related commands
neos.flow:doctrine:validateValidate the class/table mappings
neos.flow:doctrine:migrate
Migrate the database schema
Adjusts the database structure by applying the pending migrations provided by currently active packages.
Options
--versionThe version to migrate to. Can be either a version number (“20231211133500”), a full migration class name (“NeosFlowPersistenceDoctrineMigrationsVersion20231211133500”), “previous”, “next” or “latest” (default)
--outputA file to write SQL to, instead of executing it
--dry-runWhether to do a dry run or not
--quietIf set, only the executed migration versions will be output, one per line
--migration-folderProvide alternative platform folder name (as in “Mysql”), otherwise configured connection is used.
Related commands
neos.flow:doctrine:migrationstatusShow the current migration status
neos.flow:doctrine:migrationexecuteExecute a single migration
neos.flow:doctrine:migrationgenerateGenerate a new migration
neos.flow:doctrine:migrationversionMark/unmark migrations as migrated
neos.flow:doctrine:migrationexecute
Execute a single migration
Manually runs a single migration in the given direction.
Arguments
--versionThe migration to execute
Options
--directionWhether to execute the migration up (default) or down
--outputA file to write SQL to, instead of executing it
--dry-runWhether to do a dry run or not
--migration-folderProvide alternative platform folder name (as in “Mysql”), otherwise configured connection is used.
Related commands
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:migrationstatusShow the current migration status
neos.flow:doctrine:migrationgenerateGenerate a new migration
neos.flow:doctrine:migrationversionMark/unmark migrations as migrated
neos.flow:doctrine:migrationgenerate
Generate a new migration
If $diffAgainstCurrent is true (the default), it generates a migration file with the diff between current DB structure and the found mapping metadata.
Otherwise an empty migration skeleton is generated.
Only includes tables/sequences matching the $filterExpression regexp when diffing models and existing schema. Include delimiters in the expression! The use of
–filter-expression ‘/^acme_com/’
would only create a migration touching tables starting with “acme_com”.
Note: A filter-expression will overrule any filter configured through the Neos.Flow.persistence.doctrine.migrations.ignoredTables setting
Options
--diff-against-currentWhether to base the migration on the current schema structure
--filter-expressionOnly include tables/sequences matching the filter expression regexp
--forceGenerate migrations even if there are migrations left to execute
--migration-folderProvide alternative platform folder name (as in “Mysql”), otherwise configured connection is used.
Related commands
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:migrationstatusShow the current migration status
neos.flow:doctrine:migrationexecuteExecute a single migration
neos.flow:doctrine:migrationversionMark/unmark migrations as migrated
neos.flow:doctrine:migrationstatus
Show the current migration status
Displays the migration configuration as well as the number of available, executed and pending migrations.
Options
--show-migrationsOutput a list of all migrations and their status
--migration-folderProvide alternative platform folder name (as in “Mysql”), otherwise configured connection is used.
Related commands
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:migrationexecuteExecute a single migration
neos.flow:doctrine:migrationgenerateGenerate a new migration
neos.flow:doctrine:migrationversionMark/unmark migrations as migrated
neos.flow:doctrine:migrationversion
Mark/unmark migrations as migrated
If all is given as version, all available migrations are marked as requested.
Arguments
--versionThe migration to execute
Options
--addThe migration to mark as migrated
--deleteThe migration to mark as not migrated
--migration-folderProvide alternative platform folder name (as in “Mysql”), otherwise configured connection is used.
Related commands
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:migrationstatusShow the current migration status
neos.flow:doctrine:migrationexecuteExecute a single migration
neos.flow:doctrine:migrationgenerateGenerate a new migration
neos.flow:doctrine:update
Update the database schema
Updates the database schema without using existing migrations.
It will not drop foreign keys, sequences and tables, unless –unsafe-mode is set.
Options
--unsafe-modeIf set, foreign keys, sequences and tables can potentially be dropped.
--outputA file to write SQL to, instead of executing the update directly
Related commands
neos.flow:doctrine:createCreate the database schema
neos.flow:doctrine:migrateMigrate the database schema
neos.flow:doctrine:validate
Validate the class/table mappings
Checks if the current class model schema is valid. Any inconsistencies in the relations between models (for example caused by wrong or missing annotations) will be reported.
Note that this does not check the table structure in the database in any way.
Related commands
neos.flow:doctrine:entitystatusShow the current status of entities and mappings
neos.flow:help:help
Display help for a command
The help command displays help for a given command: ./flow help <commandIdentifier>
Options
--command-identifierIdentifier of a command for more details
neos.flow:middleware:list
Lists all configured middleware components in the order they will be executed
neos.flow:package:create
Create a new package
This command creates a new package which contains only the mandatory directories and files.
Arguments
--package-keyThe package key of the package to create
Options
--package-typeThe package type of the package to create
Related commands
neos.kickstarter:kickstart:packageKickstart a new package
neos.flow:package:list
List available packages
Lists all locally available packages. Displays the package key, version and package title.
Options
--loading-orderThe returned packages are ordered by their loading order.
neos.flow:package:rescan
Rescan package availability and recreates the PackageStates configuration.
neos.flow:resource:clean
Clean up resource registry
This command checks the resource registry (that is the database tables) for orphaned resource objects which don’t seem to have any corresponding data anymore (for example: the file in Data/Persistent/Resources has been deleted without removing the related PersistentResource object).
If the Neos.Media package is active, this command will also detect any assets referring to broken resources and will remove the respective Asset object from the database when the broken resource is removed.
This command will ask you interactively what to do before deleting anything.
neos.flow:resource:copy
Copy resources
This command copies all resources from one collection to another storage identified by name. The target storage must be empty and must not be identical to the current storage of the collection.
This command merely copies the binary data from one storage to another, it does not change the related PersistentResource objects in the database in any way. Since the PersistentResource objects in the database refer to a collection name, you can use this command for migrating from one storage to another my configuring the new storage with the name of the old storage collection after the resources have been copied.
Arguments
--source-collectionThe name of the collection you want to copy the assets from
--target-collectionThe name of the collection you want to copy the assets to
Options
--publishIf enabled, the target collection will be published after the resources have been copied
neos.flow:resource:publish
Publish resources
This command publishes the resources of the given or - if none was specified, all - resource collections to their respective configured publishing targets.
Options
--collectionIf specified, only resources of this collection are published. Example: ‘persistent’
--quietDon’t print the progress-bar
neos.flow:routing:list
List the known routes
This command displays a list of all currently registered routes.
neos.flow:routing:match
Match the given URI to a corresponding route
This command takes an incoming URI and displays the matched Route and the mapped routing values (if any):
./flow routing:match “/de” –parameters=”{"requestUriHost": "localhost"}”
Arguments
--uriThe incoming route, absolute or relative
Options
--methodThe HTTP method to simulate (default is ‘GET’)
--parametersRoute parameters as JSON string. Make sure to specify this option as described in the description in order to prevent parsing issues
neos.flow:routing:resolve
Build an URI for the given parameters
This command takes package, controller and action and displays the resolved URI and which route matched (if any):
./flow routing:resolve Some.Package –controller SomeController –additional-arguments=”{"some-argument": "some-value"}”
Arguments
--packagePackage key (according to “@package” route value)
Options
--controllerController name (according to “@controller” route value), default is ‘Standard’
--actionAction name (according to “@action” route value), default is ‘index’
--formatRequested Format name (according to “@format” route value), default is ‘html’
--subpackageSubPackage name (according to “@subpackage” route value)
--additional-argumentsAdditional route values as JSON string. Make sure to specify this option as described in the description in order to prevent parsing issues
--parametersRoute parameters as JSON string. Make sure to specify this option as described in the description in order to prevent parsing issues
--base-uriBase URI of the simulated request, default ist ‘http://localhost’
--force-absolute-uriWhether or not to force the creation of an absolute URI
neos.flow:routing:show
Show information for a route
This command displays the configuration of a route specified by index number.
Arguments
--indexThe index of the route as given by routing:list
neos.flow:schema:validate
Validate the given configurationfile againt a schema file
Options
--configuration-filepath to the validated configuration file
--schema-filepath to the schema file
--verboseif true, output more verbose information on the schema files which were used
neos.flow:security:describerole
Show details of a specified role
Arguments
--roleidentifier of the role to describe (for example “Neos.Flow:Everybody”)
neos.flow:security:generatekeypair
Generate a public/private key pair and add it to the RSAWalletService
Options
--used-for-passwordsIf the private key should be used for passwords
Related commands
neos.flow:security:importprivatekeyImport a private key
neos.flow:security:importprivatekey
Import a private key
Read a PEM formatted private key from stdin and import it into the RSAWalletService. The public key will be automatically extracted and stored together with the private key as a key pair.
You can generate the same fingerprint returned from this using these commands:
ssh-keygen -yf my-key.pem > my-key.pub ssh-keygen -lf my-key.pub
To create a private key to import using this method, you can use:
ssh-keygen -t rsa -f my-key ./flow security:importprivatekey < my-key
Again, the fingerprint can also be generated using:
ssh-keygen -lf my-key.pub
Options
--used-for-passwordsIf the private key should be used for passwords
Related commands
neos.flow:security:importpublickeyImport a public key
neos.flow:security:generatekeypairGenerate a public/private key pair and add it to the RSAWalletService
neos.flow:security:importpublickey
Import a public key
Read a PEM formatted public key from stdin and import it into the RSAWalletService.
Related commands
neos.flow:security:importprivatekeyImport a private key
neos.flow:security:listroles
List all configured roles
Options
--include-abstractSet this flag to include abstract roles
neos.flow:security:showeffectivepolicy
Shows a list of all defined privilege targets and the effective permissions
Arguments
--privilege-typeThe privilege type (“entity”, “method” or the FQN of a class implementing PrivilegeInterface)
Options
--rolesA comma separated list of role identifiers. Shows policy for an unauthenticated user when left empty.
neos.flow:security:showmethodsforprivilegetarget
Shows the methods represented by the given security privilege target
If the privilege target has parameters those can be specified separated by a colon for example “parameter1:value1” “parameter2:value2”. But be aware that this only works for parameters that have been specified in the policy
Arguments
--privilege-targetThe name of the privilegeTarget as stated in the policy
neos.flow:security:showunprotectedactions
Lists all public controller actions not covered by the active security policy
neos.flow:server:run
Run a standalone development server
Starts an embedded server, see http://php.net/manual/en/features.commandline.webserver.php Note: This requires PHP 5.4+
To change the context Flow will run in, you can set the FLOW_CONTEXT environment variable: export FLOW_CONTEXT=Development && ./flow server:run
Options
--hostThe host name or IP address for the server to listen on
--portThe server port to listen on
neos.flow:session:collectgarbage
Run garbage collection for sesions.
This command will remove session-data and -metadate of outdated sessions identified by lastActivityTimestamp being older than inactivityTimeout
!!! This is usually done automatically after shutdown for the percentage of requests specified in the setting Neos.Flow.session.garbageCollection.probability
Use this command if you need more direct control over the cleanup intervals.
neos.flow:session:destroyall
Destroys all sessions.
This special command is needed, because sessions are kept in persistent storage and are not flushed with other caches by default.
This is functionally equivalent to ./flow flow:cache:flushOne Flow_Session_Storage && ./flow flow:cache:flushOne Flow_Session_MetaData
neos.flow:signal:listconnected
Lists all connected signals with their slots.
Options
--class-nameif specified, only signals matching the given fully qualified class name will be shown. Note: escape namespace separators or wrap the value in quotes, e.g. “–class-name Neos\Flow\Core\Bootstrap”.
--method-nameif specified, only signals matching the given method name will be shown. This is only useful in conjunction with the “–class-name” option.
neos.flow:typeconverter:list
Lists all currently active and registered type converters
All active converters are listed with ordered by priority and grouped by source type first and target type second.
Options
--sourceFilter by source
--targetFilter by target type
Package NEOS.FLUIDADAPTOR
neos.fluidadaptor:documentation:generatexsd
Generate Fluid ViewHelper XSD Schema
Generates Schema documentation (XSD) for your ViewHelpers, preparing the file to be placed online and used by any XSD-aware editor. After creating the XSD file, reference it in your IDE and import the namespace in your Fluid template by adding the xmlns:* attribute(s): <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:f=”https://neos.io/ns/Neos/Neos/ViewHelpers” …>
Arguments
--php-namespaceNamespace of the Fluid ViewHelpers without leading backslash (for example ‘NeosFluidAdaptorViewHelpers’). NOTE: Quote and/or escape this argument as needed to avoid backslashes from being interpreted!
Options
--xsd-namespaceUnique target namespace used in the XSD schema (for example “http://yourdomain.org/ns/viewhelpers”). Defaults to “https://neos.io/ns/<php namespace>”.
--target-fileFile path and name of the generated XSD schema. If not specified the schema will be output to standard output.
--xsd-domainDomain used in the XSD schema (for example “http://yourdomain.org”). Defaults to “https://neos.io”.
Package NEOS.KICKSTARTER
neos.kickstarter:kickstart:actioncontroller
Kickstart a new action controller
Generates an Action Controller with the given name in the specified package. In its default mode it will create just the controller containing a sample indexAction.
By specifying the –generate-actions flag, this command will also create a set of actions. If no model or repository exists which matches the controller name (for example “CoffeeRepository” for “CoffeeController”), an error will be shown.
Likewise the command exits with an error if the specified package does not exist. By using the –generate-related flag, a missing package, model or repository can be created alongside, avoiding such an error.
By specifying the –generate-templates flag, this command will also create matching Fluid templates for the actions created. Alternatively, by specifying the –generate-fusion flag, this command will create matching Fusion files for the actions.
The default behavior is to not overwrite any existing code. This can be overridden by specifying the –force flag.
Arguments
--package-keyThe package key of the package for the new controller with an optional subpackage, (e.g. “MyCompany.MyPackage/Admin”).
--controller-nameThe name for the new controller. This may also be a comma separated list of controller names.
Options
--generate-actionsAlso generate index, show, new, create, edit, update and delete actions.
--generate-templatesAlso generate the templates for each action.
--generate-fusionIf Fusion templates should be generated instead of Fluid.
--generate-relatedAlso create the mentioned package, related model and repository if necessary.
--forceOverwrite any existing controller or template code. Regardless of this flag, the package, model and repository will never be overwritten.
Related commands
neos.kickstarter:kickstart:commandcontrollerKickstart a new command controller
neos.kickstarter:kickstart:commandcontroller
Kickstart a new command controller
Creates a new command controller with the given name in the specified package. The generated controller class already contains an example command.
Arguments
--package-keyThe package key of the package for the new controller
--controller-nameThe name for the new controller. This may also be a comma separated list of controller names.
Options
--forceOverwrite any existing controller.
Related commands
neos.kickstarter:kickstart:actioncontrollerKickstart a new action controller
neos.kickstarter:kickstart:documentation
Kickstart documentation
Generates a documentation skeleton for the given package.
Arguments
--package-keyThe package key of the package for the documentation
neos.kickstarter:kickstart:model
Kickstart a new domain model
This command generates a new domain model class. The fields are specified as a variable list of arguments with field name and type separated by a colon (for example “title:string” “size:int” “type:MyType”).
Arguments
--package-keyThe package key of the package for the domain model
--model-nameThe name of the new domain model class
Options
--forceOverwrite any existing model.
Related commands
neos.kickstarter:kickstart:repositoryKickstart a new domain repository
neos.kickstarter:kickstart:package
Kickstart a new package
Creates a new package and creates a standard Action Controller and a sample template for its Index Action.
For creating a new package without sample code use the package:create command.
Arguments
--package-keyThe package key, for example “MyCompany.MyPackageName
Options
--package-typeOptional package type, e.g. “neos-plugin
Related commands
neos.flow:package:createCreate a new package
neos.kickstarter:kickstart:repository
Kickstart a new domain repository
This command generates a new domain repository class for the given model name.
Arguments
--package-keyThe package key
--model-nameThe name of the domain model class
Options
--forceOverwrite any existing repository.
Related commands
neos.kickstarter:kickstart:modelKickstart a new domain model
neos.kickstarter:kickstart:translation
Kickstart translation
Generates the translation files for the given package.
Arguments
--package-keyThe package key of the package for the translation
--source-language-keyThe language key of the default language
Options
--target-language-keysComma separated language keys for the target translations
Package NEOS.MEDIA
neos.media:media:clearthumbnails
Remove thumbnails
Removes all thumbnail objects and their resources. Optional preset parameter to only remove thumbnails
matching a specific thumbnail preset configuration.
Options
--presetPreset name, if provided only thumbnails matching that preset are cleared
--quietIf set, only errors will be displayed.
neos.media:media:createthumbnails
Create thumbnails
Creates thumbnail images based on the configured thumbnail presets. Optional preset parameter to only create
thumbnails for a specific thumbnail preset configuration.
Additionally, accepts a async parameter determining if the created thumbnails are generated when created.
Options
--presetPreset name, if not provided thumbnails are created for all presets
--asyncAsynchronous generation, if not provided the setting
Neos.Media.asyncThumbnailsis used--quietIf set, only errors will be displayed.
neos.media:media:importresources
Import resources to asset management
This command detects Flow “PersistentResource”s which are not yet available as “Asset” objects and thus don’t appear in the asset management. The type of the imported asset is determined by the file extension provided by the PersistentResource.
Options
--simulateIf set, this command will only tell what it would do instead of doing it right away
--quiet
neos.media:media:listvariantpresets
List all configurations for your imageVariants.
Doesn’t matter if configured under ‘Neos.Media.variantPresets’ or already deleted from this configuration. This command will find every single one for you.
neos.media:media:removeunused
Remove unused assets
This command iterates over all existing assets, checks their usage count and lists the assets which are not reported as used by any AssetUsageStrategies. The unused assets can than be removed.
Options
--asset-sourceIf specified, only assets of this asset source are considered. For example “neos” or “my-asset-management-system
--quietIf set, only errors will be displayed.
--assume-yesIf set, “yes” is assumed for the “shall I remove …” dialogs
--only-tagsComma-separated list of asset tag labels, that should be taken into account
--limitLimit the result of unused assets displayed and removed for this run.
--only-collectionsComma-separated list of asset collection titles, that should be taken into account
neos.media:media:removevariants
Cleanup imageVariants with provided identifier and variant name.
Image variants that are still configured are removed without usage check and can be regenerated afterwards with media:renderVariants.
This command will not remove any custom cropped image variants.
Arguments
--identifierIdentifier of variants to remove.
--variant-nameVariants with this name will be removed (if exist).
Options
--quietIf set, only errors and questions will be displayed.
--assume-yesIf set, “yes” is assumed for the “shall I remove …” dialog.
--limitLimit the result of unused assets displayed and removed for this run.
neos.media:media:renderthumbnails
Render ungenerated thumbnails
Loops over ungenerated thumbnails and renders them. Optional limit parameter to limit the amount of
thumbnails to be rendered to avoid memory exhaustion.
Options
--limitLimit the amount of thumbnails to be rendered to avoid memory exhaustion
--quietIf set, only errors will be displayed.
neos.media:media:rendervariants
Render asset variants
Loops over missing configured asset variants and renders them. Optional limit parameter to
limit the amount of variants to be rendered to avoid memory exhaustion.
If the re-render parameter is given, any existing variants will be rendered again, too.
Options
--limitLimit the amount of variants to be rendered to avoid memory exhaustion
--quietIf set, only errors will be displayed.
--recreateIf set, existing asset variants will be re-generated and replaced
Package NEOS.NEOS
neos.neos:domain:activate
Activate a domain record by hostname (with globbing)
Arguments
--hostnameThe hostname to activate (globbing is supported)
neos.neos:domain:add
Add a domain record
Arguments
--site-node-nameThe nodeName of the site rootNode, e.g. “flowneosio
--hostnameThe hostname to match on, e.g. “flow.neos.io
Options
--schemeThe scheme for linking (http/https)
--portThe port for linking (0-49151)
neos.neos:domain:deactivate
Deactivate a domain record by hostname (with globbing)
Arguments
--hostnameThe hostname to deactivate (globbing is supported)
neos.neos:domain:delete
Delete a domain record by hostname (with globbing)
Arguments
--hostnameThe hostname to remove (globbing is supported)
neos.neos:domain:list
Display a list of available domain records
Options
--hostnameAn optional hostname to search for
neos.neos:site:activate
Activate a site (with globbing)
This command activates the specified site.
Arguments
--site-nodeThe node name of the sites to activate (globbing is supported)
neos.neos:site:create
Create a new site
This command allows to create a blank site with just a single empty document in the default dimension. The name of the site, the packageKey must be specified.
The node type given with the nodeType option must already exists
and have the superType Neos.Neos:Document.
If no nodeName option is specified the command will create a unique node-name from the name of the site.
If a node name is given it has to be unique for the setup.
If the flag activate is set to false new site will not be activated.
Arguments
--nameThe name of the site
--package-keyThe site package
--node-typeThe node type to use for the site node, e.g. Amce.Com:Page
Options
--node-nameThe name of the site node.
--inactiveThe new site is not activated immediately (default = false)
neos.neos:site:deactivate
Deactivate a site (with globbing)
This command deactivates the specified site.
Arguments
--site-nodeThe node name of the sites to deactivate (globbing is supported)
neos.neos:site:exportall
Export sites
This command exports all sites of the content repository.
If a path is specified, this command creates the directory if needed and exports into that.
If a package key is specified, this command exports to the private resources directory of the given package (Resources/Private/Content).
Options
--package-keyPackage key specifying the package containing the sites content
--pathrelative or absolute path and filename to the export files
--content-repositorycontentRepository
--verboseverbose
neos.neos:site:importall
Import sites
This command allows importing sites from the given path/package. The format must be identical to that produced by the exportAll command.
If a path is specified, this command expects the corresponding directory to contain the exported files
If a package key is specified, this command expects the export files to be located in the private resources directory of the given package (Resources/Private/Content).
Note that the live workspace has to be empty prior to importing.
Options
--package-keyPackage key specifying the package containing the sites content
--pathrelative or absolute path and filename to the export files
--content-repositorycontentRepository
--verboseverbose
neos.neos:site:list
List available sites
neos.neos:site:pruneall
This will completely prune the data of the specified content repository and remove all site-records.
Options
--content-repositoryPrune the cr without confirmation. This cannot be reverted!
--forceforce
--verboseverbose
neos.neos:user:activate
Activate a user (with globbing)
This command reactivates possibly expired accounts for the given user.
If an authentication provider is specified, this command will look for an account with the given username related to the given provider. Still, this command will activate all accounts of a user, once such a user has been found.
Arguments
--usernameThe username of the user to be activated (globbing is supported)
Options
--authentication-providerName of the authentication provider to use for finding the user.
neos.neos:user:addrole
Add a role to a user
This command allows for adding a specific role to an existing user.
Roles can optionally be specified as a comma separated list. For all roles provided by Neos, the role namespace “Neos.Neos:” can be omitted.
If an authentication provider was specified, the user will be determined by an account identified by “username” related to the given provider. However, once a user has been found, the new role will be added to all existing accounts related to that user, regardless of its authentication provider.
Arguments
--usernameThe username of the user (globbing is supported)
--roleRole to be added to the user, for example “Neos.Neos:Administrator” or just “Administrator
Options
--authentication-providerName of the authentication provider to use. Example: “Neos.Neos:Backend
neos.neos:user:create
Create a new user
This command creates a new user which has access to the backend user interface.
More specifically, this command will create a new user and a new account at the same time. The created account is, by default, a Neos backend account using the the “Neos.Neos:Backend” for authentication. The given username will be used as an account identifier for that new account.
If an authentication provider name is specified, the new account will be created for that provider instead.
Roles for the new user can optionally be specified as a comma separated list. For all roles provided by Neos, the role namespace “Neos.Neos:” can be omitted.
Arguments
--usernameThe username of the user to be created,
--passwordPassword of the user to be created
--first-nameFirst name of the user to be created
--last-nameLast name of the user to be created
Options
--rolesA comma separated list of roles to assign. Examples: “Editor, Acme.Foo:Reviewer
--authentication-providerName of the authentication provider to use for the new account.
neos.neos:user:deactivate
Deactivate a user (with globbing)
This command deactivates a user by flagging all of its accounts as expired.
If an authentication provider is specified, this command will look for an account with the given username related to the given provider. Still, this command will deactivate all accounts of a user, once such a user has been found.
Arguments
--usernameThe username of the user to be deactivated (globbing is supported)
Options
--authentication-providerName of the authentication provider to use for finding the user.
neos.neos:user:delete
Delete a user (with globbing)
This command deletes an existing Neos user. All content and data directly related to this user, including but not limited to draft workspace contents, will be removed as well.
All accounts owned by the given user will be deleted.
If an authentication provider is specified, this command will look for an account with the given username related to the given provider. Specifying an authentication provider does not mean that only the account for that provider is deleted! If a user was found by the combination of username and authentication provider, all related accounts will be deleted.
Arguments
--usernameThe username of the user to be removed (globbing is supported)
Options
--assume-yesAssume “yes” as the answer to the confirmation dialog
--authentication-providerName of the authentication provider to use. Example: “Neos.Neos:Backend
neos.neos:user:list
List all users
This command lists all existing Neos users.
neos.neos:user:removerole
Remove a role from a user
This command allows for removal of a specific role from an existing user.
If an authentication provider was specified, the user will be determined by an account identified by “username” related to the given provider. However, once a user has been found, the role will be removed from all existing accounts related to that user, regardless of its authentication provider.
Arguments
--usernameThe username of the user (globbing is supported)
--roleRole to be removed from the user,
Options
--authentication-providerName of the authentication provider to use. Example: “Neos.Neos:Backend
neos.neos:user:setpassword
Set a new password for the given user
This command sets a new password for an existing user. More specifically, all accounts related to the user which are based on a username / password token will receive the new password.
If an authentication provider was specified, the user will be determined by an account identified by “username” related to the given provider.
Arguments
--usernameUsername of the user to modify
--passwordThe new password
Options
--authentication-providerName of the authentication provider to use for finding the user.
neos.neos:user:show
Shows the given user
This command shows some basic details about the given user. If such a user does not exist, this command will exit with a non-zero status code.
The user will be retrieved by looking for a Neos backend account with the given identifier (ie. the username) and then retrieving the user which owns that account. If an authentication provider is specified, this command will look for an account identified by “username” for that specific provider.
Arguments
--usernameThe username of the user to show.
Options
--authentication-providerName of the authentication provider to use. Example: “Neos.Neos:Backend
neos.neos:workspace:assignrole
Assign a workspace role to the given user/user group
Without explicit workspace roles, only administrators can change the corresponding workspace. With this command, a user or group (represented by a Flow role identifier) can be granted one of the two roles: - viewer: Can read from the workspace - collaborator: Can read from and write to the workspace - manager: Can read from and write to the workspace and manage it (i.e. change metadata & role assignments)
Examples:
To grant editors read and write access to a (shared) workspace: ./flow workspace:assignrole some-workspace “Neos.Neos:AbstractEditor” collaborator
To grant a specific user read, write and manage access to a workspace: ./flow workspace:assignrole some-workspace admin manager –type user
{@see WorkspaceRole}
Arguments
--workspaceName of the workspace, for example “some-workspace
--subjectThe user/group that should be assigned. By default, this is expected to be a Flow role identifier (e.g. ‘Neos.Neos:AbstractEditor’) – if $type is ‘user’, this is the username (aka account identifier) of a Neos user
--roleRole to assign, either ‘viewer’, ‘collaborator’ or ‘manager’ – a viewer can only read from the workspace, a collaborator can read and write from/to the workspace. A manager can _on top_ change the workspace metadata & roles itself
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
--typeType of role, either ‘group’ (default) or ‘user’ – if ‘group’, $subject is expected to be a Flow role identifier, otherwise the username (aka account identifier) of a Neos user
neos.neos:workspace:createpersonal
Create a new personal workspace for the specified user
Arguments
--workspaceName of the workspace, for example “christmas-campaign
--ownerThe username (aka account identifier) of a User to own the workspace
Options
--base-workspaceName of the base workspace. If none is specified, “live” is assumed.
--titleHuman friendly title of the workspace, for example “Christmas Campaign
--descriptionA description explaining the purpose of the new workspace
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
neos.neos:workspace:createroot
Create a new root workspace for a content repository
NOTE: By default, only administrators can access workspaces without role assignments. Use workspace:assignrole to add workspace permissions
Arguments
--nameName of the new root
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
--titleOptional title of the workspace
--descriptionOptional description of the workspace
neos.neos:workspace:delete
Deletes a workspace
This command deletes a workspace. If you only want to empty a workspace and not delete the workspace itself, use workspace:discard instead.
Arguments
--workspaceName of the workspace, for example “christmas-campaign
Options
--forceDelete the workspace and all of its contents
--content-repositoryThe name of the content repository. (Default: ‘default’)
neos.neos:workspace:discard
Discard changes in workspace
This command discards all modified, created or deleted nodes in the specified workspace.
Arguments
--workspaceName of the workspace, for example “user-john
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
neos.neos:workspace:list
Display a list of existing workspaces
Options
--content-repositoryThe name of the content repository. (Default: ‘default’)
neos.neos:workspace:publish
Publish changes of a workspace
This command publishes all modified, created or deleted nodes in the specified workspace to its base workspace.
Arguments
--workspaceName of the workspace containing the changes to publish, for example “user-john
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
neos.neos:workspace:rebase
Rebase workspace on base workspace
This command rebases the given workspace on its base workspace, it may fail if the rebase is not possible.
Arguments
--workspaceName of the workspace, for example “user-john
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
--forceRebase all events that do not conflict
neos.neos:workspace:rebaseoutdated
Rebase all outdated content streams
Options
--content-repositoryThe name of the content repository. (Default: ‘default’)
--force
neos.neos:workspace:setdescription
Set/change the description of a workspace
Arguments
--workspaceName of the workspace, for example “some-workspace
--new-descriptionHuman friendly description of the workspace
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
neos.neos:workspace:settitle
Set/change the title of a workspace
Arguments
--workspaceName of the workspace, for example “some-workspace
--new-titleHuman friendly title of the workspace, for example “Some workspace
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
neos.neos:workspace:show
Display details for the specified workspace
Arguments
--workspaceName of the workspace to show
Options
--content-repositoryThe name of the content repository. (Default: ‘default’)
neos.neos:workspace:unassignrole
Unassign a workspace role from the given user/user group
Arguments
--workspaceName of the workspace, for example “some-workspace
--subjectThe user/group that should be unassigned. By default, this is expected to be a Flow role identifier (e.g. ‘Neos.Neos:AbstractEditor’) – if $type is ‘user’, this is the username (aka account identifier) of a Neos user
Options
--content-repositoryIdentifier of the content repository. (Default: ‘default’)
--typeType of role, either ‘group’ (default) or ‘user’ – if ‘group’, $subject is expected to be a Flow role identifier, otherwise the username (aka account identifier) of a Neos user
Package NEOS.NEOS.SETUP
neos.neos.setup:setup:imagehandler
Options
--driverdriver
Package NEOS.SETUP
neos.setup:setup:database
Configure the database connection for flow persistence
Options
--driverDriver
--hostHostname or IP
--dbnameDatabase name
--userUsername
--passwordPassword
neos.setup:setup:index
Show information about the system health
Package NEOS.SITEKICKSTARTER
neos.sitekickstarter:kickstart:site
Kickstart a new site package
This command generates a new site package with basic Fusion
Arguments
--package-keyThe packageKey for your site