Admin CLI
Administrative actions are done using the crossonic-admin command as there is currently no admin web UI.
First, ensure that you are in the directory of the docker-compose.yml file.
There are three ways to use crossonic-admin:
- Enter the Docker container, then execute commands:
sudo docker compose exec -it crossonic shcrossonic-admin ...- As a single command:
sudo docker compose exec -it crossonic crossonic-admin ...Both methods only work if the crossonic container is already running.
All of the following examples assume that you have entered the Docker container as described in 1.
User management
Section titled “User management”The users subcommand is used to manage users.
Create a new user
Section titled “Create a new user”To create a new user with their own credentials, playlists, scrobbles, favorites, … use the users create command:
# replace <name> with your desired usernamecrossonic-admin users create <name>You will be prompted for a password.
List all users
Section titled “List all users”To list all existing users use the users list command:
crossonic-admin users listChange user name
Section titled “Change user name”To change the name of a user, use the users update name command:
# replace <name> with the current name of the usercrossonic-admin users update name <name>The user will need to re-login to all their client apps.
Change user password
Section titled “Change user password”To change the password of a user, use the users update password command:
# replace <name> with the name of the usercrossonic-admin users update password <name>Create an API key
Section titled “Create an API key”To create an API key for a user, use the users api-keys create command:
# replace <name> with the name of the usercrossonic-admin users api-keys create <name>You’ll be prompted to enter a display name, which is used to later identify this API key.
List all API keys of user
Section titled “List all API keys of user”To list all existing API keys of a user, use the users api-keys list command:
# replace <name> with the name of the usercrossonic-admin users api-keys list <name>Delete an API key
Section titled “Delete an API key”To delete an API key, use the users api-keys delete command:
# replace <user> with the name of the user# and <key_name> with the display name of the API keycrossonic-admin users api-keys list <user> <key_name>Delete a user
Section titled “Delete a user”To delete a user and all of their playlists, scrobbles, favorites, … use the users delete command:
# replace <name> with the name of the user you want to deletecrossonic-admin users delete <name>The user will need to re-login to all their client apps.
Remove CROSSONIC_ID tags
Section titled “Remove CROSSONIC_ID tags”To remove the crossonic song ID tags from the metadata of your media files use the remove-crossonic-metadata subcommand.
# remove all song ID tags for the current instance from all files in your librarycrossonic-admin remove-crossonic-metadata current# remove all song ID tags for all crossonic-server instances from all files in your librarycrossonic-admin remove-crossonic-metadata all
# remove all song ID tags for the current instance from all files in the specified directorycrossonic-admin remove-crossonic-metadata current /path/to/media/dir# remove all song ID tags for all crossonic-server instances from all files in the specified directorycrossonic-admin remove-crossonic-metadata all /path/to/media/dirMiscellaneous
Section titled “Miscellaneous”Generate encryption key
Section titled “Generate encryption key”To generate a valid encryption key for the configuration use the gen-encryption-key subcommand.
This command works from anywhere and does NOT require a running crossonic container.
sudo docker run --rm -it --entrypoint crossonic-admin ghcr.io/juho05/crossonic-server gen-encryption-key