Welcome Zstake Service
0G Labs
Storage Client
Copy

The 0G Storage CLI acts as your gateway to interact directly with the 0G Storage network. It simplifies the process of uploading and downloading files, as well as managing other aspects of your decentralized storage experience.
- Install
1cd && rm -r 0g-storage-client && git clone -b v0.6.1 https://github.com/0glabs/0g-storage-client.git
- Update
1cd $HOME/0g-storage-client
2git submodule update --init
- Build
1go build
- Test File gen
1./0g-storage-client gen --file test1.txt --size 5000
- Upload
1./0g-storage-client upload \
2--url https://evmrpc-testnet.0g.ai \
3--key Your Privite key \
4--indexer https://indexer-storage-testnet-standard.0g.ai \
5--file test1.txt \
6--finality-required
1./0g-storage-client upload \
2--url https://evmrpc-testnet.0g.ai \
3--key Your Privite key \
4--indexer https://indexer-storage-testnet-turbo.0g.ai \
5--file test1.txt \
6--finality-required