KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Using the Command Line Interface in 4D v11 SQL
PRODUCT: 4D Developer | VERSION: 11 | PLATFORM: Mac & Win
Published On: March 5, 2008

4D v11 SQL supports CLI (Command Line Interface) for both Windows and Mac OS X. This means the Terminal and the Command Prompt can be used to launch your 4D projects. The syntax remains the same as in previous versions of 4D:

Path/ApplicationName -d DataPath StructurePath



For example, the following will open the MyProject.4DB structure file in 4D Developer with the MyProject.4DD data file:

Windows:

"c:\.../4d developer.exe" -d MyProject.4DD MyProject.4DB



Mac OS X:

/Applications/.../4D\ Developer.app/Contents/MacOS/4D\ Developer -d MyProject.4DD MyProject.4DB



Note the placement of the "/" and "\" characters when executing commands from the Command Prompt or Terminal. An easy way to get the correct full path of a given file is to drag and drop the file icon into the Command Prompt or Terminal. The valid path will automatically be inserted.