# Refinery Cli
Run Refinery migrations via cli.
## Instalation
Install refinery_cli via cargo.
```sh
cargo install refinery_cli
```
## Usage
Setup your database type and access credentials with `setup`.
```sh
refinery setup
```
After that, just run your migrations giving your config file with `-c` flag (by defaults it is the `refinery.toml` generated by the setup) and migrations dir with `files -p $dir`.
```sh
refinery migrate -c sqlite_refinery.toml files -p ./sql_migrations
```
For more info and migration options run.
```sh
refinery migrate --help
```