@teliagen/cli
v0.4.7
Published
Command Line Interface for Teliagen
Maintainers
Readme
@teliagen/cli
The official Command Line Interface for Teliagen.
@teliagen/cli provides a suite of tools to scaffold, develop, and manage Teliagen applications. It is designed to be the entry point for all development workflows within the Teliagen ecosystem.
Installation
You can run the CLI directly using npx (recommended for creating new projects) or install it globally.
Using npx
npx @teliagen/cli create my-appGlobal Install
npm install -g @teliagen/cli
# or
pnpm add -g @teliagen/cliCore Commands
create <name>
Scaffolds a new Teliagen project with the best practices and directory structure pre-configured.
teliagen create my-awesome-appdev
Starts the development server with hot-reloading and automatic TypeScript compilation.
teliagen dev --port 3000build
Builds the application for production.
teliagen buildstart
Runs the compiled production application.
teliagen startgenerate
Manually triggers the code generation process (metadata, types, and entity models) based on your backend code. Useful for updating client SDKs without running the dev server.
teliagen generateBlueprint Commands
Blueprints are reusable modules that give your application new capabilities.
blueprint add <name>
Adds a new resource module (blueprint) to your existing application. This includes generating entities, actions, and services based on predefined templates.
teliagen blueprint add productblueprint create <name>
Scaffolds a new custom blueprint structure, allowing you to create your own reusable modules.
teliagen blueprint create my-custom-moduleblueprint list
Lists all available blueprints that can be added to your project.
teliagen blueprint listArchitecture
The CLI is built with flexibility in mind, leveraging:
- Commander.js for command parsing.
- Inquirer for interactive prompts.
- Teliagen Blueprint engine for code generation.
Documentation
For full documentation, visit docs.teliagen.org.
License
Apache-2.0
