Skip to main content

๐Ÿ› ๏ธ Tools CLI

The NestFlux Tools CLI is a powerful command-line utility that helps you manage your project configuration and generate development resources. It provides an interactive interface for common development tasks.

๐Ÿš€ Getting Startedโ€‹

To start the Tools CLI, run the following command in your project root:

pnpm tools

This will launch an interactive menu with various options to help you configure and manage your NestFlux project.

๐Ÿ“‹ Available Featuresโ€‹

๐Ÿ“ Project Metadata Managementโ€‹

The Tools CLI allows you to easily update your project's core information:

๐Ÿท๏ธ Change Project Nameโ€‹

  • Updates the project name in all necessary package.json files across the monorepo
  • Modifies root package.json and workspace packages that reference the project name
  • Prevents manual editing errors and maintains project integrity

๐Ÿ”ข Change Project Versionโ€‹

  • Updates the version number in all relevant package.json files throughout the monorepo
  • Follows semantic versioning and ensures consistency across all workspace packages
  • Ensures proper version management without manual errors
note

Always use the CLI to update name or version to ensure consistency across your entire monorepo workspace

๐Ÿณ Docker Generationโ€‹

๐Ÿ—„๏ธ PostgreSQL Database Dockerโ€‹

The Tools CLI can generate a complete PostgreSQL database setup with Docker, including:

  • ๐Ÿ“ฆ Docker Compose Configuration: Ready-to-use docker-compose.yml for PostgreSQL
  • ๐Ÿ” SSL/TLS Support: Automatically configured with SSL encryption
  • ๐Ÿ›ก๏ธ Security Best Practices: Implements secure database configuration

๐Ÿ”’ SSL Certificate Setupโ€‹

When generating the PostgreSQL Docker setup, the tool:

  1. ๐Ÿ“‹ Certificate Requirements: You only need to provide:

    • SSL certificate file (.crt)
    • Private key file (.key)
  2. ๐Ÿ”„ Automatic Configuration: The tool handles:

    • Docker volume mounting for certificates
    • PostgreSQL SSL configuration
    • Connection string setup
    • Environment variable configuration

The Tools CLI streamlines your NestFlux development workflow by automating common tasks and ensuring consistent, secure configurations across your project! ๐Ÿš€โœจ