CommandBox 3.0.1

Hi all,

I hope this is the right place to post this but I could use some help with commandbox.
Basically I’ve just installed it and am trying to install testbox as per the instructions here: Ortus Solutions - Professional Open Source, Consulting and More!

I’m getting the following errors on both Linux Mint 17.3 and Windows 8.1

CommandBox:test> box install testbox
ERROR

Command “box install testbox” cannot be resolved.
Please type “help” for assistance.

CommandBox:test> box install “testbox”
ERROR

Command “box install “testbox”” cannot be resolved.
Please type “help” for assistance.

CommandBox:test> forgebox install testbox
ERROR

Command “forgebox install testbox” cannot be resolved.
Please type “help forgebox” for assistance.

What am I doing wrong?

Thanks in advance.
J

can the machine you are on connect to the internet?

Doing a search does not return any results

CommandBox:webonix.net> version

CommandBox 3.1.0+00335

CommandBox:webonix.net> forgebox search testbox

Found 0 records.

CommandBox:webonix.net>

But does show up on web site
https://www.coldbox.org/forgebox/search

TestBox BDD/xUnit v2.3.0 (Testing)

A BDD and xUnit Testing Framework

box install testbox	

lmajano@gmail.com's GravatarLuis Majano | Last Update: May 25, 2016 | Downloads: 497 | Installs: 3795 | Views: 1635

Also, if I do a partial search I get an error

CommandBox:webonix.net> forgebox search box

Lucee CF Engine ( Ortus Solutions )

ERROR

key [VERSION] doesn’t exist

C:\Users\amercer.CommandBox\cfml\system\modules\forgebox-commands\commands\forgebox\search.cfc: line 46
44: print.boldText( ’ ( #entry.user.fname# #entry.user.lname# )’ );
45: print.boldGreenLine( ’ #repeatString( ‘*’, val( entry.avgRating ) )#’
);

46: print.line( ‘Version: #entry.version#’ );

47: print.line( ‘Type: #entry.typeName#’ );

48: print.line( ‘Slug: “#entry.slug#”’ );

Might not be you

From your terminal snippets, it looks like
you maybe using ‘box’ while already in CommandBox. You can omit the use of ‘box’ once you are inside the Commandbox shell.

You don’t need to include the text “box” when you’re running commands from the interactive shell. I’ve already fixed it on the bleeding edge 3.1.0 release so any extra “box” on the front of your commands are ignored in this context (along with some helpful “did you mean?” fuzzy matching).

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

AJ, “forgebox search” has been reworked in a later build including fixing the version error you pointed out. The latest build is 3.1.0+00356.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks guys. Solved!

I was indeed trying to run the command from inside command box. I found the testbox install instructions a little misleading and wrongly assumed that I needed to actually be in commandbox instead of running the box exe/sh in the system cli. Found the answer in one of Brad’s comments here: Adam Cameron's Dev Blog: TickintheBox and running the box command from the OS shell sorted me out.

Looking forward to exploring commandbox more. Looks awesome.

Thanks again.