cabal-cli:P2P聊天平台的终端客户端,支持多频道与节点互联

Terminal client for Cabal, the p2p chat platform.

分支16Tags128
文件最后提交记录最后更新时间
6 年前
6 年前
5 年前
6 年前
6 年前
6 年前
6 年前
5 年前
7 年前
3 年前
5 年前
6 年前
6 年前
3 年前
7 年前
2 年前
2 年前
6 年前
6 年前
5 年前
3 年前
6 年前

Cabal命令行界面

Cabal的终端客户端,一种点对点聊天平台。

有关底层数据库和API,请参阅cabal-core

与我们聊天: 使用命令 npx cabal cabal://cabal.chat

安装说明

$ npm install --global cabal
$ cabal --new

如果这一步失败,说明最新的节点版本尚未被该技术栈支持。请尝试以下操作:

安装 nvm,打开一个新的终端并运行。

$ nvm install 12
$ npm install --global cabal
$ cabal --new

使用方法

启动新实例:

cabal --new

然后复制密钥并将其交给其他人。

连接到现有实例:

cabal <key>

例如

cabal cabal://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82

记录自动加入的 Cabal

将 Cabal 保存至配置文件中

cabal --save <key>

然后,只需运行 cabal 命令,即可连接到您保存的所有 cabal。

cabal

显示已保存的 Cabals 请使用 --cabals 参数,而要移除一个已保存的 Cabal,请使用 --forget 参数。

cabal --cabals
cabal --forget <key|alias>

为键保存一个别名

为键创建一个本地名称。

cabal --alias <name> --key <key>
cabal <name>

扫描二维码加入小团体:

小团体(Cabal)可以使用连接到您计算机的摄像头读取二维码中的小团体密钥。 为了实现这一功能,您需要安装一个额外的系统依赖项:

  • Linux:sudo apt-get install fswebcam
  • MacOS:brew install imagesnap
# Hold up your QR code in front of the webcam and then run:
cabal --qr

无头模式

此模式将运行无用户界面的 cabal。您可以使用此模式在 cabal 中播种(例如,在 VPS 上),使其数据更具可用性:

cabal <key> --seed

自定义端口

如果您拥有一个配置严密的防火墙并且需要端口转发,Cabal 默认使用的端口是 13331。 您可以通过 --port 标志进行更改,或者在您的 .cabal.yml 配置文件中设置 preferredPort

cabal <key> --seed --port 7331

指令集

/add, /cabal
  add a cabal
/new
  create a new cabal
/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 cabal's channels
/panes
  set pane to navigate up and down in panes: channels, cabals
/join, /j
  join a new channel
/leave, /l
  leave a channel
/clear
  clear the current backscroll
/help
  display this help message
/qr
  generate a qr code with the current cabal's address
/quit, /exit
  exit the cabal 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/cabals panes
ctrl-{n,p}
  move up/down channels/cabals

快捷键

ctrl-l
    重新绘制屏幕

ctrl-u
    清除输入行

ctrl-w
    删除输入中的最后一个单词

上箭头
    在命令历史中循环

下箭头
    在命令历史中循环

home
    跳转到输入行的开始位置

end
    跳转到输入行的结束位置

ctrl-n
    跳转到下一个频道

ctrl-p
    跳转到上一个频道

ctrl-a
    跳转到下一个未读频道

pageup
    向上滚动历史记录

pagedown
    向下滚动历史记录

shift-pageup
    向上滚动昵称列表

shift-pagedown
    向下滚动昵称列表

alt-[1,9]
    选择频道 1-9

alt-n
    在派系和频道面板之间切换

alt-l
    切换 ID 后缀的显示与隐藏

配置

消息样式可以进行轻微调整
关于支持的选项,请查看.cabal.yml-example

项目介绍

Terminal client for Cabal, the p2p chat platform.

定制我的领域