piCorePlayer Command Line Interface (CLI)

pCP Team 23 July 2020 pCP 5.0.0

We have implemented a basic piCorePlayer Command Line Interface (CLI). These commands access some Squeezelite, LMS, piCore or piCorePlayer functions and can be used directly on the command line or used in scripts to enhance your system.

Basic piCorePlayer CLI

$ pcp help

=========================================================================================
Basic piCorePlayer CLI
-----------------------------------------------------------------------------------------
Squeezelite/LMS
---------------
- pcp play             : play current track in playlist
- pcp stop             : stop current track
- pcp pause            : pause current track
- pcp up               : volume up
- pcp down             : volume down
- pcp next             : next track
- pcp prev             : previous track
- pcp rand             : generate random track playlist
- pcp power [on|off]   : software power on or off
- pcp volume [0-100]   : set volume between 0 to 100
- pcp rescan           : look for new and changed media files in connected LMS library
- pcp wipecache        : clear connected LMS library and rescan
- pcp mode             : display Squeezelite's current mode
-----------------------------------------------------------------------------------------
piCore
------ 
- pcp bu               : (b)ack(u)p
- pcp sd               : (s)hut(d)own
- pcp bs               : (b)ackup then (s)hutdown
- pcp rb               : (r)e(b)oot
- pcp br               : (b)ackup then (r)eboot
-----------------------------------------------------------------------------------------
piCorePlayer
------------
- pcp d0               : debug off
- pcp d1               : debug on
-----------------------------------------------------------------------------------------

Example

[email protected]:~$ pcp bu
[ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz
Done.
[ OK ] Backup successful.
[email protected]:~$

More information

The Software is provided "as is" without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement.
Raspberry Pi is a trademark of the Raspberry Pi Foundation.