Thin command-line interface for Raspberry Pi low level configuration.
npm install @treehouses/cli



@treehouses/cli is a command-line interface for Raspberry Pi that is used to manage various services and functions.
Including vnc, ssh, tor, vpn, networking, starting services, bluetooth, led lights, and much more!
Also treehouses remote uses this interface.
@treehouses/cli comes pre-installed on the treehouses image made with builder.
To manually install on a Pi:
``bash`
sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs
sudo npm i -g --unsafe-perm @treehouses/cli
If you run into any problems check if your RPi is supported here.
`
Usage: treehouses [command] ...
Commands:
help [command] gives you a more detailed info about the command or will output this
verbose
expandfs expands the partition of the RPI image to the maximum of the SD card
rename
password
sshkey
version [contributors|remote] returns the version of treehouses CLI, remote, or list of contributors
image returns version of the system image installed
detect [bluetooth|rpi|arm|arch|wifi] detects the hardware version of any device
ethernet
discover
wifi
wifihidden
tether enable usb0 interface tethering
staticwifi
wifistatus displays signal strength in dBm and layman nomenclature
bridge
[password] [hotspotPassword]
config [update|add|delete|clear] commands for interacting with config file
container
bluetooth [on|off|pause|restart|button] switches bluetooth from regular to hotspot mode and shows id or MAC address
[mac|id|status|log]
ap
aphidden
[password]
apchannel [channel] sets or prints the current ap channel
timezone
locale
ssh [on|off|fingerprint] enables or disables the ssh service,
[2fa]
vnc [on|off|info|auth|password] enables or disables the vnc server service
default [network|notice|tunnel] sets a raspbian back to default configuration
wificountry
upgrade [tag|check|bluetooth|force|cli] upgrades treehouses package using npm
sshtunnel [add|remove|list|active|check] helps adding sshtunnels
[key|refresh|notice|ports]
led [green|red] [mode] sets the led mode
[newyear|blackhistorymonth]
[lunarnewyear|valentine|carnival]
[lantern|stpatricks|easter|labourday]
[eid|dragonboat|independenceday|onam]
[diwali|thanksgiving|christmas]
[heavymetal|dance|kecak|sandstorm]
[random]
power [mode|current|freq|status] sets the power mode or check power mode/CPU frequency
uptime [boot|start|stop|log] displays uptime and boot time of the Raspberry Pi
rtc
ntp
networkmode outputs the current network mode
button
feedback
clone [detect|device path] clones the current SD Card onto a secondary SD Card or specified device
restore [device path] restores a treehouses image to an SD Card or specified device
burn [device path] download and burns the latest treehouses image to the SD card or specified device
rebootneeded shows if reboot is required to apply changes
reboots
internet [reverse] checks if the rpi has access to internet
services executes the given command on the specified service
[planet]
[kolibri]
[nextcloud]
[netdata]
[mastodon]
[moodle]
[pihole]
[privatebin]
[portainer]
[ntopng]
[couchdb]
[mariadb]
[mongodb]
[seafile]
[turtleblocksjs] TurtleBlocks is an activity with a Logo-inspired graphical "turtle" that draws colorful art
[musicblocks] MusicBlocks is a programming language for exploring musical concepts in an fun way
[minetest] Minetest is an open source infinite-world block sandbox game engine with survival and crafting
[invoiceninja] Invoiceninja is the leading self-host platform to create invoices
[librespeed] Librespeed is a very lightweight Speedtest implemented in Javascript
[grocy] Grocy is a web-based, self-hosted groceries and household management utility for your home
[dokuwiki] Dokuwiki is a simple to use and highly versatile Open Source wiki software
[bookstack] Bookstack is a free and open source Wiki designed for creating beautiful documentation
[transmission] Transmission is a BitTorrent client with many powerful features
[piwigo] Piwigo is a photo gallery software to publish and manage your collection of pictures
[cloud9] cloud9 is a complete web based ide with terminal access
[jellyfin] Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media
[pylon] Pylon is a web based integrated development environment built with Node.js as a backend
[rutorrent] Rutorrent is a popular rtorrent client with a webui for ease of use
[webssh] Webssh is a simple web application to be used as an ssh client to connect to your ssh servers
[sysmon] Sysmon is an intuitive system performance monitoring and task management tool for servers
[epaath] Epaath is an interactive educational activity
tor [list|ports|add|delete|deleteall] deals with services on tor hidden network
[start|stop|destroy|notice]
[status|refresh]
bootoption
openvpn [use|show|delete] helps setting up an openvpn client
[notice|start|stop|load]
shadowsocks [list|add|enable|start] manage shadowsocks, a socks5 proxy designed
[enter|disable|stop|remove] to "protect" your Internet traffic
coralenv [install|demo-on|demo-off] plays with the coral environmental board
[demo-always-on]
memory [total|used|free] [gb|mb] displays the total memory of the device, the memory used as well as the available free memory
storage [total|used|free] [gb|mb|kb] displays the total storage of the device, the storage used as well as the available free storage
temperature [celsius|fahrenheit|kelvin] displays raspberry pi's CPU temperature
speedtest tests internet download and upload speed
camera [on|off|detect|capture|record] enables and disables camera, detects camera module version, captures photo, records video
picture [file|url] displays a picture in the terminal
cron [list|add|delete|deleteall] adds, deletes a custom cron job or deletes, lists all cron jobs
[0W|tor|timestamp] adds premade cron job (or removes it if already active)
usb [on|off] turns usb ports on or off
redirect [add|list|remove|start] redirects internet hostnames to rpi
remote
log <0|1|2|3|4|show|max> gets/sets log level and shows log
blocker <0|1|2|3|4||max> website blocking levels using /etc/hosts
sdbench displays read and write speed of micro SD card
inspire [fact|joke|qotd|random] displays quote based on user input
convert
/modules/help.sh # help text
README.md # readme
_treehouses # tabcompletion
/modules/ # bash
/tests/ # bash bats tests
``