Dat can be used as a command line tool, a Node.js library, and a JS library:
- See below to install the
datcommand line tool.
- Node.js -
npm install datand read more.
npm install dat-jsand learn more.
Installing Dat Command Line
To install Dat, you can use
curl to download and get you started with Dat!
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.
If you have
npm, you can install Dat with it:
npm install -g dat
Make sure you have
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 get released.
npm install finishes, you should be able to run the
$ dat command. If not, see the installation troubleshooting for tips.
- Node: You'll need to install Node JS before installing Dat. Dat needs
nodeversion 6 or above and
npminstalled. You can run
node -vto check your version. Dat follows the Node.js LTS schedule for Node support.
npmis installed with node. You can run
npm -vto make sure it is installed.
Once you have
npm ready, install
dat from npm with the
--global, -g option,
npm install -g dat.