# Install knex-migrator with npm

Database migrations with knex. Version 6.1.0 via npm; verified 2026-07-16.

## Install

```sh
sudo av install npm:knex-migrator
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g knex-migrator
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:knex-migrator
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/knex-migrator>
- **Version:** 6.1.0
- **Source summary:** Database migrations with knex.
- **Repository:** <https://github.com/TryGhost/knex-migrator>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/knex-migrator/-/knex-migrator-6.1.0.tgz>
- **Issue tracker:** <https://github.com/TryGhost//knex-migrator/issues>
- **Published:** 2026-07-16T09:46:26.262Z
- **Last updated:** 2026-07-16T09:46:26.262Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- knex-migrator (cli)
- knex-migrator-health (cli)
- knex-migrator-init (cli)
- knex-migrator-migrate (cli)
- knex-migrator-reset (cli)
- knex-migrator-rollback (cli)
- knex-migrator (alias)

## Dependencies

- @tryghost/database-info
- @tryghost/errors
- @tryghost/logging
- @tryghost/pro-ship
- @tryghost/promise
- commander
- compare-ver
- debug
- knex
- lodash
- moment
- mysql2
- nconf
- resolve

## Build dependencies

- @vitest/coverage-v8
- oxfmt
- oxlint
- rimraf
- should
- sinon
- vitest

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 6.1.0
- Package-manager updated: 2026-07-16
- Local data: ok
- Upstream repository: https://github.com/TryGhost/knex-migrator
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 6.1.0
- **Version Count:** 131
- **Maintainers:** zimoatghost, allouis, kernalghost, chrisraible, erisds, johnonolan, kevinansfield, cobbspur, aileencgn, jloh, minimaluminium, sam-lord
- **Author:** Ghost Foundation
- **Publisher:** GitHub Actions
- **Engines:** Node: ^22.13.1 || ^24.14.1
- **Optional Dependencies:** better-sqlite3
- **Integrity:** sha512-rjsNQ4UgRsRWt/HrKYS/GwaIj8+PUEPeFaxcIhAgyCjszyMhCAaB3ISt/yGmxCBph3aNi1wnmJ9qZYm139/NwQ==
- **Shasum:** bb723e8102e3ef72751297fe2259a8f864dea12e
- **Unpacked Size:** 88,965
- **File Count:** 0
- **Created At:** 2016-10-17T09:31:46.762Z
- **Latest Published At:** 2026-07-16T09:46:26.262Z
- **Modified At:** 2026-08-03T01:16:53.430Z


## Related links

- [Database and data packages](https://pkg.so/database-data-tools/) - Matched curated package taxonomy and local package facts.
- [knex](https://pkg.so/npm/knex/) - Package names and metadata indicate a similar tool family. Shared terms: commander, database, debug, knex, lodash.
- [knex-migrate](https://pkg.so/npm/knex-migrate/) - Package names and metadata indicate a similar tool family. Shared terms: database, knex, lodash, migrate, migration.
- [gscan](https://pkg.so/npm/gscan/) - Local package facts share a topical domain. Shared terms: debug, errors, ghost, lodash, logging.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
