goose-cli
v3.25.0-a
Published
A wrapper for the goose database migration tool.
Readme
Goose CLI
This is an unofficial npm wrapper for the goose database migration tool. It allows you to use the goose CLI without needing to install Go or manually download the binary.
Installation
You can install this package globally or as a dev dependency in your project.
pnpm
pnpm add -D goose-clinpm
npm install --save-dev goose-cliyarn
yarn add -D goose-cliUsage
Once installed, you can use the goose command directly in your terminal or in your package.json scripts.
CLI
goose --versionpackage.json scripts
{
"scripts": {
"db:migrate": "goose sqlite3 ./foo.db up"
}
}Then run the script:
pnpm db:migrateFor more information on how to use goose, please refer to the official documentation.
How it works
This package downloads the appropriate goose binary for your operating system and architecture from the official goose releases and executes it with the arguments you provide.
License
This project is licensed under the MIT License. See the LICENSE file for details.
The goose binary is distributed under the MIT License. See the original license for more information.
