# Migrant [](https://travis-ci.org/jaemk/migrant) [](https://crates.io/crates/migrant) [](https://docs.rs/migrant)
> Basic migration manager
Currently supports:
* postgres
* sqlite
### Installation
See [releases](https://github.com/jaemk/migrant/releases) for binaries, or
```shell
cargo install migrant
```
### Simple Usage
`migrant init` - initialize project and create a `.migrant.toml` file (which should be `.gitignore'd`) with db info/credentials. The default migration location (relative to your `.migrant.toml`) is `migrations/`. This can be modified in your `.migrant.toml` file (`"migration_location"`). If the directory doesn't exist, it will be created the first time you create a new migration.
`migrant new initial` - generate new up & down files with the tag `initial` under the specified `migration_location`.
`migrant list` - display all available .sql files and mark those applied.
`migrant apply [--down, --all, --force, --fake]` - apply the next available migration[s].
`migrant shell` - open a repl
`migrant which-config` - display the full path of the .migrant.toml file being used
### Usage as a library
See [examples](https://github.com/jaemk/migrant/tree/master/examples)