1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00
supysonic/docs/man/supysonic-cli-folder.rst

83 lines
2.3 KiB
ReStructuredText
Raw Normal View History

2019-07-13 22:19:59 +00:00
supysonic-cli-folder
====================
SYNOPSIS
--------
supysonic-cli folder *--help*
supysonic-cli folder **list**
supysonic-cli folder **add** <*name*> <*path*>
2019-07-13 22:19:59 +00:00
supysonic-cli folder **delete** <*name*>
2019-07-13 22:19:59 +00:00
supysonic-cli folder **scan** [*--force*] [*--background* | *--foreground*] <*name*>
2019-07-13 22:19:59 +00:00
DESCRIPTION
-----------
2019-07-13 22:19:59 +00:00
The **supysonic-cli folder** subcommand manages your library folders, where the
audio files are located. This allows one to list, add, delete and scan the
folders.
2019-07-13 22:19:59 +00:00
ARGUMENTS
---------
2021-01-03 15:34:29 +00:00
**list**
List all the folders.
2021-01-03 15:34:29 +00:00
**add** <*name*> <*path*>
Add a new library folder called <*name*> and located at <*path*>. <*name*>
must be unique and <*path*> pointing to an existing directory. If
``supysonic-daemon`` is running it will start to listen for changes in this
folder but will not scan files already present in the folder.
2021-01-03 15:34:29 +00:00
**delete** <*name*>
Delete the folder called <*name*>.
2021-01-03 15:34:29 +00:00
**scan** [*--force*] [*--background* | *--foreground*] <*name*>
Scan the specified folders. If none is given, all the registered folders
are scanned.
2019-07-13 22:19:59 +00:00
OPTIONS
-------
2019-07-13 22:19:59 +00:00
**-h**, **--help**
Shows help and exits. Depending on where this option appears it will either
list the available commands or display help for a specific command.
**-f**, **--force**
Force scan of already known files even if they haven't changed. Might be
useful if an update to supysonic adds new metadata to audio files.
2021-01-03 15:34:29 +00:00
**--background**
Scan in the background. Requires the ``supysonic-daemon`` to be running.
2019-07-13 22:19:59 +00:00
**--foreground**
Scan in the foreground, blocking the process while the scan is running.
2019-07-13 22:19:59 +00:00
If neither **--background** nor **--foreground** is provided, supysonic-cli
will try to connect to the daemon to initiate a background scan, falling back
to a foreground scan if it isn't available.
2019-07-13 22:19:59 +00:00
EXAMPLES
--------
2019-07-13 22:19:59 +00:00
To add a new folder to your music library, you can do something like this::
2021-01-03 15:34:29 +00:00
$ supysonic-cli folder add MyLibrary /home/username/Music
2019-07-13 22:19:59 +00:00
Once you've added a folder, you will need to scan it::
2021-01-03 15:34:29 +00:00
$ supysonic-cli folder scan MyLibrary
The audio files residing in ``/home/username/Music`` will now appear under the
``MyLibrary`` folder on the clients.
2019-07-13 22:19:59 +00:00
SEE ALSO
--------
2019-07-13 22:19:59 +00:00
``supysonic-cli (1)``, ``supysonic-cli-user (1)``,
``supysonic-server (1)``, ``supysonic-daemon (1)``