@fabiofiorita /瓷(0.75.1)
用于普通Node安装的Porcelain审查服务器和捆绑的web应用程序。
快速启动
主机需要Node 24+、Git和其平台支持的文件监视器:
npx @fabiofiorita/porcelain@latest serve
# Permit other devices on the local network to connect:
npx @fabiofiorita/porcelain@latest serve --lan
# Install this exact CLI version as a user service (Linux):
npx @fabiofiorita/porcelain@latest service install
# Update the installed service to the newest published version:
porcelain service update
国家生活在 ~/.porcelain/;通过 --data-directory 把它放在某个地方
别的。使用 porcelain serve --help 对于所有选项。
在配对设备之前,没有任何东西可以到达服务器。关于机器运行
它, porcelain pair "Phone" --address <the address serve printed> 输出一个
链接,工作一次;在设备上打开它。地址必须是1
此服务器响应at,浏览器中的未配对屏幕显示
整个命令已经填好了那个设备的来源。 porcelain devices 列出配对的和
porcelain revoke <id> 结束它。编码代理通过MCP与
porcelain mcp,它不需要凭据:它只到达一个本地套接字
进程在这台机器上可以打开。
后台服务
porcelain service install|status|update|recover|uninstall 管理系统
Linux下的用户服务。方法之外持久化调用的包版本
NPX缓存和写入 porcelain 命令 ~/.local/bin 它运行;它
打印如何将该文件夹添加到 PATH 当它错过了,又独自留下了一个
porcelain 这是它没有写的。
porcelain service update 控件安装最新发布的版本
与设置→更新相同的更新程序,等待它完成并表示是否更新
已更新,已是当前或失败。 npx @fabiofiorita/porcelain@<version> service update 而是安装那个精确的版本。
porcelain share lan on 在本地网络上共享服务
porcelain share 显示了它是如何共享的。共享保存在数据中
目录,以便它在重新启动和更新中幸存下来。
更新会在新的运行时迁移之前停止服务并备份SQLite
它。旧的CLI拒绝替换新的运行时,除非
service update --allow-downgrade 是显式的。卸载将删除
服务,运行时和 porcelain 命令的同时保留数据;
配置、日志和数据库备份。以常规方式运行service命令
用户,不要使用sudo。
库开发
pnpm build:package
# Inspect the exact publishable archive:
cd dist-porcelain && npm pack
dist-porcelain/ 是从完成的web和服务器构建生成的。不
手工编辑。