emigrate/packages/cli
2024-01-19 13:43:59 +01:00
..
src fix(cli): clarify which options that takes parameters 2024-01-19 13:43:59 +01:00
CHANGELOG.md chore(release): version packages 2024-01-18 15:25:51 +01:00
package.json chore(release): version packages 2024-01-18 15:25:51 +01:00
README.md feat(cli): rename extension short option from -e to -x 2023-12-20 09:27:43 +01:00
tsconfig.json refactor(cli): rename the emigrate package to @emigrate/cli to be more in line with other tools 2023-11-15 14:42:10 +01:00

@emigrate/cli

Emigrate is a tool for managing database migrations. It is designed to be simple yet support advanced setups, modular and extensible.

📖 Read the documentation for more information!

Installation

Install the Emigrate CLI in your project:

npm install @emigrate/cli
# or
pnpm add @emigrate/cli
# or
yarn add @emigrate/cli
# or
bun add @emigrate/cli

Usage

Create a new migration:

npx emigrate new -d migrations create some fancy table
# or
pnpm emigrate new -d migrations create some fancy table
# or
yarn emigrate new -d migrations create some fancy table
# or
bunx --bun emigrate new -d migrations create some fancy table

Will create a new empty JavaScript migration file with the name "YYYYMMDDHHmmssuuu_create_some_fancy_table.js" in the migrations directory.