Skip to main content

Advanced Usage: Tarantula CLI

Custom Templates

  • Add new templates to _templates/model/.
  • Use EJS includes and helpers for reusable code generation.

Service Injection

  • Use tsyringe to inject services into commands and utilities.

Best Practices

  • Keep business logic in services, not commands.
  • Use dependency injection for all services.
  • Write reusable, composable templates.

Troubleshooting

  • Use tara doctor to diagnose issues.
  • Check the FAQ for common problems.