The following flags work with any
|(Required) Application name.
|The directory containing the instances’ working directories.
The following flags work with any repair command except
|The directory where PID and socket files are stored.
|Launch in dry-run mode: show changes but do not apply them.
|Enable instance configuration reload after the patch.
The default data and run directories for
repair differ from those
used by other
cartridge-cli commands. This is because
intended for production use, while other commands are for local development.
repair also supports global flags.
What does repair actually do?
It patches cluster-wide instance configuration files that you have on your local machine.
Note that it’s not enough to apply the new configuration, the instance has to reload it.
repair was created for production use, it can still be applied in
local development. The command requires to specify
--name, the application name.
Also, remember that the default data directory is
the default run directory is
To specify other directories, use the
--run-dir options correspondingly
or provide the paths in the
In default mode,
repair walks through all cluster-wide configurations
<data-dir>/<app-name>.* directories, patching all the configuration
files it locates.
--dry-run flag specified, files won’t be patched,
and you will only see the computed configuration diff.
If different instances on the local machine use different configuration files,
repair raises an error.
To patch different configuration versions independently, use the
If your application uses
cartridge >= 2.0.0,
you can also run
repair with the
to reload configuration for all your instances
through the console sockets in the run directory.
Make sure that you have the correct run directory specified
when you use