{"_id":"@bnb-chain/gnfd-deploy","_rev":"8-6bf29696230d59c93164af495b704726","name":"@bnb-chain/gnfd-deploy","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@bnb-chain/gnfd-deploy","version":"1.0.0","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","_id":"@bnb-chain/gnfd-deploy@1.0.0","maintainers":[{"name":"robot-ux","email":"robot.ux@protonmail.com"}],"bin":{"gnfd":"dist/cli.js"},"dist":{"shasum":"da6551a7f16a76bd19790b3b8251b0835ee3bcf7","tarball":"https://registry.npmjs.org/@bnb-chain/gnfd-deploy/-/gnfd-deploy-1.0.0.tgz","fileCount":15,"integrity":"sha512-8LvIErrnWUYYioGsjyb3rXJsIL+DE6qpJJabidQhZJIoNs3CBC56+rhDW5Rox5SEXfU39w1ATtZpSh4aKWt3gA==","signatures":[{"sig":"MEUCIEycVNbmbbekXLjx8VK/cH4iMSdIBppxpMm8iotE/kOHAiEA5er/1jDGn8nCMjyIx9nIF0EBXN1gxHarXXF5gA6gUkU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54235},"main":"dist/index.js","gitHead":"26cd23e733131853555aea3ffd66a414607807bb","scripts":{"test":"tsc && node ./dist/cli.js","build":"tsc"},"_npmUser":{"name":"robot-ux","email":"robot.ux@protonmail.com"},"_npmVersion":"10.1.0","description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","directories":{},"_nodeVersion":"20.8.1","dependencies":{"mime-types":"^2.1.35","typescript":"^4.7.2","@bnb-chain/greenfield-js-sdk":"^1.0.6","@bnb-chain/greenfiled-file-handle":"^1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"chalk":"4.1.2","dotenv":"^16.3.1","loglevel":"^1.8.1","commander":"^11.1.0","@types/node":"^20.10.3","@types/mime-types":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gnfd-deploy_1.0.0_1702022878855_0.9091432243578648","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bnb-chain/gnfd-deploy","version":"1.0.1","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","_id":"@bnb-chain/gnfd-deploy@1.0.1","maintainers":[{"name":"robot-ux","email":"robot.ux@protonmail.com"}],"bin":{"gnfd":"dist/cli.js"},"dist":{"shasum":"ed527ffd8d97766fa2de6a41ac6223a209800f0c","tarball":"https://registry.npmjs.org/@bnb-chain/gnfd-deploy/-/gnfd-deploy-1.0.1.tgz","fileCount":15,"integrity":"sha512-DiDZSUg5QeSSYfKw3d8TRSg3I4vEMez3xZs6uhazavfrfxU7HU/y/tg0mx0f8VNRH/Ut4owKGgmyGoQgQcwSrQ==","signatures":[{"sig":"MEUCIA+Esy36G5x2yDYyaymwX4ioXHvG1ywZ1zjpXRZV8JnnAiEAmKk/CFFamfKD8s//dgtPnoRpwnnzFICqOphT73eAZ00=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54622},"main":"dist/index.js","gitHead":"838b47a5ef628dca2c6172aa0421a465b6bb76c1","scripts":{"test":"tsc && node ./dist/cli.js","build":"tsc"},"_npmUser":{"name":"robot-ux","email":"robot.ux@protonmail.com"},"_npmVersion":"10.1.0","description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","directories":{},"_nodeVersion":"20.8.1","dependencies":{"chalk":"4.1.2","dotenv":"^16.3.1","loglevel":"^1.8.1","commander":"^11.1.0","mime-types":"^2.1.35","@bnb-chain/greenfield-js-sdk":"^1.0.6","@bnb-chain/greenfiled-file-handle":"^1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.2","@types/node":"^20.10.3","@types/mime-types":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gnfd-deploy_1.0.1_1702025346763_0.28075767494791104","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bnb-chain/gnfd-deploy","version":"1.1.0","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","_id":"@bnb-chain/gnfd-deploy@1.1.0","maintainers":[{"name":"robot-ux","email":"robot.ux@protonmail.com"}],"bin":{"gnfd":"dist/cli.js"},"dist":{"shasum":"7646d51a716903471f0f8cde7543604e090a2180","tarball":"https://registry.npmjs.org/@bnb-chain/gnfd-deploy/-/gnfd-deploy-1.1.0.tgz","fileCount":17,"integrity":"sha512-dxhmzoY0RupnoxH7oNJIQh5mI8l0nt3DmXUNXBUOUgEIOUvLBH3A6CfAt9dRJpI9rLnuSFFY1NA2N+RkJVMLJw==","signatures":[{"sig":"MEYCIQC6vFNiPalnhAradgYuaBwYORL0o42Od8ts98vymy/1rQIhAKHYzUyfAP+PcfqvvbMxEW9JE5ik/49fJ0/8xx9us7/+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57042},"main":"dist/index.js","gitHead":"31cc1dc39a8baaea8d61ad97c7e8f25cfd51a1bd","scripts":{"test":"tsc && node ./dist/cli.js","build":"tsc"},"_npmUser":{"name":"robot-ux","email":"robot.ux@protonmail.com"},"_npmVersion":"10.1.0","description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","directories":{},"_nodeVersion":"20.8.1","dependencies":{"chalk":"4.1.2","dotenv":"^16.3.1","loglevel":"^1.8.1","commander":"^11.1.0","mime-types":"^2.1.35","@bnb-chain/greenfield-js-sdk":"^1.0.6","@bnb-chain/greenfiled-file-handle":"^1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.2","@types/node":"^20.10.3","@types/mime-types":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gnfd-deploy_1.1.0_1702029045040_0.8520433074813847","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@bnb-chain/gnfd-deploy","version":"1.2.0","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","_id":"@bnb-chain/gnfd-deploy@1.2.0","maintainers":[{"name":"robot-ux","email":"robot.ux@protonmail.com"}],"bin":{"gnfd":"dist/cli.js"},"dist":{"shasum":"743b765110e85cfa52762ee7df61180a7d7e6edd","tarball":"https://registry.npmjs.org/@bnb-chain/gnfd-deploy/-/gnfd-deploy-1.2.0.tgz","fileCount":17,"integrity":"sha512-Y5YAskJjUktb5tlVMuDVonLk8wITrS3M9hpjq6eNZtWZFe5Y0vZUwEnjtu0xtYJZ8HvdxDbF64Z6XH0qiZy6Lg==","signatures":[{"sig":"MEYCIQDa4lmS5CwvGHaEQ2BLKYdV4pFmBWW8zYF0F8aGL61sjgIhALJvVzpSRGoCcQALGaN1M+uwu3+hRr6e8JVJwOou93A9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58787},"main":"dist/index.js","gitHead":"0398d4914d7e63e0cd5e1be9da1c3c1f72a8ea6d","scripts":{"test":"tsc && node ./dist/cli.js","build":"tsc"},"_npmUser":{"name":"robot-ux","email":"robot.ux@protonmail.com"},"_npmVersion":"10.1.0","description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","directories":{},"_nodeVersion":"20.8.1","dependencies":{"chalk":"4.1.2","dotenv":"^16.3.1","loglevel":"^1.8.1","commander":"^11.1.0","mime-types":"^2.1.35","@bnb-chain/reed-solomon":"1.0.1-alpha.0","@bnb-chain/greenfield-js-sdk":"^1.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.2","@types/node":"^20.10.3","@types/mime-types":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gnfd-deploy_1.2.0_1702969455928_0.6254634916007378","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@bnb-chain/gnfd-deploy","version":"1.2.1","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","_id":"@bnb-chain/gnfd-deploy@1.2.1","maintainers":[{"name":"robot-ux","email":"robot.ux@protonmail.com"}],"bin":{"gnfd":"dist/cli.js"},"dist":{"shasum":"5e63067639f8429305420ca94d87113e29109ab7","tarball":"https://registry.npmjs.org/@bnb-chain/gnfd-deploy/-/gnfd-deploy-1.2.1.tgz","fileCount":17,"integrity":"sha512-KwQ5BBcwpxVt4GYfuN0AwS8LqWfCV6so7YPfA/jGDiDxfq5hmiVQZx/b6rM4CMRHMZWNo7HbxP8BiVDLSgFRZQ==","signatures":[{"sig":"MEUCIQDdpK9AC75efguLAKPL3VB4mkxfsUoij04Otxdyf7TuWwIgGYKUeU7yKHI1Gw91ygPzICnzGFlL2WlDrF3EVz6AvX4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58787},"main":"dist/index.js","gitHead":"2b954ee35146a597f3ca5105ce0b8b32848448af","scripts":{"test":"tsc && node ./dist/cli.js","build":"tsc"},"_npmUser":{"name":"robot-ux","email":"robot.ux@protonmail.com"},"_npmVersion":"10.1.0","description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","directories":{},"_nodeVersion":"20.8.1","dependencies":{"chalk":"4.1.2","dotenv":"^16.3.1","loglevel":"^1.8.1","commander":"^11.1.0","mime-types":"^2.1.35","@bnb-chain/reed-solomon":"1.0.1-alpha.0","@bnb-chain/greenfield-js-sdk":"^1.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.2","@types/node":"^20.10.3","@types/mime-types":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gnfd-deploy_1.2.1_1702981897895_0.09887780723982176","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-12-08T08:07:58.756Z","modified":"2026-01-07T06:47:10.522Z","1.0.0":"2023-12-08T08:07:59.078Z","1.0.1":"2023-12-08T08:49:06.935Z","1.1.0":"2023-12-08T09:50:45.301Z","1.2.0":"2023-12-19T07:04:16.115Z","1.2.1":"2023-12-19T10:31:38.069Z"},"author":{"name":"BNB Chain"},"license":"LGPL-3.0-only","keywords":["bnb","bsc","greenfield","upload","static-site-generator","deploy"],"description":"Zero-Config CLI to Deploy Static Websites to BNB Greenfield","maintainers":[{"email":"robot.ux@protonmail.com","name":"robotnpm"},{"email":"devin@nodereal.io","name":"devinxiang"},{"email":"aiden.c@nodereal.io","name":"aiden-cao"},{"email":"yolin@bnbchain.org","name":"robotbnb"}],"readme":"# Gnfd-Deploy\n\nGNFD Deploy is a command-line tool designed to simplify the process of uploading files or folders to the BNB Greenfield storage network. Whether you're managing assets, deploying resources, or sharing data, GNFD Deploy streamlines the file upload process, making it more convenient and efficient.\n\n## Installation\n\nYou can install GNFD Deploy globally using npm or yarn:\n\n```bash\n# npm\nnpm install @bnb-chain/gnfd-deploy -g\n# yarn\nyarn global add @bnb-chain/gnfd-deploy\n```\n\n## Usage\n\n```bash\n> gnfd -h\n\nUsage: gnfd-deploy [path] [options]\n\nZero-Config CLI to Deploy Static Websites to BNB Greenfield\n\nArguments:\n  path                   A local file or folder relative or absolute path.\n\nOptions:\n  -a, --addr [addr]      a Greenfield network address starting with '0x'\n  -k, --key [key]        private key for a Greenfield network account starting with '0x'.\n  -b, --bucket [bucket]  a bucket name similar to AWS S3\n  -d, --debug            use debug mode to see full error.\n  -m, --mainnet          upload file to Greenfield mainnet network.[testnet]\n  -V, --version          output the version number\n  -h, --help             display help for command\n```\n\n## Using Environment Variables (Optional)\n\nSet the following environment variables based on the information in the [env.example](./.env.example) file:\n\n```dotenv\nACCOUNT_ADDRESS=\"your wallet address\"\nACCOUNT_PRIVATE_KEY=\"your private key\"\nBUCKET_NAME=testcli1\n\n# optional, default is testnet. more infos: https://docs.bnbchain.org/greenfield-docs/docs/api/endpoints\nGREENFIELD_RPC_URL=https://gnfd-testnet-fullnode-tendermint-ap.bnbchain.org\nGREENFIELD_CHAIN_ID=5600\n```\n\n### Upload a file or folder\n\n```bash\n# if you have not set the env variables.\n> gnfd your-local-path --key=0xyourtestprivatekey --addr=0xyourtestaddress --bucket=testcli1\n\n[INFO]: Start upload file to https://gnfd-testnet-fullnode-tendermint-ap.bnbchain.org 5600\n[INFO]: Checking a bucketName for testcli1\n[INFO]: The bucketName testcli1 already exist. skipped\n[INFO]: Checking an object for test.txt\n[INFO]: Creating an object for test.txt\n[INFO]: Object created successfully: xxx\n[INFO]: Upload Info: {\n  address: '0xffffxxxxx',\n  bucketName: 'testcli1',\n  bucketTx: 'skipped',\n  endpoint: 'https://gnfd-testnet-sp3.nodereal.io',\n  primarySpAddress: '0x5FFf5A6c94b182fB965B40C7B9F30199b969eD2f'\n}\n[INFO]: File upload completed => baseUrl: https://gnfd-testnet-sp3.nodereal.io/view/testcli1/test.txt\n```\n\n## Contributing\n\nIf you want to contribute to GNFD Deploy or have suggestions, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the LGPL-3.0 License - see the [LICENSE.md](./LICENSE) file for details.\n\n## DISCLAIMER\n\nThe software and related documentation are under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty. We advise you to be careful and experiment on the network at your own risk. Stay safe out there.\n","readmeFilename":"README.md"}