Console commands 

All commands take the identifier of the new site as first argument, as in config/sites/<identifier>/config.yaml.

relaunch-redirects:import 

Imports the URLs of the old website and checks them against the new site.

vendor/bin/typo3 relaunch-redirects:import main https://www.example.org/sitemap.xml
vendor/bin/typo3 relaunch-redirects:import main search-console-pages.csv
cat urls.txt | vendor/bin/typo3 relaunch-redirects:import main -
Copied!

The source is the URL of a sitemap or URL list, a local file, or - for standard input.

Name Type
flag
flag
--replace
Type
flag

Removes the current list of the site before the import.

--no-check
Type
flag

Only imports the URLs. Check them later with relaunch-redirects:check.

relaunch-redirects:check 

Checks all imported URLs again and lists the ones that need a decision.

vendor/bin/typo3 relaunch-redirects:check main --fail-on-problems
Copied!
Name Type
flag
integer
--fail-on-problems
Type
flag

Exits with code 1 when an old URL is missing or ends in a broken redirect. Use it in a deployment pipeline after the go-live.

--limit
Type
integer
Default
50

Maximum number of problems listed in the output.

relaunch-redirects:create 

Creates redirects for missing URLs, and fixes broken redirects, whose best suggestion reaches a minimum score. The suggestions below the score are left for a person to decide in the backend module.

vendor/bin/typo3 relaunch-redirects:create main --dry-run
vendor/bin/typo3 relaunch-redirects:create main
Copied!
Name Type
integer
integer
string
flag
--min-score
Type
integer
Default
90

Only suggestions with at least this score are used. 100 means the same path, 90 means the page name exists only once on the new site.

--status-code
Type
integer
Default
301

HTTP status code of the new redirects: 301, 302, 303, 307 or 308.

--source-host
Type
string

Source host of the new redirects, * for all hosts. By default the host of the old URL is used, or * for paths without host.

--dry-run
Type
flag

Only lists the redirects that would be created.

relaunch-redirects:export 

Writes the checked list as CSV.

vendor/bin/typo3 relaunch-redirects:export main --filter=attention --output=old-urls.csv
Copied!
Name Type
string
string
string
--output
Type
string
Default
-

File to write, - for standard output.

--filter
Type
string
Default
all

Which URLs: attention (missing and broken), missing, broken, redirected, ok, unchecked, ignored or all.

--delimiter
Type
string
Default
,

Column delimiter, for example ; for Excel with German settings.