# @dew-gg/cli

> ## Features

Latest version **0.1.2** (published 2022-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dew-gg/cli
pnpm add @dew-gg/cli
yarn add @dew-gg/cli
bun add @dew-gg/cli
```

Provides the command `dew`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-07-13 |
| First published | 2022-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 458.2 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | dawn-lin, wddwycc |

## Links

- npm: https://www.npmjs.com/package/@dew-gg/cli
- npm.io page: https://npm.io/package/@dew-gg/cli

## Dependencies (10)

- [zod](https://npm.io/package/zod.md) ^3.15.1
- [axios](https://npm.io/package/axios.md) ^0.27.2
- [yargs](https://npm.io/package/yargs.md) ^17.4.1
- [ethers](https://npm.io/package/ethers.md) ^5.6.4
- [listr2](https://npm.io/package/listr2.md) ^4.0.5
- [prompts](https://npm.io/package/prompts.md) ^2.4.2
- [opensea-js](https://npm.io/package/opensea-js.md) 4.0.4
- [@looksrare/sdk](https://npm.io/package/@looksrare/sdk.md) ^0.5.0
- [filter-console](https://npm.io/package/filter-console.md) ^0.1.1
- [@truffle/hdwallet-provider](https://npm.io/package/@truffle/hdwallet-provider.md) 2.0.10-alpha.2

## Recent versions

- 0.1.2 (latest) — 2022-07-13
- 0.1.1 — 2022-07-13
- 0.1.0 — 2022-07-13
- 0.0.31 — 2022-07-07
- 0.0.30 — 2022-07-04

## README

# Use Dew CLI

## Features

- [List NFT](#list-nft)
- [List NFT(s) with CSV file](#list-nfts-with-csv-file)
- [Buy NFT](#buy-nft)
- [Sweep NFT(s)](#sweep-nfts)
- [Delist NFT](#delist-nft)

## Install

```sh
npm i -g @dew-gg/cli
dew --help
```

## Prerequisite

Dew requires your private key to sign transactions, it's configured by environment variable:

```sh
export WALLET_PRIVATE_KEY=$YOUR_WALLET_PRIVATE_KEY
```

## Commands

### List NFT

```
dew list <tokenAddress> <tokenId> <price>

Positionals:
  tokenAddress  token contract address                       [string] [required]
  tokenId       token_id                                     [string] [required]
  price         price in ETH                                 [string] [required]

Options:
  -m, --marketplaces  marketplaces to list                               [array]
  -n, --network       mainnet/rinkeby              [string] [default: "mainnet"]
```

### List NFT(s) with CSV file

This is helpful when you want to list many NFTs at once.

Define your CSV file with the following format: `tokenContract`,`tokenId`,`price(in ETH)`

```csv
0xFF7848CF65e3D9C0b190B2cF90e4C5b1935bA076,47,1.2
0xFF7848CF65e3D9C0b190B2cF90e4C5b1935bA076,54,1.3
```

Then run `listByCSV`

```
dew listByCSV <filePath>

Positionals:
  filePath  CSV file path to read from                       [string] [required]

Options:
  -m, --marketplaces  marketplaces to list                               [array]
  -n, --network       mainnet/rinkeby              [string] [default: "mainnet"]
```

### Buy NFT

```
dew buy <tokenAddress> <tokenId>

Positionals:
  tokenAddress  token contract address                       [string] [required]
  tokenId       token_id                                     [string] [required]

Options:
  -n, --network  mainnet/rinkeby                   [string] [default: "mainnet"]
```

### Sweep NFT(s)

```
dew sweep <tokenAddress> <count>

Positionals:
  tokenAddress  NFT contract address                         [string] [required]
  count         Number of NFT(s) to sweep                    [number] [required]

Options:
  -n, --network  mainnet/rinkeby                   [string] [default: "mainnet"]
```

### Delist NFT

```
dew delist <tokenAddress> <tokenId>

Positionals:
  tokenAddress  token contract address                       [string] [required]
  tokenId       token_id                                     [string] [required]

Options:
  -m, --marketplaces  marketplaces to delist                             [array]
  -n, --network       mainnet/rinkeby              [string] [default: "mainnet"]
```

---
_Source: https://npm.io/package/@dew-gg/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
