# Install auth with npm

The CLI for Better Auth. Version 1.6.25 via npm; verified 2026-07-23.

## Install

```sh
sudo av install npm:auth
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g auth
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:auth
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/auth>
- **Version:** 1.6.25
- **Source summary:** The CLI for Better Auth
- **Homepage:** <https://www.better-auth.com/docs/concepts/cli>
- **Repository:** <https://github.com/better-auth/better-auth>
- **Upstream docs:** <https://www.better-auth.com/docs/concepts/cli>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/auth/-/auth-1.6.25.tgz>
- **Published:** 2026-07-23T15:48:13.058Z
- **Last updated:** 2026-07-23T15:48:13.058Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- auth (cli)
- better-auth (cli)
- auth (alias)

## Dependencies

- @babel/core
- @babel/preset-react
- @babel/preset-typescript
- @better-auth/core
- @better-auth/telemetry
- @better-auth/utils
- @clack/prompts
- @mrleebo/prisma-ast
- better-auth
- c12
- chalk
- commander
- dotenv
- get-tsconfig
- open
- prettier
- prompts
- semver
- yocto-spinner
- zod

## Build dependencies

- @better-auth/passkey
- @types/better-sqlite3
- @types/prompts
- @types/semver
- better-sqlite3
- jiti
- memfs
- tsdown
- tsx
- type-fest
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.6.25
- Package-manager updated: 2026-07-23
- Local data: ok
- Upstream repository: https://github.com/better-auth/better-auth
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for auth. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 1.7.0-beta.10, Latest: 1.6.25, Rc: 1.7.0-rc.3
- **Version Count:** 76
- **Maintainers:** bekacru
- **Publisher:** GitHub Actions
- **Integrity:** sha512-wyNvrDEQkcP4Lyo2GzYkngFstcswInItrqmJD3lz+Dkm5iceoNoBojfA+7xcEcsQDuFKsDU2Ho+VGllhs5a8lw==
- **Shasum:** 319ef96573a2cc0d0544bc9941e7716989db335f
- **Unpacked Size:** 277,911
- **File Count:** 0
- **Created At:** 2012-10-28T19:15:48.907Z
- **Latest Published At:** 2026-07-23T15:48:13.058Z
- **Modified At:** 2026-08-03T17:30:17.920Z


## Related links

- [Security and crypto packages](https://pkg.so/security-crypto-tools/) - Matched curated package taxonomy and local package facts.
- [better-npm-audit](https://pkg.so/npm/better-npm-audit/) - Security-sensitive metadata or terminology overlaps. Shared terms: better, cli, commander, get, security.
- [carrot-scan](https://pkg.so/npm/carrot-scan/) - Security-sensitive metadata or terminology overlaps. Shared terms: chalk, cli, commander, core, open.
- [pocket-id](https://pkg.so/brew/pocket-id/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, open, security.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
