Skip to main content
Version: v16.x - Umbraco 16

Available Commands

In this version we have plugged in the useful things you might need from the CommandLine.

Rebuild indexes, models or caches, or run uSync imports or exports.

uSync CommandLine: 16.0.0

Description:

Usage:
`uSync [command] [options]`

Options:
`--version Show version information`
`-?, -h, --help Show help and usage information`

Common Parameters

When you enter a command you need to provide the server url. This tells it which server to hit. To do this, enter -s and then your server address, for example:

usynccli usync-ping -s https://myServer.com

You then need to provide client credentials. Client credentials can be provided through the appsettings.json file or in the command-line itself. To enter client credentials in the command-line, enter -k and then your client secret. Following that, enter -i and then your client ID. For example:

usynccli usync-ping -s https://myServer.com -k Client_Secret -i Client_ID

Commands

CommandDescription
testTest command
user-currentFetch the user executing the commands
user-listList all users
cache-rebuildRebuild the cache on the server
cache-reloadReload the cache on the server
models-rebuildRebuild the models on the server
models-statusGet the status of the models on the server
indexer-rebuildRebuild the index on the server
indexer-listList the indexes on the server
healthcheck-listList the health checks on the server
healthcheck-group-listList the health check groups on the server
healthcheck-group-checkRun a health check on the server
usync-settingsList all settings
usync-importImport all items
usync-exportExport all items
usync-pingPing the Umbraco server until it responds

e.g running an import:

uSyncCli usync-import -s https://myserver.com/ --force