45445

# stdin to ipfs
> echo hello mars | ipfs-paste
http://gateway.ipfs.io/ipfs/QmZd56pN6zKvFrqp3ojRHHJQ2x2NWKTLmsEQbni37cDgvx/paste

# clipboard to ipfs
> echo hello mars | pbcopy
> pbpaste
hello mars
> ipfs-paste --paste
http://gateway.ipfs.io/ipfs/QmV3pQbmx9ziGt4r7i6wyJuSg7hovT6Znxo9PAEoo6M8qB/paste

# set a name to file
> head -c 1024 /dev/random | ipfs-paste rand-kb
http://gateway.ipfs.io/ipfs/QmctPRXHkmoQfZSKExNvcpPS7g1BQciarzWVM7QYdzS6eJ/rand-kb

# verbose
> cat ipfs-paste | ipfs-paste -v
stdin to ipfs... QmbSV3f1T5qbdfxfhSgrudRSv3YiJBxKFGthPAEDZVEhpj
constructing dir... QmYXNKmW7vyvpcTEtAUXGjJ8X9wmh1BgqmZLutFQYLhUev
copying url to clipboard... copied
http://gateway.ipfs.io/ipfs/QmYXNKmW7vyvpcTEtAUXGjJ8X9wmh1BgqmZLutFQYLhUev/paste
preloading on the gateways... ok

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source