Dat Docs

Dat Docs

  • Docs
  • Install
  • Help
  • Blog

›Getting Started

Getting Started

  • Intro to Dat
  • Installation
  • Dat FAQ

Learning More

  • The Hypercore Protocol
  • Open Source Ecosystem
  • Dat Terminology
  • Key Dat Concepts
  • Understanding Dat Privacy

Using Dat

  • Command Line
  • Sharing files over HTTP
  • Using the Dat SDK
  • Dats on a Server
  • Troubleshooting Dat

Cookbook

  • A Simple Chat Application
Edit

Installing Dat

This page will guide how to install Dat for the command line or javascript applications. There is also Dat Desktop and Beaker Browser, which provide a graphical user interface and much more.

Dat can be used as a command line tool, or as s JS library for Node.js and web browsers:

  • See below to install the dat command line tool.
  • Node.js - npm i dat-sdk and read more
  • Web - <script src="https://bundle.run/dat-sdk@1"></script> and read more

Installing Dat on the Command Line

To install Dat, you can use wget or curl to download and get started:

wget -qO- https://raw.githubusercontent.com/datproject/dat/master/download.sh | bash
curl -o- https://raw.githubusercontent.com/datproject/dat/master/download.sh | bash

Once the install finishes, you should be able to run the $ dat command in your terminal. If not, see the installation troubleshooting for tips.

Using npm

If you have npm, you can install Dat with it:

npm install -g dat

Make sure you have node and npm installed first. If not, see the prerequisites section below. We recommend npm because it makes it easy to install new versions of dat when they are released.

Once npm install finishes, you should be able to run the $ dat command. If not, see the installation troubleshooting for tips.

NPM Prerequisites

  • Node: You'll need to install Node.js before installing Dat. Dat needs node version 6 or above and npm installed. You can run node -v to check your version. Dat follows the Node.js LTS schedule for Node support.
  • npm: npm is installed with node. You can run npm -v to make sure it is installed.

Once you have npm ready, install dat from npm with the --global option, like npm install -g dat.

Last updated on 3/18/2020 by Karissa McKelvey
← Intro to DatDat FAQ →
  • Installing Dat on the Command Line
    • Using npm
Dat Docs
Docs
Getting StartedDat ProtocolHow Dat Works
Community
User ShowcaseProject Chat@dat_project
More
BlogGitHubStar
Dat Project
Copyright © 2021 Dat Project Contributors