Registry / devops / migrar

migrar

JSON →
library3.8.8jsnpmunverified

A CLI migration tool for software projects, version 3.8.8, designed to move folders and components between project workspaces. It provides commands to migrate controllers, forms, extensions, modules, and properties, with options to fix component names and paths. Aimed at projects with a specific MVC structure (e.g., Visualizer), it offers fine-grained control via command-line options but has a narrow use case. No recent updates indicate active development; the tool appears stable but niche.

npm install migrar
INSTALL
IMPORT
SIG · MIGRAR
M
migrar
devopsjavascriptv3.8.8
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.

migrar
npm install -g migrar
Installed globally; used via CLI, not imported as a module.

Global install and basic usage of migrar commands for moving components between projects.

npm install -g migrar migrar --help migrar controller /path/to/controller.js migrar extensions /old/project /new/project migrar fix /new/project MyForm -t form migrar form /old/workspace /new/workspace MyForm -m MyModule migrar many /old/workspace /new/workspace Form1,Form2 migrar modules /old/project /new/project migrar property /old/project /new/project
Debug
Known issues
gotchaExpected migrar to be a module/library but it's a CLI tool installed globally.
fix
Use via command line after global install; do not try to require() it.
affects: >=1.0.0
breakingCommands require absolute paths; relative paths may fail or cause unexpected behavior.
fix
Always use absolute paths for FROM, TO, and file arguments.
affects: >=3.0.0
deprecatedThe -v/--version and --help flags are deprecated in favor of migrar version and migrar help.
fix
Use 'migrar version' and 'migrar help' instead.
affects: >=3.5.0
gotchaOptions like --cpath, --epath, --fpath have defaults that may not match your project structure.
fix
Explicitly set these options if your project differs from defaults (e.g., 'controllers', 'modules/require', 'forms').
affects: >=1.0.0
gotchaThe 'fix' command requires the -t flag; missing it defaults to 'form' which may not be intended.
fix
Always specify -t as controller, action, or form.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'migrar'
migrar is not installed globally.
fix
Run: npm install -g migrar
migrar: command not found
Global npm bin not in PATH.
fix
Ensure npm global bin directory is in PATH. On Unix: export PATH=$(npm bin -g):$PATH
Error: ENOENT: no such file or directory, open '...'
Provided a relative path or non-existent absolute path.
fix
Use absolute paths and verify the existence of source/destination.
TypeError: Cannot read property 'split' of undefined
Missing required argument (e.g., TO or NAME).
fix
Check command syntax: migrar <command> <required args>
Upgrade
Version history
3.8.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
packagemigrar
migrar — npm install migrar · libregistry