Registry / devops / caminte-cli

caminte-cli

JSON →
library1.3.1jsnpmunverified

Command line interface for CaminteJS ORM, a cross-database ORM supporting MySQL, PostgreSQL, SQLite, MongoDB, Redis, and more. Version 1.3.1 is the latest stable release. It scaffolds models, routes, and tests for Express.js applications, generates Swagger specifications, and can parse SQL dumps. Differentiators include support for many databases and a simple CLI workflow for rapid CRUD API development.

npm install caminte-cli
INSTALL
IMPORT
SIG · CAMINTE-CLI
C
caminte-cli
devopsjavascriptv1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

caminte
const caminte = require('caminte')
import caminte from 'caminte'
Caminte uses CommonJS; ESM import may not work without transpilation.
caminte-cli
npm install -g caminte-cli
require('caminte-cli')
CLI is installed globally and used via shell, not imported.
database config
const db = new caminte.DataSource('mysql', {host: 'localhost', database: 'test', ...})
const db = new caminte.DataSource() without config
Adapter and config must be passed; otherwise defaults to memory.

Installs CLI globally, initializes a project with MySQL adapter, creates a User model, creates a Post model with routes, parses a SQL dump, and generates Swagger spec.

npm install -g caminte-cli mkdir myapp && cd myapp caminte -i -a mysql caminte -m User active:int name email password note:text created:date caminte -c Post published:bool title content:text created:date caminte -d dumpfile.sql caminte -w
Debug
Known issues
gotchaCaminte CLI uses an older version of Caminte ORM. The ORM might not be actively maintained.
fix
Check GitHub issues for compatibility; consider using a more modern ORM like Sequelize or Prisma.
affects: >=1.0
deprecatedSwagger generation via 'caminte -w' produces Swagger 2.0, not OpenAPI 3.x.
fix
Use a separate tool like swagger-cli or manual migration for OpenAPI 3.
affects: >=1.0
gotchaGenerated routes follow a non-standard pattern (e.g., /:table instead of /api/:table).
fix
Modify the generated route templates to match your desired routing structure.
affects: >=1.0
gotchaCLI requires a database adapter to be installed separately. Not included automatically.
fix
Install the required adapter (e.g., npm install caminte-mysql) before running -i.
affects: >=1.0
deprecatedDefault npm engine node version '>=0.10' is very old. Node 0.10 is end-of-life.
fix
Use Node.js version 12 or lower? Actually may not work on newer versions. Test with Node 10+.
affects: >=1.0 <1.3
gotchaCLI does not support TypeScript as a first-class citizen; files generated are plain JavaScript.
fix
Manually convert generated code to TypeScript or use a different ORM that supports TS.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'caminte-mysql'
Database adapter not installed for MySQL.
fix
Run 'npm install -g caminte-mysql' (or local install) before initializing.
Error: caminte: command not found
CLI not installed globally or not in PATH.
fix
Run 'npm install -g caminte-cli' and ensure NPM global bin directory is in PATH.
Error: Cannot find module 'caminte'
Caminte ORM not installed in the project.
fix
Run 'npm install caminte' in your project directory.
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/caminte-cli/...'
Permission issue when installing globally.
fix
Use 'sudo npm install -g caminte-cli' or configure NPM prefix for non-root.
Upgrade
Version history
1.3.1latest on npm
Audit
Dependencies
caminterequiredCore ORM dependency for model definitions and database interactions
Agent activity
2 hits · last 30 days
node
2
Resources
caminte-cli — npm install caminte-cli · libregistry