tideorm-cli-0.8.7 is not a library.
TideORM CLI
A comprehensive command-line interface for TideORM - A powerful Rust ORM.
Installation
Install globally:
Quick Start
# Initialize a new TideORM project
# Generate a model with fields, relations, and more
# Run migrations
# Seed the database
# Launch TideORM Studio (Web UI)
TideORM Studio (Web UI)
TideORM CLI includes a beautiful web-based interface called TideORM Studio with an ocean-inspired theme.
# Start on localhost:8080
# Custom host and port (for network access)
# With verbose logging
Features
- 📊 Dashboard - Quick actions and command history
- 🏗️ Model Generator - Visual form for creating models with all options
- 📦 Migration Manager - Create, run, rollback, and manage migrations
- 🌱 Seeder Manager - Create and execute database seeders
- ⚡ Query Playground - Interactive SQL editor with templates
Screenshots
Once started, open your browser to http://127.0.0.1:8080 (or your custom host/port).
Configuration
TideORM CLI uses a tideorm.toml configuration file:
[]
= "my-tideorm-project"
= "development"
[]
= "postgres"
= "localhost"
= 5432
= "myapp"
= "postgres"
= "password"
# Or use a connection URL:
# url = "postgres://postgres:password@localhost/myapp"
[]
= "src/models"
= "src/migrations"
= "src/seeders"
= "src/factories"
= "src/config.rs"
[]
= "_migrations"
= true
[]
= "DatabaseSeeder"
[]
= true
= false
= false
= "id"
= "i64"
Commands
Migration Commands
# Run all pending migrations
# Run migrations with options
# Generate a new migration
# Migration up/down
# Redo migrations
# Fresh migrations (drop all tables and re-run)
# Reset migrations (rollback all)
# Refresh migrations (reset + migrate)
# View migration status
Model Generation
The make model command is the most powerful generator, supporting:
# Basic model
# Model with fields
# Field types: string, text, i32, i64, f32, f64, bool, datetime, date, time, uuid, json, decimal
# Field modifiers: nullable, unique, indexed, primary_key, auto_increment, default=value
# Model with relations
# Model with translatable fields
# Model with attachments
# Model with indexes
# Model with nullable fields
# Enable special features
# Generate with migration and seeder
# Full example
Other Generators
# Generate a migration
# Generate a seeder
# Generate a factory
Database Commands
# Run all seeders
# Run a specific seeder
# Drop all tables and re-seed
# Show database connection status
# Create the database
# Drop the database
# Wipe all tables (truncate)
# Show table information
Utility Commands
# Initialize a new project
# Show configuration
# List all models
# Show schema information
Web UI Commands
# Launch TideORM Studio on default port (127.0.0.1:8080)
# Custom host and port
# With verbose logging
# Alias
Global Options
All commands support these global options:
)
Generated File Examples
Generated Model
//! User Model
//!
//! Auto-generated by TideORM CLI
use *;
use Post;
use Company;
Generated Migration
//! Migration: create_users_table
use *;
;
Generated Seeder
//! UserSeeder
use *;
use crateUser;
;
Environment Variables
The CLI supports environment variable expansion in tideorm.toml:
[]
= "${DATABASE_PASSWORD}"
Create a .env file:
DATABASE_PASSWORD=secret
License
MIT License - See LICENSE file for details.