| Crates.io | mammoth-cli |
| lib.rs | mammoth-cli |
| version | 0.1.0 |
| created_at | 2025-06-24 09:05:38.964397+00 |
| updated_at | 2025-06-24 09:05:38.964397+00 |
| description | A frontend project scaffolding CLI tool |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1724049 |
| size | 84,507 |
A powerful frontend project scaffolding CLI tool that helps you quickly create new projects from templates.
cargo install --path .
Command structure:
mammoth-cli
├── new # Create project (top-level command)
├── clean # Clean config and cache (top-level command)
├── info # Show config info (top-level command)
├── template # Template management (subcommand)
│ ├── list # List templates
│ ├── add # Add template
│ ├── remove # Remove template
│ ├── download # Download template
│ └── download-all # Download all templates
├── repo # Repository management (subcommand)
│ ├── list # List repositories
│ ├── add # Add repository
│ └── remove # Remove repository
└── config # Config management (subcommand)
├── export # Export config
├── import # Import config
└── validate # Validate config
# Create a new project (interactive)
mammoth-cli
# Create a new project with specific template
mammoth-cli new --template nuxt-shadcn --name my-project
# Show configuration information
mammoth-cli info
# Show configuration as JSON
mammoth-cli info --json
# Clean cache and configuration
mammoth-cli clean
# Clean everything including config file
mammoth-cli clean --all
# Clean without confirmation
mammoth-cli clean --force
# List all templates
mammoth-cli template list
# List all templates with detailed information
mammoth-cli template list --verbose
# Add a template
mammoth-cli template add nuxt-shadcn \
--name "Nuxt Shadcn Starter" \
--repo aio-templates \
--path "vue/nuxt-shadcn" \
--description "Nuxt Shadcn with Tailwind" \
--language vue \
--tags "nuxt,shadcn,tailwind"
# Download a specific template
mammoth-cli template download nuxt-shadcn
# Download all templates
mammoth-cli template download-all
# Remove a template
mammoth-cli template remove nuxt-shadcn
# Add a repository
mammoth-cli repo add aio-templates --url https://github.com/Mulander-J/aio-templates --branch main
# List repositories
mammoth-cli repo list
# Remove a repository
mammoth-cli repo remove aio-templates
# Export configuration to file
mammoth-cli config export --output config-backup.json
# Export configuration with cache information
mammoth-cli config export --output config-backup.json --include-cache
# Import configuration (merge mode - default)
mammoth-cli config import --file config-backup.json
# Import configuration (overwrite mode)
mammoth-cli config import --file config-backup.json --mode overwrite
# Import configuration without validation
mammoth-cli config import --file config-backup.json --skip-validation
# Validate configuration file
mammoth-cli config validate config-backup.json
The CLI stores configuration in:
~/.config/mammoth-cli/templates.json (Linux/macOS) or %APPDATA%\mammoth-cli\templates.json (Windows)~/.cache/mammoth-cli/templates/ (Linux/macOS) or %LOCALAPPDATA%\mammoth-cli\templates\ (Windows)The configuration file uses JSON format:
{
"repos": [
{
"name": "aio-templates",
"url": "https://github.com/Mulander-J/aio-templates",
"branch": "main"
}
],
"templates": [
{
"id": "nuxt-shadcn",
"name": "Nuxt Shadcn Starter",
"repo": "aio-templates",
"path": "vue/nuxt-shadcn",
"description": "Nuxt Shadcn with Tailwind",
"language": "vue",
"tags": [
"nuxt",
"shadcn",
"tailwind"
]
}
]
}
A: This may be caused by other processes (such as Explorer or antivirus software) occupying related files. Please close those programs and try again, or reboot and run the clean command.
Welcome to submit Issue and Pull Request!