1. 首页
  2. 文档
  3. BTFS中文文档教程
  4. CLI 命令
  5. CLI

CLI

基本

CommandDescription
initInitialize a BTFS local configuration
add <path>Add a file to BTFS
cat <ref>Show BTFS object data
get <ref>Download BTFS objects
ls <ref>List links from an object
refs <ref>List hashes of links from an object

数据结构

CommandDescription
blockInteract with raw blocks in the datastore
objectInteract with raw dag nodes
filesInteract with objects as if they were a UNIX filesystem
dagInteract with dag objects

高级

CommandDescription
daemonStart a long-running daemon process
mountMount a BTFS read-only mountpoint
resolveResolve any type of name
namePublish and resolve BTNS names
keyCreate and list BTNS name keypairs
dnsResolve DNS links
pinPin objects to local storage
repoManipulate the BTFS repository
statsVarious operational stats
p2pLibp2p stream mounting
filestoreManage the filestore (experimental)

网络

CommandDescription
idShow info about BTFS peers
bootstrapAdd or remove bootstrap peers
swarmManage connections to the p2p network
dhtQuery the DHT for values or peers
pingMeasure the latency of a connection
diagPrint diagnostics

工具

CommandDescription
configManage configuration
versionShow BTFS version information
updateDownload and apply go-btfs updates
commandsList all available commands
cidConvert and discover the properties of CIDs
logManage and show logs of running daemon
标签 ,
这篇文章对你有帮助吗?

我们要如何帮助您?