Publishing Directly to MadCap Flare Online Using the Command Line

As an alternative to building a target on MadCap Flare Online, you can publish output directly to Flare Online from Flare Desktop. By “publish,” we mean copying your output files to Flare Online, not making that output “live,” which would make it visible to the general public. You would still need to use Flare Online to make that output accessible to end users. Also, you must be associated with the project in Flare Online and have the “Run/Schedule Builds” permission. See MadCap Flare Online and Flare Desktop.

How to Publish Directly to MadCap Flare Online Using the Command Line

  1. Open Notepad (to create and save a batch file) or open your command prompt (to run a command immediately).
  2. Type the path to the Flare.app folder where you installed Flare Desktop, and press ENTER.

    cd\Program Files\MadCap Software\MadCap Flare 21\Flare.app

    Note Alternatively, you can use cd c:\Program Files\[rest of the path] instead of cd\Program Files\[rest of the path].

  1. Type the following and press ENTER on your keyboard (entering the correct information in place of the sections in square brackets):

    Copy
    madbuild -project [project] -centralUsername [email address] -centralPassword [password] -target [target]

    Note Some elements in Flare Desktop reference the old "Central" name, even though it has since been renamed to Flare Online.

    Note If there are spaces anywhere in your path or project name, you need to use quotation marks around it.

    Example Your email address is bsmith@fictionsoft.com, and your Flare Online password is R!ffraff22. You have a project called "FictionSoftPro" that you have stored in a folder of the same name at the root level of the C: drive. If you want to publish the target named "Beginner" to Flare Online, you can type this:

    Copy
    madbuild -project c:\fictionsoftpro\fictionsoftpro.flprj -centralUsername bsmith@fictionsoft.com -centralPassword R!ffraff22 -target Beginner

    Example If the project is located in a folder called "my projects,” and the target is named "Beginner Online Help" (with spaces between words), you would type this:

    Copy
    madbuild -project "c:\my projects\fictionsoftpro.flprj" -centralUsername bsmith@fictionsoft.com -centralPassword R!ffraff22 -target "Beginner Online Help"