IpfsUploader.Tool 1.1.0

dotnet tool install --global IpfsUploader.Tool --version 1.1.0                
此软件包包含一个 .NET 工具,您可以从 shell/命令行调用。
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local IpfsUploader.Tool --version 1.1.0                
此软件包包含一个 .NET 工具,您可以从 shell/命令行调用。
#tool dotnet:?package=IpfsUploader.Tool&version=1.1.0                
nuke :add-package IpfsUploader.Tool --version 1.1.0                

IPFS 上传工具

这是一个命令行工具,用于帮助将文件上传到 IPFS 节点。

安装

此软件包以 Dotnet Tool 部署。使用以下命令安装。

dotnet tool install --global ipfs_upload

用法

运行 ipfs_upload 并传递以下参数。

Options:
  --server_url <server_url> (REQUIRED)  The URL to the server running IPFS.
  --port <port> (REQUIRED)              The port of the IPFS node's API server.  Remember when setting up a node, this
                                        port should NEVER be exposed to the internet. [default: 5001]
  --output_xml_file <output_xml_file>   Where to output an file that contains the created hashes in XML format
  --file <file> (REQUIRED)              The file to upload to IPFS.  Globs are allowed.  Directories are not.
  --print_license                       Prints this program's license to stdout, and exits.  This takes priority over
                                        all other print options. [default: False]
  --print_readme                        Prints the readme file to stdout, and exits. This takes priority over the
                                        --print_credits option. [default: False]
  --print_credits                       Prints the third-party licenses to stdout, and exits. [default: False]
  --version                             Show version information
  -?, -h, --help                        Show help and usage information

请记住,您的 IPFS 节点的 "端口" 从不 应该暴露给公共互联网,因为它控制了 IPFS 节点。

output_xml_file 的格式如下所示

<?xml version="1.0" encoding="utf-8"?>
<Files>
  <File name="BD240401.jpg">
    <IpfsHash>QmV4nrqxNE5FZdbJRCBJimtjsJYwPThg8iAD9icQ2ARsgt</IpfsHash>
  </File>
  <File name="BD240402.jpg">
    <IpfsHash>QmYCMvUaUwvoPDBKAqHyxcFz72y9kALjECBC3JpnWLaBsQ</IpfsHash>
  </File>
</Files>
产品 兼容性和额外计算的目标框架版本。
.NET net8.0 兼容。 net8.0-android 已计算。 net8.0-browser 已计算。 net8.0-ios 已计算。 net8.0-maccatalyst 已计算。 net8.0-macos 已计算。 net8.0-tvos 已计算。 net8.0-windows 已计算。
兼容目标框架
包含目标框架(在软件包中)
了解有关 目标框架.NET 标准的 更多信息。

此软件包没有依赖项。

版本 下载 最后更新
1.1.0 71 8/9/2024
1.0.0 261 5/5/2024