Cointime

Download App
iOS & Android

NFT Teams: Free Yourself From Never-Ending IPFS Pinning Fees by Uploading Images to Arweave via the CLI Method

another lifetime, I was actually a marketing & business development director at a regional CPA firm. And prior to that, I was in marketing and business development at Deloitte. So, I’ve had a ton of marketing and sales training throughout my crazy-long career (I’m old — a GenXer through and through). Anyway, in that training, there’s a famous sales maxim that uses the mattress industry as an example: You aren’t selling mattresses, you’re selling sleep.

And, really, that is what Arweave, a decentralized data storage protocol, provides for the NFT space (and for other general permanent-storage-dependent business / industry niches, of course).

Yes, Arweave is a product / service. Yes, it’s a storage protocol. But those descriptions miss the mark because it’s the benefits of using Arweave that set it apart from the nonstop hassles of IPFS. IPFS is a mattress; Awreave is nice, peaceful sleep.

Okay, enough with the metaphors! Let’s get into some tech stuff. 

In the above, I was new to exploring the protocol, and I began by using the excellent GUI / web site, ArDrive. I still use ArDrive via the site/app, as it’s just a super interface and very intuitive. And, you know, even if you live life on the command line, it’s still nice to work visually on some things.

That all said, as I continued to explore Arweave, I realized that some specialized things I was doing called for a programmatic approach. And for that, ArDrive offers a CLI (here’s the github repo). It has various install options. For me, just a quick npm install & it was ready to go.

The github repo linked to above has super documentation that will cover most of the situations you’ll have when uploading. I thought I’d show some concrete examples of my own little process, just to show how easy it is to upload images. So, here’s my own process:

Prerequisites

You of course to have AR tokens in your Arweave wallet (how-to here), and you need to have the CLI installed in your IDE (see above).

1. Break your files into manageable chunks locally (in prep for uploading)

To be honest, I’m not 100% sure what the upload limits are. The repo mentions that that there is no theoretical limit on numbers of files (although you could be uploading thousands of really tiny files, so that’s understandable). But all in all, I seem to recall a 2–3 GB total size limit stated somewhere. I was definitely able to successfully upload MORE than the stated limit using the app, and I think the CLI allows even a bit more than the app does. (I’ll clarify this part later.) But anyway, for practical purposes, maybe limit your first few uploads to a few gigs, and go from there with pushing the limits. (Also, in fairness, it could depend on some outside factors. For instance, I have giga-bit service here, so I can upload at crazy high speeds, which might mean my limit differs from yours.)

2. Establish a folder into which you’ll put your NFT images.

While the CLI will let you easily do this, I actually like to just be on the ArDrive app for this part. You just click NEW and then “New Folder” and then name it. I’m in my “z_dog” drive here, and I’ve just made a folder called “test1”. When it’s done, I just click on it (and it highlights in pink — super handy) and then I click the info button (top center), and the right panel pops up where I can click the Folder ID icon to auto-copy that.

From there, I have a folder locally called “sample” into which I’ve popped 6 sample images for this article. So, to upload that, I simply need to go to a terminal and pop in the command:

ardrive upload-file --local-path /path/to/folder --parent-folder-id "FOLDERID" -w /path/to/wallet.json

Customize that with your folder ID (as copied above), paths to the upload folder, and wallet path, of course. But, upon running that, it soon returns a JSON wad of data related to what you just did there.

The top item is always a folder because I’m uploading a folder myself, and so that’s the ArDrive folder info for that local folder. (Did I say “folder” enough in that last sentence? lol). And below that is the data I sent and the various properties for each item.

BTW, if I wanted to fetch all of the individual file data as a nice clean JSON file, I could now run…

ardrive list-folder --parent-folder-id"e6be9dd8-e100-4a91-a822-c541076a87da"

… and I’d get a big JSON set of that whole folder:

That “dataTxID” is key for linking back out. We just preface it with https://arweave.net/ and, for example, the URL…

https://arweave.net/A4izFjirmqqs3Jhne1eYX0uwj5_dewAr4LZYLLECDvI

… indeed shows the dog I just uploaded:

(That’s a copy of an image from my Loopies NFT drop. Go grab one — the floor is currently just 48 cents! lol.)

Dealing with Latency

One important note here is that there’s a bit of latency in the system, in that Arweave needs some time to take in your upload and get it all situated. (“Situated” is a fine technical term, right?) The more you upload, the more time it needs (although, relatively speaking, it’s fairly quick). But, that’s why I wanted to show you the “list-folder” command — because you shouldn’t count on the immediate JSON response as being the final one.

The system needs a few minutes to fully process things. In fact, one thing that I’ve come to do as I upload is that I’ll do an upload (e.g., let’s say I’m uploading 1,000 NFT images), and then I’ll wait like five minutes and I’ll then run the “list folder” command. Then, I’ll save the JSON output of that to a file and programmatically iterate over that file to count the dataTxId instances. If my count matches the number of files that I uploaded, then it’s all finalized on Arweave. If the count comes up less than I expected, then it’s not done processing yet. (So I give it a few more minutes and then re-request the folder data via list-folder.)

