```Command "migrate install" cannot be resolved. ...
# box-products
o
Copy code
Command "migrate install" cannot be resolved.


Please type "help" for assistance.

CommandBox>
What the hell happened to my installation??? I literally zipped the entire source directory up, so I shouldn't be having these issues.
b
@Ookma-Kyi I have no clue what you did to your installation, but it sounds as tough you think zipping up the source code in your web root will have an effect on the system modules installed in your CommandBox CLI home. (it doesn't)
That error means you tried to run a command from a module that's not installed
if you don't know what module you have installed into the CLI, run
Copy code
list --system
If the modules you expect aren't there, install them šŸ™‚
Modules don't just disappear from there unless you went and manually deleted your
~./CommandBox
folder or changed the user you're running under.
If you are wanting a new developer on a new machine to be able to take your project code and have everythign ready to go, I would store your CommandBox system modules as dev dependencies in your
box.json
. Then, when a new developer runs
Copy code
box install
it will grab not only their app dependencies but also any system modules which are required (which install into the CommandBox home dir).
@Ookma-Kyi That would be some folders on your hard drive
Did you have a specific expectation of what you thought they were?
o
ran
box install
, and seem to be getting closer.
Copy code
CommandBox> migrate install



ERROR (5.5.2+00578)

Unknown database 'ookma-kyi'



CommandBox>
b
I've already told you your CLI system modules are installed in the CommandBox home dir, we know they aren't those
You are trying to run a command. in the CLI. Which requires a system module to be installed
These are not the same as other modules you've installed into a random Coldbox app on your drive
o
So like Python there are global and project specific libraries
b
Sort of like asking why a given CD won't play in your CD player and then showing me a picture of CDs sitting on a shelf somewhere in your house šŸ™‚
o
So my database isn't global either?
b
So like Python there are global and project specific libraries
Sort of, but not really. In Python or Npm's case there is only one global installation of the Python or Node runtime. In this case, your CommandBox CLI process is 100% totally and completely unrelated to your ColdBox app and any web servers you may or may not have started. They just happen to be on the same PC at the same time.
So my database isn't global either?
Your DB has nothing at all to do with any of this. I have no idea what sort of DB your using so I couldn't begin to answer that.
o
MySQL
b
Really irrelevant to the conversation--
o
I mean i got the modules to sorta work
b
ColdBox is an MVC framework that you can install modules into. CommandBox is a CLI that you can also install modules into. These are different thigns
o
Ok, I amusing commandbox and ran
box install
to install the modules
b
You are probably also confusing these two modules •
cfmigrations
- A service layer for running migrations via CF code •
commandbox-migrations
- A CommanBox module for running migrations via commands
Your screenshot showed the first one installed into ColdBox, but that does NOT provide any commands in your CLI. Only the second one does that
Just because you have installed cfmigrations into your coldbox app, does not mean any
mgiration up
sort of commands will work in the CLI. For those to work, you must actually install actual CLI modules into the CLI
o
list --system
Copy code
CommandBox> list --system
Dependency Hierarchy for CommandBox System (1.0.0)
ā”œā”€ā”¬ commandbox-cfformat (0.17.5)
│ └── testbox ()
ā”œā”€ā”¬ commandbox-cfconfig (1.10.0)
│ └─┬ cfconfig-services (1.18.3)
│   ā”œā”€ā”€ lucee-password-util (1.0.3)
│   ā”œā”€ā”€ coldbox ()
│   ā”œā”€ā”€ testbox ()
│   ā”œā”€ā”¬ JSONPrettyPrint (1.4.1)
│   │ ā”œā”€ā”€ coldbox ()
│   │ └── testbox ()
│   ā”œā”€ā”¬ adobe-password-util (1.0.8)
│   │ └── propertyFile (1.3.2)
│   ā”œā”€ā”¬ semver (1.2.6)
│   │ └── testbox ()
│   └── propertyFile (1.3.2)
ā”œā”€ā”¬ commandbox-dotenv (2.3.0)
│ └── propertyFile (1.3.2)
└─┬ commandbox-migrations (3.2.3)
  └─┬ cfmigrations (2.0.10)
    ā”œā”€ā”€ coldbox ()
    ā”œā”€ā”€ testbox ()
    ā”œā”€ā”¬ qb (8.9.0)
    │ ā”œā”€ā”€ testbox ()
    │ └─┬ cbpaginator (2.8.1)
    │   └── testbox ()
    └── orgpostgresqljdbc424214lex ()
b
I would hazard guess that you're probably not actually using the
cfmigrations
module in coldbox and installed it by accident, thinking it's the CLi version.
So I see
commandbox-migrations
in that list, which is good. Did you just install it?
o
yes
b
So... was that list a question, or were you just wanting to show that you had now installed it?
o
Wanted to show the steps I am taking to try to resolve the issue
Copy code
CommandBox> migrate init
cfmigrations already configured for this project.
CommandBox>
This is where I am now:
Copy code
CommandBox> migrate install



ERROR (5.5.2+00578)

Unknown database 'ookma-kyi'



CommandBox>
b
Please refer to the cfmigrations docs
And start a new thread
This is now a new question
o
Ok thanks
b
I'm guessing your migrations connection info isn't correct