# insforge db export Export database schema and/or data. ## Syntax ```bash insforge db export [options] ``` ## Options | Option | Description | Default | |--------|-------------|---------| | `--format ` | `sql` or `json` | `sql` | | `--tables ` | Comma-separated table list | all tables | | `--no-data` | Export schema only (no row data) | include data | | `--include-functions` | Include stored functions | no | | `--include-sequences` | Include sequences | no | | `--include-views` | Include views | no | | `--row-limit ` | Max rows per table | unlimited | | `-o, --output ` | Output file path | stdout | ## Examples ```bash # Full export to file insforge db export --output backup.sql # Schema only insforge db export --no-data --output schema.sql # Specific tables with functions insforge db export --tables users,posts --include-functions --output partial.sql # JSON format insforge db export --format json --output backup.json # Limited rows for development insforge db export --row-limit 100 --output dev-data.sql ```