And then, of course, once I know all 1,000 files are there, and have dataTxIds, I then simply iterate again over the final JSON file (from the list-folder command) and this time I save the dataTxIds into my database of NFT data. (Note that the JSON file includes the “name” field, which is the name of the file I’ve uploaded. So, that’s how I match up the dataTxIds to my NFT database when I do that update.)

Your own processes will vary, of course. Again, see the robust documentation for the ArDrive CLI tool! But the point is that there are many options for uploading files, both GUI and CLI, and they’re all easy, user-friendly, and intended to be permanent with no ongoing pinning fees, which means you’ll sleep better. 

https://medium.com/web-design-web-developer-magazine/nft-teams-free-yourself-from-never-ending-ipfs-pinning-fees-uploading-images-to-arweave-via-the-a94ca51e99f4

NFT
Comments

All Comments

Recommended for you

  • Yi Lihua: The market cycle remains valid, and we remain optimistic about the next bull market opportunity in the industry.

    Liquid Capital founder Yi Lihua stated in an article that first, he acknowledges that the market cycle is still valid. With the US stock market holding strong and the new phase of DAT/ETF, the consensus in the crypto circle has not been broken, coupled with the market being easily manipulated. But on the other hand, thinking in reverse, entering a bear market in the crypto space is also the best time to lay out plans, just like in the last cycle when we benefited from positioning during the bear market. The future is bright, still optimistic about the next bull market opportunity in the industry, will continue to work hard building, pessimists are correct, optimists win.

  • Trend Research sold another 20,770 ETH in the past 20 minutes, equivalent to approximately $43.57 million.

    according to Lookonchain monitoring, Trend Research sold another 20,770 ETH (approximately 43.57 million USD) in the past 20 minutes, currently holding only 10,303 ETH (approximately 21.5 million USD).

  • BTC breaks through $69,000

     market shows BTC breaking through $69,000, currently at $69,039, with a 24-hour increase of 3.96%. The market is highly volatile, please manage your risk accordingly.

  • The "BTC OG Insider Whale" deposited another 69.08 million USDT into a Binance deposit address associated with Yi Lihua.

    according to on-chain analyst Ai Yi (@ai_9684xtpa), the "BTC OG insider whale" has deposited 69.08 million USDT into a Binance deposit address associated with Yili Hua. In the past 11 hours, a total of 10,000 ETH and 69.08 million USDT have been transferred in, with a total value of 89.47 million USD.

  • BTC falls below $69,000

    the market shows BTC falling below $69,000, currently at $68,957.16, with a 24-hour increase of 5.84%. The market is highly volatile, please manage your risk accordingly.

  • ETH breaks $2,000

    the market shows ETH breaking through $2000, currently at $2000.7, with a 24-hour decline of 3.93%. The market is highly volatile, please manage your risk accordingly.

  • BTC breaks through $68,000

    the market shows BTC breaking through $68,000, currently at $68,000.01, with a 24-hour decline of 3.33%. The market is highly volatile, please manage your risk accordingly.

  • BTC breaks through $67,000

    the market shows BTC breaking through $67,000, currently at $67,006.7, with a 24-hour decline of 3.83%. The market is highly volatile, please manage risk accordingly.

  • COINMY Named Title Sponsor of “The Silent Rise” Summit in Hong Kong on February 9

    According to CoinTime, COINMY has been confirmed as the title sponsor of “The Silent Rise” summit, taking place in Hong Kong on February 9. COINMY (CMY) is a globally compliant digital asset exchange focused on bridging traditional payment systems with the crypto ecosystem, with an emphasis on transparency, security, and efficient global trading infrastructure. “The Silent Rise” is a themed summit co-hosted by RWAX, METASTONE, ChainTimes, and other ecosystem partners, with sponsorship support from CoinMy, Nexus Chain, and several more Web3 projects. The event will be held from 14:00 to 22:00 on February 9 at the 28th floor of Crowne Plaza Hong Kong Causeway Bay, and is positioned as one of the most anticipated side events during Consensus Hong Kong 2026. The summit will feature multiple roundtable discussions covering key themes such as AI, Real-World Assets (RWA), and next-generation financial systems. The summit brings more than 20 prominent speakers to explore emerging trends, system design, and the evolving architecture of Web3.

  • Cardano founder: Over $3 billion lost in the crypto space

    On February 6, Cardano founder Charles Hoskinson revealed in a live broadcast that despite losing more than 3 billion US dollars in the crypto field, he still chooses to stay in the industry rather than quit. In response to external comments that he can afford the losses because he is wealthy, he said: "If you think I am in this business for the money, you are completely wrong — even if I lose everything, I will not stop."