{"_id":"@4everland/cluster-cli","_rev":"6-7cabe4b136912b447878bfd06c3deca0","name":"@4everland/cluster-cli","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@4everland/cluster-cli","version":"0.1.0","keywords":["ipfs","ipfs-cluster","ipfs-cluster-upload","js-ipfs-cluster","js-ipfs-http-client"],"license":"MIT","_id":"@4everland/cluster-cli@0.1.0","maintainers":[{"name":"4ever-land","email":"sfng007@126.com"}],"homepage":"https://github.com/4everland/4ever-cluster-cli#readme","bugs":{"url":"https://github.com/4everland/4ever-cluster-cli/issues"},"bin":{"4ever-cluster":"bin/cli.js"},"dist":{"shasum":"fd7c57679ac309abfa7160df6a5bffee3755f043","tarball":"https://registry.npmjs.org/@4everland/cluster-cli/-/cluster-cli-0.1.0.tgz","fileCount":9,"integrity":"sha512-bKwEVLUj3OhZ8kKSyVHLFs+bl8ITRDA1pK+pMDEuXMdX/7s1qcBV5eZzLvSGy86pKuIQDNCwQ58FZ8hCIm8aDw==","signatures":[{"sig":"MEUCIC0VmHmJMFMsv1o2P6c8RcLc5S4oISW4fX9Fgjj5KYMHAiEAjDVwlKN54HKS1bAxLvon+0nPt18RUQRUtMHEiA+HYNg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6AHFCRA9TVsSAnZWagAAN60QAIrepeboPDPZ1wwyGN6p\nlzVKorcz3LyIQjxTI/DiSrx64jzN/cYlZQs7GEkpIKTk51qL56EXh5Xte3Xj\nSUOXJs3DqPsIIDXtaG7IMBf1tfo9+IpSWbHvWCTDG2B2q3nwo11ktffIH/e/\nZjnubFfuYoK4nKsTmwxnIVZsCbzawegphmpGuibHklvZfARF7H8uTHmUO2oB\nT3u1npaJJvt5yceg1DRh8Q/PkW2PaSmTieGJYqL+ZcJ6e4m40y3397gdtM0K\npFvEbbSUfXXnrbXS6+jcTWqMPfg9KJEIASsyhSEynXTZQCDLMNFH8/8zuZJN\nBTOabQN2vtceT9Claaw3F7TaYKwCRwc8OdWOSNuf+uP3+woVPWOprdiY73ke\nKGFbnEk68vlMQiCD5547nsv6NoUYUDsHc5aXU8wtXoFsWvohD55drbi41d5x\n7HCQ9X50aLnwB+/DMX6Wd5OBfoa+Vp+v0hSnq9x9WOxyfZAZ+BLDOLDKb9P/\n5+x/HsGsIa6QVUL7Go81cfvGf41DUTeLg684EuHV66K0w9dDaD40Z4gx9zZa\n5QkA3yNUjeADLfAwManG5FpSotGCpkUf5ukcnZbm28UoKIT+EjFvGkmKcOjX\nYeJ8wKuqUXZd6UwFJf4ZGoZyMwRAn6SnxxCgMO6NXOmeZui5sycoVEVM+Z1E\nuQUC\r\n=30b7\r\n-----END PGP SIGNATURE-----\r\n"},"babel":{"presets":["@babel/preset-env"]},"gitHead":"c8ee9976f9d776d2a86e00d7efd6a958c28b8b5b","scripts":{"postinstall":"scripts/post-install.js"},"_npmUser":{"name":"4ever-land","email":"sfng007@126.com"},"repository":{"url":"git+https://github.com/4everland/4ever-cluster-cli.git","type":"git"},"_npmVersion":"7.19.0","description":"command line tool for upload file or directory use the IPFS Cluster HTTP API.","directories":{},"_nodeVersion":"16.2.0","dependencies":{"glob":"^7.1.6","yaml":"^1.10.0","debug":"4.3.1","commander":"^4.1.1","is-stream":"^2.0.0","ipfs-cluster-api":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","gulp":"^4.0.2","babelify":"^10.0.0","babel-core":"^6.26.3","browserify":"^16.2.3","gulp-babel":"^8.0.0","@babel/core":"^7.4.4","gulp-rename":"^1.4.0","gulp-uglify":"^3.0.2","gulp-sourcemaps":"^2.6.5","babel-preset-env":"^1.7.0","@babel/preset-env":"^7.4.4"},"_npmOperationalInternal":{"tmp":"tmp/cluster-cli_0.1.0_1625817540717_0.4990457489636404","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-07-09T07:59:00.371Z","modified":"2025-02-25T07:05:47.012Z","0.1.0":"2021-07-09T07:59:00.845Z"},"bugs":{"url":"https://github.com/4everland/4ever-cluster-cli/issues"},"license":"MIT","homepage":"https://github.com/4everland/4ever-cluster-cli#readme","keywords":["ipfs","ipfs-cluster","ipfs-cluster-upload","js-ipfs-cluster","js-ipfs-http-client"],"repository":{"url":"git+https://github.com/4everland/4ever-cluster-cli.git","type":"git"},"description":"command line tool for upload file or directory use the IPFS Cluster HTTP API.","maintainers":[{"email":"indirasiebenenv79@gmail.com","name":"indirasieben"},{"email":"tfspq@protonmail.com","name":"4ever-land"},{"email":"2274822997@qq.com","name":"dinn"},{"email":"yepcing@gmail.com","name":"yipcing"},{"email":"409337645@qq.com","name":"hyongnim"},{"email":"a1504848701@outlook.com","name":"4everland_dev"}],"readme":"<h3 align=\"center\">A command line tool for upload file to IPFS Cluster use the IPFS Cluster HTTP API.</h3>\n\n[![NPM Version](https://img.shields.io/npm/v/@4everland/cluster-cli)](https://www.npmjs.org/package/@4everland/cluster-cli)\n[![Install Size](https://packagephobia.now.sh/badge?p=@4everland/cluster-cli)](https://packagephobia.now.sh/result?p=@4everland/cluster-cli)\n![License](https://img.shields.io/npm/l/@4everland/cluster-cli)\n\n\n## install\n\n```\nnpm install -g @4everland/cluster-cli\n```\n\n## Command\n\n```\nUsage: 4ever-cluster  [options] [command]\n\nOptions:\n  -V, --version         output the version number\n  -h, --help            output usage information\n\nCommands:\n  config <arg> [value]  set or show config for host\n  add [options] <file>  upload file\n```\n### **`add`**\n```\n$ 4ever-cluster  add --help\n\nUsage: 4ever-cluster  [options] <file>\n\nupload file\n\nOptions:\n  -V, --version        output the version number\n  -d, --debug          output extra debugging\n  -p, --path <path>    wrapper dir (default: \"/\")\n  --host <host>        ipfs cluster api host (default: \"\")\n  --port <port>        ipfs cluster api port (default: \"\")\n  --showAll            show all file cid\n  -t, --token <token>  ipfs cluster api base auth token (default: \"\")\n  -r, --recursive      recursive all sub dir\n  -a, --all            include hidden file\n  -h, --help           output usage information\n```\noutput data:\n```\n{\n  path: 'web',\n  hash: 'QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc',\n  size: 1042\n}\n```\nor use `--showAll`\n```\n[\n  {\n    path: 'web/index.html',\n    hash: 'QmQy6xmJhrcC5QLboAcGFcAE1tC8CrwDVkrHdEYJkLscrQ',\n    size: 430\n  },\n  {\n    path: 'web/main.css',\n    hash: 'QmU5k7ter3RdjZXu3sHghsga1UQtrztnQxmTL22nPnsu3g',\n    size: 6\n  },\n  {\n    path: 'web/main.js',\n    hash: 'QmYCvbfNbCwFR45HiNP45rwJgvatpiW38D961L5qAhUM5Y',\n    size: 6\n  },\n  {\n    path: 'web/sub.html',\n    hash: 'QmejvEPop4D7YUadeGqYWmZxHhLc4JBUCzJJHWMzdcMe2y',\n    size: 393\n  },\n  {\n    path: 'web',\n    hash: 'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB',\n    size: 1042\n  }\n]\n```\n\n`host`, `port`, `token` support load from config file, default config file is `~/.4ever-cluster/conf.yaml`, for example：\n```yaml\nhost: \"127.0.0.1\"\nport: 9094\ntoken: \"\"\n```\nThe env `_4EVER_CLUSTER_CONF` set custom config file path, for example:\n`export _4EVER_CLUSTER_CONF=/custom/path`, the config file is `/custom/path/conf.yaml`.\n\n### **`config`**\n```\n$ 4ever-cluster config --help\nUsage: 4ever-cluster config [options] <arg> [value]\n\nset or show config for host\n\nArguments:\n\n  arg         the params to set, maybe host、port or token\n  value       the value to set\n\nOptions:\n  -h, --help  output usage information\n```\nfor example, set host: `4ever-cluster  config host \"127.0.0.1\"`; get current host: `4ever-cluster  config host `\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}