Skip to content

Commit fab55d3

Browse files
authored
Renamed cosmwasm-cli to cosmjs-cli (#1059)
* Renamed cosmwasm-cli to cosmjs-cli * Fixed build error
1 parent 4c8b278 commit fab55d3

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

packages/cli/MASK.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This assumes you have already run through the sample in the
55
method (sharing with cli, customize blockchain) if you want. We will show
66
uploading mask and using it on the Demo Net.
77

8-
Start with `./bin/cosmwasm-cli --init examples/helpers.ts examples/mask.ts`
8+
Start with `./bin/cosmjs-cli --init examples/helpers.ts examples/mask.ts`
99
(note the addition of `examples/mask.ts`)
1010

1111
## Setup

packages/cli/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,43 @@
44

55
## Installation and first run
66

7-
The `cosmwasm-cli` executable is available via npm. We recommend local
7+
The `cosmjs-cli` executable is available via npm. We recommend local
88
installations to your demo project. If you don't have one yet, just
9-
`mkdir cosmwasm-cli-installation && cd cosmwasm-cli-installation && yarn init --yes`.
9+
`mkdir cosmjs-cli-installation && cd cosmjs-cli-installation && yarn init --yes`.
1010

1111
### locally with yarn
1212

1313
```
1414
$ yarn add @cosmjs/cli --dev
15-
$ ./node_modules/.bin/cosmwasm-cli
15+
$ ./node_modules/.bin/cosmjs-cli
1616
```
1717

1818
### locally with npm
1919

2020
```
2121
$ npm install @cosmjs/cli --save-dev
22-
$ ./node_modules/.bin/cosmwasm-cli
22+
$ ./node_modules/.bin/cosmjs-cli
2323
```
2424

2525
### globally with yarn
2626

2727
```
2828
$ yarn global add @cosmjs/cli
29-
$ cosmwasm-cli
29+
$ cosmjs-cli
3030
```
3131

3232
### globally with npm
3333

3434
```
3535
$ npm install -g @cosmjs/cli
36-
$ cosmwasm-cli
36+
$ cosmjs-cli
3737
```
3838

3939
## Getting started
4040

41-
1. Install `@cosmjs/cli` and run `cosmwasm-cli` as shown above
41+
1. Install `@cosmjs/cli` and run `cosmjs-cli` as shown above
4242
2. Start a local wasmd blockchain
43-
3. Start with `./bin/cosmwasm-cli --init examples/local_faucet.ts`
43+
3. Start with `./bin/cosmjs-cli --init examples/local_faucet.ts`
4444
4. Play around as in the following example code
4545

4646
```ts
@@ -77,7 +77,7 @@ way to learn how to embed cosmjs into your project. However, if you just want a
7777
cli to perform some quick queries on a chain, you can use an extended set of
7878
helpers:
7979

80-
Start with `./bin/cosmwasm-cli --init examples/helpers.ts`
80+
Start with `./bin/cosmjs-cli --init examples/helpers.ts`
8181

8282
(This points to the Demonet at https://lcd.demo-08.cosmwasm.com for ease of use.
8383
Other networks, look below)
@@ -171,7 +171,7 @@ see how to connect to the Regen Testnet, try this. (Note you need to use
171171
`.editor` in the repl to allow multi-line commands. Alternative is to place
172172
entire `regenOptions` on one line.
173173

174-
Run `./bin/cosmwasm-cli --init examples/helpers.ts`
174+
Run `./bin/cosmjs-cli --init examples/helpers.ts`
175175

176176
```ts
177177
.editor
@@ -244,7 +244,7 @@ Save mnemonic to a file
244244
echo "cousin nephew vintage label empty sunny cargo mushroom photo side clarify sleep solid entire deal tattoo vehicle record discover arrive sting staff salt uncle" > wasmcli.key
245245
```
246246
247-
Load it up in cosmjs: `./bin/cosmwasm-cli --init examples/helpers.ts`
247+
Load it up in cosmjs: `./bin/cosmjs-cli --init examples/helpers.ts`
248248
249249
```ts
250250
const mnemonic = loadOrCreateMnemonic("wasmcli.key");
File renamed without changes.

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
2424
"build": "rm -rf ./build && tsc",
2525
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
26-
"start": "yarn build-or-skip && ./bin/cosmwasm-cli",
27-
"selftest": "yarn build-or-skip && ./bin/cosmwasm-cli --selftest",
26+
"start": "yarn build-or-skip && ./bin/cosmjs-cli",
27+
"selftest": "yarn build-or-skip && ./bin/cosmjs-cli --selftest",
2828
"test-node": "yarn node jasmine-testrunner.js",
2929
"test": "yarn build-or-skip && yarn test-node",
3030
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet"
3131
},
3232
"bin": {
33-
"cosmwasm-cli": "bin/cosmwasm-cli"
33+
"cosmjs-cli": "bin/cosmjs-cli"
3434
},
3535
"files": [
3636
"build/",

packages/cli/run_examples.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ set -o errexit -o nounset -o pipefail
33
command -v shellcheck >/dev/null && shellcheck "$0"
44

55
if [ -n "${WASMD_ENABLED:-}" ]; then
6-
yarn node ./bin/cosmwasm-cli --init examples/cosmwasm.ts --code "process.exit(0)"
6+
yarn node ./bin/cosmjs-cli --init examples/cosmwasm.ts --code "process.exit(0)"
77
fi
88
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
9-
yarn node ./bin/cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)"
9+
yarn node ./bin/cosmjs-cli --init examples/delegate.ts --code "process.exit(0)"
1010
fi
11-
yarn node ./bin/cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
12-
yarn node ./bin/cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)"
13-
yarn node ./bin/cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)"
14-
yarn node ./bin/cosmwasm-cli --init examples/mask.ts --code "process.exit(0)"
15-
yarn node ./bin/cosmwasm-cli --init examples/multisig_address.ts --code "process.exit(0)"
11+
yarn node ./bin/cosmjs-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
12+
yarn node ./bin/cosmjs-cli --init examples/generate_address.ts --code "process.exit(0)"
13+
yarn node ./bin/cosmjs-cli --init examples/local_faucet.ts --code "process.exit(0)"
14+
yarn node ./bin/cosmjs-cli --init examples/mask.ts --code "process.exit(0)"
15+
yarn node ./bin/cosmjs-cli --init examples/multisig_address.ts --code "process.exit(0)"
1616
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
17-
yarn node ./bin/cosmwasm-cli --init examples/stargate.ts --code "process.exit(0)"
18-
yarn node ./bin/cosmwasm-cli --init examples/simulate.ts --code "process.exit(0)"
17+
yarn node ./bin/cosmjs-cli --init examples/stargate.ts --code "process.exit(0)"
18+
yarn node ./bin/cosmjs-cli --init examples/simulate.ts --code "process.exit(0)"
1919
fi

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ __metadata:
383383
typescript: ~4.4
384384
yargs: ^15.3.1
385385
bin:
386-
cosmwasm-cli: bin/cosmwasm-cli
386+
cosmjs-cli: bin/cosmjs-cli
387387
languageName: unknown
388388
linkType: soft
389389

0 commit comments

Comments
 (0)