Registry / database / arangomigration

arangomigration

JSON →
library1.0.3jsnpmunverified

A CLI tool for managing ArangoDB schema and data migrations using YAML files. Version 1.0.3, released as a stable CLI tool. It allows creating databases, users, collections, edge collections, indexes, and inserting default data via semver-named migration files. Differentiators: simple YAML-driven migrations, support for indexes and edge collections, and a `status` command to compare local files against applied migrations. Offers both local and global npm installs.

npm install arangomigration
INSTALL
IMPORT
SIG · ARANGOMIGRATION
A
arangomigration
databasejavascriptv1.0.3
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.

arangomigration
npx arangomigration apply
arangomigration migrate
The CLI command 'migrate' is not listed; use 'apply' instead. npx is recommended for local installs.
apply command
arangomigration apply --url http://localhost:8529 --username root --password root ./migration
arangomigration apply --url http://localhost:8529 -u root -p root
Options are --username and --password, not short flags; directory is positional.
status command
arangomigration status --url http://localhost:8529 ./migration
arangomigration status -url http://localhost:8529 -directory ./migration
Use --url not -url; directory is positional, not a named option.

Applies all YAML migration files from ./migration directory to an ArangoDB instance running at http://localhost:8529.

npx arangomigration apply --url http://localhost:8529 --username root --password root ./migration
Debug
Known issues
gotchaThe command 'arangomigration migrate' does not exist. Use 'apply' instead.
fix
Use `arangomigration apply` instead of `arangomigration migrate`.
affects: >=1.0.0
gotchaThe --insert-data option defaults to true; it may insert unexpected data if not explicitly set.
fix
Pass --insert-data false to skip data insertion.
affects: >=1.0.0
gotchaThe --password and --username defaults are 'root'; using defaults exposes credentials. Override in production.
fix
Always provide --username and --password (or use environment variables).
affects: >=1.0.0
Errors
Common errors & fixes
arangomigration: command not found
Package not installed globally or locally.
fix
npm install -g arangomigration or use npx arangomigration
Error: ENOENT: no such file or directory, scandir './migration'
Migration directory does not exist or incorrect path.
fix
Create the ./migration directory or provide a valid path.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
arangomigration — npm install arangomigration · libregistry