getsocket-cli
v1.0.0
Published
p2p chat
Downloads
2
Maintainers
Readme
socket-cli
Terminal client for socket, the p2p chat platform.
See socket-core for the underlying database & api.
Installation
$ npm install --global socket
$ socket --key socket://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82
Usage
Start a new instance:
socket --new
Connect to an existing instance:
socket --key <key>
e.g.
socket --key socket://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82
Headless mode
This will run socket without a UI. You can use this to seed a socket (e.g. on a VPS) and make its data more available:
socket --key <key> --seed
Commands
/add, /socket
add a socket
/new
create a new socket
/nick, /n
change your display name
/emote, /me
write an old-school text emote
/names
display the names of the currently online peers
/channels
display the socket's channels
/panes
set pane to navigate up and down in panes: channels, sockets
/join, /j
join a new channel
/leave, /l
leave a channel
/clear
clear the current backscroll
/help
display this help message
/quit, /exit
exit the socket process
/topic, /motd
set the topic/description/message of the day for a channel
/whoami, /key
display your local user key
/whois
display the public keys associated with the passed in nick
alt-n
move between channels/sockets panes
ctrl+{n,p}
move up/down channels/sockets
Hotkeys
ctrl+u
clear input linectrl+w
delete last word in inputup-arrow
cycle through command historydown-arrow
cycle through command historyhome
go to start of input lineend
go to end of input linectrl+n
go to next channelctrl+p
go to previous channelpageup
scroll up through backlogpagedown
scroll down through backlogalt-[1,9]
select channels 1-9alt-n
tab between the sockets & channels panes