Skip to content

Commit 910ee05

Browse files
authored
Merge branch 'main' into feat/renaming-go-ipfs
2 parents b5fd8d3 + cf36387 commit 910ee05

File tree

11 files changed

+21467
-2085
lines changed

11 files changed

+21467
-2085
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Everyone has an opinion when it comes to docs, and **that's a good thing**! Havi
2727

2828
#### Pull requests welcome
2929

30-
Feel free to submit pull requests with any changes you'd like to see! If you're simply changing a typo or editing out a styling bug, you can add `ciskip` to the title of your pull request to stop Filecorgi from running.
30+
Feel free to submit pull requests with any changes you'd like to see! If you're simply changing a typo or editing out a styling bug, you can add `ciskip` to the title of your pull request to stop Filecorgi from running. Once merged, the website is updated automatically within 5-10 minutes.
3131

3232
## Project set up
3333

docs/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ module.exports = {
8686
path: '/basics/',
8787
children: [
8888
'basics/desktop-app',
89-
'basics/command-line'
89+
'basics/command-line',
90+
'basics/ipfs-implementations'
9091
]
9192
},
9293
{

docs/basics/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ Have an idea of what IPFS is but haven't really used it before? You should start
1717

1818
![An IPFS daemon running in a terminal window.](./images/ipfs-command-line.png)
1919

20-
If you're a bit more serious about IPFS and want to start poking around the command-line interfact (CLI), then this section is for you. No buttons or images here; [just good-old-fashioned CLI interfaces and pipeable commands →](./command-line.md)
20+
If you're a bit more serious about IPFS and want to start poking around the command-line interface (CLI), then this section is for you. No buttons or images here; [just good-old-fashioned CLI interfaces and pipeable commands →](./command-line.md)
21+
22+
## Other implementations
23+
24+
There are many other IPFS implementations than the onramps discussed above. [Check them out here!](./ipfs-implementations.md)

docs/basics/command-line.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
22
title: "Command-line"
3-
description: "A simple walkthrough of how to perform basic IPFS operations using the command-line."
3+
description: "A simple walkthrough of how to perform basic IPFS operations using the Kubo command-line."
44
---
55

66
# Basic CLI Operations
77

8-
This short guide aims to walk you through the basics of using IPFS with the CLI. You will learn how to add, retrieve, read, and remove files within the CLI. If you are unsure about the meaning of some terms, you can check out the [glossary](../concepts/glossary.md).
8+
This short guide aims to walk you through the basics of using IPFS with the Kubo CLI. Kubo is [one of multiple IPFS implementations](.ipfs-implementations.md). It is the oldest IPFS implementation and exposes a CLI (among other things).
9+
10+
You will learn how to add, retrieve, read, and remove files within the CLI. If you are unsure about the meaning of some terms, you can check out the [glossary](../concepts/glossary.md).
911

1012
All instructions and examples shown here were performed and tested on an M1 Mac. However, the IPFS commands are the same on Linux, macOS, and Windows. You will need to know how to navigate your computer's directories from within the CLI. If you're unsure how to use the CLI, we recommend learning how before continuing with this guide.
1113

12-
## Install IPFS
14+
## Install Kubo
1315

14-
Next up, we need to install IPFS for the command-line. We have a great guide that will walk you through how to [install IPFS with the CLI](../install/command-line.md).
16+
Next up, we need to install Kubo for the command-line. We have a great guide that will walk you through how to [install Kubo with the CLI](../install/command-line.md).
1517

16-
Once you have IPFS installed, we need to get our node up and running. If this is your first time using IPFS, you will first need to initialize the configuration files:
18+
Once you have Kubo installed, we need to get our node up and running. If this is your first time using Kubo, you will first need to initialize the configuration files:
1719

1820
```shell
1921
ipfs init
@@ -55,7 +57,7 @@ Do not close the CLI that you used to initialize your daemon. Only terminate the
5557

5658
## Add files
5759

58-
Now that we have our IPFS node up and running, we're ready to add files to IPFS.
60+
Now that we have our Kubo IPFS node up and running, we're ready to add files to IPFS.
5961

6062
1. Within the CLI, navigate to the directory containing the file or folder you wish to share. In this example, we will navigate to the `~/Documents` directory:
6163

docs/basics/desktop-app.md

Lines changed: 65 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Desktop app"
3-
description: "A simple walkthrough of the basic funtions of the IPFS desktop app."
3+
description: "A simple walkthrough of the basic functions of the IPFS desktop app."
44
---
55

66
# IPFS Desktop app basics
@@ -15,78 +15,98 @@ Some of these terms might be unfamiliar to you, and that's ok! Just check out th
1515

1616
Installation instructions for [macOS](../install/ipfs-desktop/#macos), [Ubuntu](../install/ipfs-desktop/#ubuntu), and [Windows](../install/ipfs-desktop/#windows).
1717

18-
The installation guides linked above are straightforward and easy to follow; simply follow the instructions that correspond to your operating system and you will have IPFS Desktop going in just a few minutes.
18+
The installation guides linked above are straightforward and easy to follow; simply follow the instructions that correspond to your operating system, and you will have IPFS Desktop going in just a few minutes.
1919

20-
## Add Local Files to IPFS
20+
## Add local files
2121

2222
Now that you have IPFS Desktop up and running, you can add the files that you wish to host on IPFS.
2323

24-
1. First, open IPFS Desktop and make sure you are connected to IPFS. Navigate to the status screen by clicking on the **Status** tab on the left side of the app. At the top of the status screen you will see that it says "Connected to IPFS".
25-
![Status and Connected](https://ipfs.io/ipfs/bafkreidfsaiakraedkl3u7zlxzjpjy3typhdqz24bam7vhietdcn7gzm3u "Status and Connected.png")
26-
1. Now that you know you are connected to IPFS, navigate to the files screen. To do this, simply click on the **files** tab on the left side of the app.
27-
1. On the files screen, you will see a button that says **+Import**, click on that and then select either **File** or **Folder**. If you are uploading just a single file to IPFS, select the **File** option. If you are uploading a folder containing multiple files, select the **Folder** option. Selecting either option will bring up a file selection window.
28-
![Files Tab and Import Button](https://ipfs.io/ipfs/bafkreib766pjfowf3z66yz2culsqjb7pe26s5kw45y7euubfv7txwyau74 "Files Import.png")
24+
1. First, open IPFS Desktop and make sure you are connected to IPFS.
25+
1. Navigate to the status screen by clicking on the **Status** tab on the left side of the app. At the top of the status screen, you will see that it says _Connected to IPFS_:
26+
27+
![Status and Connected](https://ipfs.io/ipfs/bafkreidfsaiakraedkl3u7zlxzjpjy3typhdqz24bam7vhietdcn7gzm3u "Status and Connected.png")
28+
29+
1. Now that you know you are connected to IPFS, navigate to the files screen by clicking the **Files** tab.
30+
1. Click the **Import** button and select either **File** or **Folder**.
31+
32+
![Files Tab and Import Button](https://ipfs.io/ipfs/bafkreib766pjfowf3z66yz2culsqjb7pe26s5kw45y7euubfv7txwyau74 "Files Import.png")
33+
2934
1. In the file selection window, navigate to the file or folder that you wish to upload and host on IPFS. Once you have found the file or folder, simply double-click on it.
3035
1. Your file has now been imported to your local IPFS node!
3136

32-
When files are imported to your IPFS node, they are automatically given a content identifier (CID). The CID for each file is listed directly under the file name on the **Files** page.
37+
When files are imported to your IPFS node, the content identifier (CID) of that file is _calculated_. The CID for each file is listed directly under the file name on the **Files** page.
38+
39+
## Share files
40+
41+
Sharing a file over IPFS is simple. All you have to do is find the file you wish to share, copy the CID of that file, and then send that CID to the person you wish to share it with. They can then use the [Download](#download) instructions to grab the file using IPFS.
42+
43+
1. First, navigate to the **Files** tab.
44+
1. Find the file that you wish to share.
45+
1. Click the three dots next to your file and select **Copy CID**. This copies the CID of that file to your clipboard.
46+
47+
![Copy Desired CID](https://ipfs.io/ipfs/bafkreig6g5k5tu5k6vgwvwstzn6lzppjtoxzdzczb4fthrcfngetoz4klm "CopyCID.png")
48+
49+
1. Send the CID to your friend. They can use the [Download](#download) instruction to retrieve the file.
50+
51+
You can also select the **Share link** option from the dropdown menu. This copies your file's CID along with a gateway URL. You can share this special gateway link with anyone, even if they don't have IPFS Desktop installed! [Check out the Gateway section to learn more about how they work](../concepts/ipfs-gateway.md).
3352

34-
## Share Files using IPFS
53+
## Download
3554

36-
Sharing a file over IPFS is simple. All you have to do is find the file you wish to share, copy the CID of that file, and send the CID to the person you wish to share it with.
55+
Importing and downloading a remote file to your local storage using IPFS is an easy task with IPFS Desktop. These simple steps will walk you through the process:
3756

38-
1. First, navigate to the files page by clicking on the **Files** tab.
39-
1. Now find the file that you wish to share, for this example I will be sharing a plaintext file.
40-
1. Once you have found the desired file, click the 3 dots that correspond to that file.
41-
1. In the dropdown menu, click **Copy CID**, the CID is now copied to your clipboard.
42-
![Copy Desired CID](https://ipfs.io/ipfs/bafkreig6g5k5tu5k6vgwvwstzn6lzppjtoxzdzczb4fthrcfngetoz4klm "CopyCID.png")
43-
1. Paste the CID that you just copied into a message and send it to the person you wish to have the file.
57+
1. Get the CID of the file or directory that you want to download. If you don't already have one, you can use our example:
4458

45-
## Import and Download
59+
```plaintext
60+
bafkreig6g5k5tu5k6vgwvwstzn6lzppjtoxzdzczb4fthrcfngetoz4klm
61+
```
4662
47-
Importing and downloading a remote file to your local storage using IPFS is an easy task with IPFS Desktop, these simple steps will walk you through the process.
63+
1. In the IPFS Desktop app, go to the **Files** tab and click **Import**.
64+
1. In the dropdown menu that appears, select **From IPFS**, and a new window will appear.
65+
1. Paste the CID into the **Path or CID** field. You can also name this particular file/folder.
66+
1. Click **Import**. The file metadata will be automatically retrieved over IPFS, and it will now appear in the list of files with the name you have chosen.
4867
49-
1. First, you will need the CID of the file or directory that you wish to import and download. The CID needs to be shared with you, either by the owner of the file or by a peer who has previously imported the file to their IPFS node.
50-
1. In IPFS Desktop, navigate to the files screen.
51-
1. In the files screen, there will be a large button that says **+Import**, click on that.
52-
1. In the dropdown menu that appears, select **From IPFS**, a new window will appear.
53-
1. In this new "Import from IPFS" window, paste the desired CID into the "Path or CID (required)" field. A couple of example CIDs are given for you to try it out. If you wish to give the file a specific name, there is also an optional field to do that.
54-
1. Once you have the desired CID and name filled out, click **import**. The file metadata will be automatically retrieved over IPFS and it will now appear in the list of files with the name you have chosen.
55-
![Import from IPFS](https://ipfs.io/ipfs/bafkreihzdmqtouxjkdn6wrxlvx64dzxkvdnu4rwpveed5plvyon2zogx5y "Import from IPFS.png")
56-
You now have a pointer to the file on your local IPFS node, but it is important to know that this does not mean it is saved to your computer's local storage. This type of import is called lazy-loaded, meaning the actual data is fetched on-demand. If you wish to download and save a copy of the file directly to your computer's storage, the following steps will walk you through the process.
68+
![Import from IPFS](https://ipfs.io/ipfs/bafkreihzdmqtouxjkdn6wrxlvx64dzxkvdnu4rwpveed5plvyon2zogx5y "Import from IPFS.png")
69+
70+
You now have a pointer to the file on your local IPFS node, but it is important to know that this does not mean it is saved to your computer's local storage. This type of import is called _lazy-loading_, meaning the actual data is fetched on-demand. If you wish to download and save a copy of the file directly to your computer's storage, the following steps will walk you through the process.
71+
72+
1. Click on the three dots that correspond to the file that you wish to download and save. In the dropdown menu that appears, select **Download**.
73+
74+
![Download the file](https://ipfs.io/ipfs/bafkreid4wkkwreywwdj2qqjnho56kodskmhi4e7tpzzvjpu3hn4o5eaxk4 "Download File.png")
5775
58-
1. Click on the 3 dots that correspond to the file that you wish to download and save. In the dropdown menu that appears, select **Download**.
59-
![Download the file](https://ipfs.io/ipfs/bafkreid4wkkwreywwdj2qqjnho56kodskmhi4e7tpzzvjpu3hn4o5eaxk4 "Download File.png")
6076
1. A new window will appear asking you to choose a name for the file and to select a save destination for the file.
61-
1. Once you have decided on the name and destination, click the **Save** button.
77+
1. Once you have decided on the name and destination, click **Save**.
6278
63-
You now have a copy of the file saved to your computer's local storage, you can access this file at any time, no IPFS connection needed!
79+
You now have a copy of the file saved to your computer's local storage. You can access this file at any time; no IPFS connection is needed!
6480
65-
## Remove Files From Your IPFS Node
81+
## Remove files
6682
6783
Now that you know how to import files using IPFS Desktop, you may want to know how to remove them as well.
6884
69-
:::tip
70-
Removing a file from your local IPFS node will not necessarily remove the file from the IPFS network. If your file has been shared and imported by other peers on IPFS, they will continue to have access to the file and will continue hosting it for others to import and download.
71-
:::
85+
Removing a file from your local IPFS node will not necessarily remove the file from the IPFS network. If your file has been downloaded by other peers on the IPFS network, they may continue hosting it for others to import and download. Just like uploading a file to a regular web server, there is no way to _guarantee_ that there are no copies of a file on the network.
7286
7387
1. In IPFS Desktop, navigate to the **Files** tab.
74-
1. Click on the 3 dots next to the file that you wish to remove.
75-
1. Click **Remove** in the dropdown menu, a confirmation window will appear.
76-
![Remove](https://ipfs.io/ipfs/bafkreihqa4a5nhldieme2h66fbpnp52zihk7oqne5ble377qcqxppn4l6y "Remove.png")
77-
1. In the confirmation window, ensure you have the "Also remove local pin" box checked (only present if the file is pinned). Confirm the removal by clicking the **Remove** button.
78-
![Confirm Removal](https://ipfs.io/ipfs/bafkreibkhgbhkgooue2h23qb4qxljbcco2gpoi4fz42coaxq5yeqgp6rry "ConfirmRemove.png")
88+
1. Click on the three dots next to the file that you wish to remove.
89+
1. Click **Remove** in the dropdown menu, and a confirmation window will appear:
90+
91+
![Remove](https://ipfs.io/ipfs/bafkreihqa4a5nhldieme2h66fbpnp52zihk7oqne5ble377qcqxppn4l6y "Remove.png")
7992
80-
No further action is required to remove the file from your IPFS node, the garbage collector that is built into IPFS Desktop automatically runs every hour by default. If you wish to run the garbage collector manually to remove the file, follow the steps below.
93+
1. In the confirmation window, ensure you have the **Also remove local pin** box checked. This option is only present if the file is pinned.
94+
1. Confirm the removal by clicking the **Remove** button:
95+
96+
![Confirm Removal](https://ipfs.io/ipfs/bafkreibkhgbhkgooue2h23qb4qxljbcco2gpoi4fz42coaxq5yeqgp6rry "ConfirmRemove.png")
97+
98+
No further action is required to remove the file from your IPFS node. The garbage collector (GC) that is built into IPFS Desktop automatically runs every hour by default. The GC will remove any files marked for deletion. However, if you wish to run the garbage collector manually to remove the file, follow these steps:
8199
82100
:::warning
83101
Before running the garbage collection, ensure any items you wish to keep are either pinned or saved to your computer locally. Garbage collection will remove all items that are not pinned or saved locally.
84102
:::
85103
86-
1. Find the small IPFS logo. On macOS it is in the top right of the screen on the Menu Bar, on Windows it is in the bottom right of the screen in the System Tray.
87-
1. Click on the IPFS logo and a dropdown menu will appear.
104+
1. Find the IPFS logo in your status or taskbar. On macOS, it is in the top right of the screen on the Menu Bar. On Windows, it is in the bottom right of the screen in the System Tray.
105+
1. Click on the IPFS logo, and a dropdown menu will appear.
88106
1. In the dropdown menu, go to **Advanced** and click **Run Garbage Collector**.
89-
![Garbage Collection](https://ipfs.io/ipfs/bafkreigwixo5aexortfcjkkryzk2q5pxocvqvb7ohrbuz6uk52qdes43si "GarbageCollector.png")
107+
108+
![Garbage Collection](https://ipfs.io/ipfs/bafkreigwixo5aexortfcjkkryzk2q5pxocvqvb7ohrbuz6uk52qdes43si "GarbageCollector.png")
109+
90110
1. A confirmation window will appear confirming that garbage collection has been successful.
91111
92-
That's the basics of IPFS Desktop! You now know how to share, recieve, download and remove files from the InterPlanetary File System! For more information and to continue learning about IPFS, check out the rest of the [docs](../)!
112+
That's the basics of IPFS Desktop! You now know how to share, receive, download and remove files from the InterPlanetary File System! If you're interested in web development, why not try out the [Websites on IPFS tutorial](../how-to/websites-on-ipfs/single-page-website.md)

0 commit comments

Comments
 (0)