aegis

command
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package main provides the Aegis CLI tool for database migration management.

The Aegis CLI exports database migration files for different migration tools:

  • Raw SQL: Plain SQL files for manual execution
  • Goose: Migration files for pressly/goose
  • golang-migrate: Migration files for golang-migrate/migrate

Features:

  • Multi-database support: PostgreSQL, MySQL, SQLite
  • Plugin selection: Export specific plugins or all plugins
  • Multiple formats: SQL, Goose, golang-migrate
  • Core auth: Always includes base authentication tables

Commands:

  • aegis export: Export migration files
  • aegis version: Show version information
  • aegis help: Show usage information

Quick Start:

# Export auth schema for PostgreSQL
aegis export --dialect postgres --output ./migrations

# Export auth + all plugins as Goose format
aegis export --dialect postgres --format goose --plugins all

# Export auth + specific plugins
aegis export --dialect postgres --plugins oauth,jwt,organizations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL