# npm-cli-adduser

> A script to perform `npm adduser` without having to interact with the shell

Latest version **1.1.4** (published 2018-12-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install npm-cli-adduser
pnpm add npm-cli-adduser
yarn add npm-cli-adduser
bun add npm-cli-adduser
```

Provides the command `npm-cli-adduser`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2018-12-23 |
| First published | 2018-11-28 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Keikhosro Safavi |
| Maintainers | ksafavi |
| Keywords | npm, login, adduser, cli |

## Links

- npm: https://www.npmjs.com/package/npm-cli-adduser
- Repository: https://github.com/ksafavi/npm-cli-adduser
- Homepage: https://github.com/ksafavi/npm-cli-adduser#readme
- Issues: https://github.com/ksafavi/npm-cli-adduser/issues
- npm.io page: https://npm.io/package/npm-cli-adduser

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.19.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2018-12-23
- 1.1.3 — 2018-12-16
- 1.1.2 — 2018-12-03
- 1.1.1 — 2018-12-01
- 1.1.0 — 2018-11-28
- 1.0.1 — 2018-11-28
- 1.0.0 — 2018-11-28

## README

# npm-cli-adduser

A script to perform `npm adduser` without having to interact with the shell.

### Installation

    npm install -g npm-cli-adduser

### Usage

##### CLI

`npm-cli-adduser` supports the following environment variables:

- `NPM_REGISTRY`: (optional) Private NPM registry to log in to (Default: https://registry.npmjs.org)
- `NPM_SCOPE`: NPM Scope
- `NPM_USER`: NPM username
- `NPM_PASS`: NPM password
- `NPM_EMAIL`: NPM email

These command line arguments are also supported:

- `-r --registry`: NPM Registry
- `-s --scope`: NPM Scope
- `-a --always-auth`
- `-t --auth-type`: The authentication type
- `-u --username`: NPM Username
- `-p --password`: NPM Password
- `-e --email`: NPM Email

Note that the command line arguments override the environment variables.

##### Example

Logging in to a private NPM registry:

```
npm-cli-adduser --registry https://example.com --username testUser --password testPass --email test@example.com
```

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