Commands
IRIS-ADMIN comes with commands formanage database.
On this page
You can use it easy, like this: `iris-admin init`. [iris-admin-example](https://github.com/snowlyg/iris-admin-example/blob/main/gin/cmd/migrate/main.go) It has some helpful commands for build your program. Example init , migrate , rollback and so on.
`--seed` or `-s` is a global flag to seed datas into database, default is `true`.
Initialize
Init is a command for initialize your program:
go run cmd/migrate/main.go init [--seed]
Migrate
Migrate is a command for migrate your database:
go run cmd/migrate/main.go migrate [--seed]
Rollback
Rollback migrate:
go run cmd/migrate/main.go rollback [--to]
Refresh
Rollback and migrate:
go run cmd/migrate/main.go refresh [--seed]
Seed
Seed data:
go run cmd/migrate/main.go seed