Image

How It Works

Learning how to use the CLI and dPack's protocol is simple for even beginning developers.
  • Image

    1. Launch dPack CLI

    To start using the dPack CLI, simply open your terminal and type dweb. You will immediately see a usage menu as you see to the left.

  • Image

    2. Create a dPack

    To create a dPack, simply run dweb create. You will be asked to create a title and a description for your dPack. After finishing the dPack setup, you will be given a dWeb URL that starts with dweb://. After creation, you will notice that the directory you created within, has a "dweb.json" file that contains the title and description you created during dPack setup.

  • Image

    3. Distribute dPack

    To distributed the dPack you created so other peers on the dWeb can view it, simply run dweb dist. Once you run dweb dist, the dPack will remain available for dWeb until you exit the dist screen or distribute your dPack using our dHosting service.

  • Image

    4. Or Fork Someone Else's dPack

    You can fork a dPack via a remote peer by running the dweb fork command, along with the dweb address after it. For example, you could run dweb fork dweb://cbce9c5e3... and it will fork the dPack to whichever folder your terminal is actively running commands within.

  • Image

    5. View It!

    Once a dPack is being distributed to peers, you can take the dWeb address and paste into dBrowser's address bar and view the files, the dSite or the dApp your dPack is based on. It's that simple. You can even point your .com or other TLD to your dWeb address, so you can serve your dPack from the dWeb rather than expensive servers!