File: command.rst

package info (click to toggle)
mopidy 3.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,608 kB
  • sloc: python: 16,656; sh: 159; makefile: 127
file content (125 lines) | stat: -rw-r--r-- 3,028 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.. _mopidy-cmd:

**************
mopidy command
**************

Synopsis
========

mopidy
    [-h] [--version] [-q] [-v] [--config CONFIG_FILES] [-o CONFIG_OVERRIDES]
    [COMMAND] ...


Description
===========

Mopidy is a music server which can play music both from multiple sources, like
your local hard drive, radio streams, and from Spotify and SoundCloud. Searches
combines results from all music sources, and you can mix tracks from all
sources in your play queue. Your playlists from Spotify or SoundCloud are also
available for use.

The ``mopidy`` command is used to start the server.


Options
=======

.. program:: mopidy

.. cmdoption:: --help, -h

    Show help message and exit.

.. cmdoption:: --version

    Show Mopidy's version number and exit.

.. cmdoption:: --quiet, -q

    Show less output: warning level and higher.

.. cmdoption:: --verbose, -v

    Show more output. Repeat up to four times for even more.

.. cmdoption:: --config <file|directory>

    Specify config files and directories to use. To use multiple config files
    or directories, separate them with a colon. The later files override the
    earlier ones if there's a conflict. When specifying a directory, all files
    ending in .conf in the directory are used.

.. cmdoption:: --option <option>, -o <option>

    Specify additional config values in the ``section/key=value`` format. Can
    be provided multiple times.


Built in commands
=================

.. cmdoption:: config

    Show the current effective config. All configuration sources are merged
    together to show the effective document. Secret values like passwords are
    masked out. Config for disabled extensions are not included.

.. cmdoption:: deps

    Show dependencies, their versions and installation location.


Extension commands
==================

Additionally, extensions can provide extra commands. Run `mopidy --help`
for a list of what is available on your system and command-specific help.
Commands for disabled extensions will be listed, but can not be run.


Files
=====

:file:`/etc/mopidy/mopidy.conf`
    System wide Mopidy configuration file.

:file:`~/.config/mopidy/mopidy.conf`
    Your personal Mopidy configuration file. Overrides any configs from the
    system wide configuration file.


Examples
========

To start the music server, run::

    mopidy

To start the server with an additional config file, that can override configs
set in the default config files, run::

    mopidy --config ./my-config.conf

To start the server and change a config value directly on the command line,
run::

    mopidy --option mpd/enabled=false

The :option:`--option` flag may be repeated multiple times to change multiple
configs::

    mopidy -o mpd/enabled=false -o spotify/bitrate=320

The ``mopidy config`` output shows the effect of the :option:`--option` flags::

    mopidy -o mpd/enabled=false -o spotify/bitrate=320 config


Reporting bugs
==============

Report bugs to Mopidy's issue tracker at
<https://github.com/mopidy/mopidy/issues>