cosmos-sdk/docs/sdk/cosmos-sdk-cli.md

35 lines
870 B
Markdown
Raw Normal View History

2018-07-16 13:28:21 -07:00
# cosmos-sdk-cli
Create a new blockchain project based on cosmos-sdk with a single command.
---
# Installation
```shell
go get github.com/cosmos/cosmos-sdk
cd $GOPATH/src/github.com/cosmos/cosmos-sdk
make all
```
This will install a binary cosmos-sdk-cli
# Creating a new project
2018-07-16 13:30:11 -07:00
**cosmos-sdk-cli init** _Your-Project-Name_
2018-07-16 13:28:21 -07:00
This will initialize a project, the dependencies, directory structures with the specified project name.
### Example:
```shell
2018-07-17 12:50:25 -07:00
cosmos-sdk-cli init testzone -p github.com/your_user_name/testzone
2018-07-16 13:28:21 -07:00
```
2018-07-17 12:50:25 -07:00
-p remote project path (optional). If this is not provided, it creates testzone under $GOPATH/src/
2018-07-16 13:28:21 -07:00
```shell
cd $GOPATH/src/github.com/your_user_name/testzone
make
```
2018-07-17 12:50:25 -07:00
This will create two binaries(basecli and basecoind) under bin folder. basecoind is the full node of the application which you can run, and basecli is your light client.
2018-07-16 13:28:21 -07:00