
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
Croco CLI is a code generator and project scaffolding tool for Croco framework workspaces. It creates controllers, entities, events, pages, domain modules, and generates RPC clients or OpenAPI specs.
Croco CLI is a code generator and project scaffolding tool for Croco framework workspaces. It creates controllers, entities, events, pages, domain modules, and generates RPC clients or OpenAPI specs.
New to Croco? Start with
npx create-croco-appto scaffold your first SaaS API, then follow the Getting Started guide.
pnpm exec croco --help
Run from any directory inside a Croco workspace. The CLI automatically detects pnpm-workspace.yaml to find your project root.
| Command | Description |
|---|---|
make controller <Name> | New controller class with CRUD methods |
make repository <Name> | New repository class |
make entity <Name> | New entity class |
make event <Name> | New domain event class |
make listener <Name> | New event handler |
create page <Name> | Console web page (SSR or SPA) |
create domain <name> | API domain module (5 files) |
generate scaffold <Model> | Page + domain bundle |
codegen rpc [args] | Generate RPC client code |
codegen openapi [args] | Generate OpenAPI spec |
migrate up|down [args] | Run or rollback database migrations |
Creates a single source file under apps/api-server/src/:
croco make controller User creates apps/api-server/src/controllers/UserController.ts with @Controller, @Get, @Post, @Put, @Delete stubscroco make repository User creates a class extending Repository<UserEntity, string>croco make entity User creates an @Entity() class with id, createdAt, updatedAtcroco make event OrderShipped creates a DomainEvent subclasscroco make listener SendEmail creates an event handler registered via @RegisterEventHandlercroco create page Dashboard generates 3 files under apps/console-web/pages/dashboard/croco create domain Payment generates 5 files under apps/api-server/src/domains/payment/ plus controller registrationcroco generate scaffold Product runs create domain and create page together in one commandcroco codegen rpc [args] delegates to @croco/rpc-codegencroco codegen openapi [args] delegates to @croco/openapi-speccroco migrate up runs pending migrations via @croco/migration-runnercroco migrate down rolls back migrationsAll commands support these options:
| Option | Type | Description |
|---|---|---|
--cwd | string | Working directory (default: process.cwd()) |
--dryRun | boolean | Preview changes without writing files |
--overwrite | boolean | Overwrite existing files |
Commands call detect() from @croco/cli, which walks up the directory tree looking for pnpm-workspace.yaml. When found, it checks for:
apps/api-server/package.json (hasApiServer) — required for make and create domainapps/console-web/package.json (hasConsoleWeb) — required for create pageThe search stops after a configurable maximum depth. If no workspace is found, commands return an error.
apps/api-server/src/domains/{name}/
{Name}Controller.ts # REST endpoints
{Name}Service.ts # Business logic
{Name}Repository.ts # Data access
{Name}Entity.ts # Domain model
index.ts # Barrel exports
Running croco create domain Payment with --register also adds the controller to the API server entry file.
apps/console-web/pages/{name}/
Page.tsx # Page component
route.ts # Route definition
Page.spec.tsx # Test file
The --mode flag switches between SSR (default) and SPA rendering.
The CLI runs detect() starting from --cwd (or the current directory) and walks upward looking for pnpm-workspace.yaml. If your project uses a different layout, run the command from a subdirectory inside the workspace, or pass --cwd explicitly.
Commands like create domain use codemods to register controllers in the API server entry file. If the entry file uses an unsupported import or module pattern, the codemod may skip registration. Check the entry file format or disable auto-registration with --no-register.
The @croco/cli package itself has "private": true and is not published to npm. Use it via pnpm exec croco inside the monorepo, or install from a local build.
FAQs
Croco CLI is a code generator and project scaffolding tool for Croco framework workspaces. It creates controllers, entities, events, pages, domain modules, and generates RPC clients or OpenAPI specs.
The npm package @croco/cli receives a total of 196 weekly downloads. As such, @croco/cli popularity was classified as not popular.
We found that @croco/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.