installation

Quick Installation

DMC supports common UNIX operating systems such as Mac OSX, Linux, and FreeBSD.

1
https://github.com/datamallchain/chain-artifact/releases

After installation, the DMC executable file will be located in the system’s bin directory. To check the DMC version, use the following command:

1
2
~$ which dmc
/usr/local/bin/dmc

Common Commands

Running dmc directly and pressing Enter will display version information, as shown below:

1
2
3
4
5
6
~$ dmc
Welcome to Chain OS V1.1. Based on fibjs 0.36.0-dev.
Type ".help" for more information.
> console.log('hello, DMC!')
hello, DMC!
> .info

To create a hello_dmc folder and generate a package.json file for initialization, use the following commands:

1
2
$ cd  hello_dmc
$ dmc --init or npm init

To install packages,

1
$ dmc --install dmc.js or npm install dmc.js

Upgrading

Executing the installation command again will automatically overwrite the existing dmc executable file. Restart the dmc service to complete the upgrade.

Uninstalling

Simply delete the dmc executable file in /usr/local/bin/.

1
$ sudo rm /usr/local/bin/dmc

👉 【get start