Examples

For the source file in these examples, the account user name is admin, the account password is admin, and the encryption password is abc.

Copy

Copies the source file, SampleDB.fmp12, to the target file, SampleDB copied.fmp12.

FMDeveloperTool --copy SampleDB.fmp12 admin admin -target_filename "SampleDB copied.fmp12" -encryption_key abc

Clone

Clones the source file, SampleDB.fmp12, to the target file, SampleDB cloned.fmp12.

FMDeveloperTool --clone SampleDB.fmp12 admin admin -target_filename "SampleDB cloned.fmp12" -encryption_key abc

Copy and compress

Copies the source file, SampleDB.fmp12, to the target file, SampleDB copied compressed.fmp12, and compresses the target file.

FMDeveloperTool --copyCompress SampleDB.fmp12 admin admin -target_filename "SampleDB copied compressed.fmp12" -encryption_key abc

Copy as self-contained

Copies the source file, SampleDB.fmp12, to the target file, SampleDB copied self-contained.fmp12, and embeds all container data in the target file.

FMDeveloperTool --copySelfContained SampleDB.fmp12 admin admin -target_filename "SampleDB copied self-contained.fmp12" -encryption_key abc

Save as XML

Saves the source file, SampleDB.fmp12, as XML to the target file, SampleDB.xml. This example uses the admin user, admin password, and abc encryption key.

FMDeveloperTool --saveAsXML SampleDB.fmp12 admin admin -target_filename "SampleDB.xml" -encryption_key abc

Encrypt

Encrypts the source file, SampleDB.fmp12, and saves the encrypted file to the target file, SampleDB encrypted.fmp12. The shared database ID is 123. The source file's shared database ID is 123. The target file's encryption password is admin, the encryption hint is hint, and its container data should continue to use open storage.

FMDeveloperTool --enableEncryption SampleDB.fmp12 admin admin -target_filename "SampleDB encrypted.fmp12" -encryption_key abc -sharedID 123 -passcode admin -passcode_hint hint -keep_open_storage

Decrypt

Decrypts the source file, SampleDB.fmp12, and saves the decrypted file to the target file, SampleDB decrypted.fmp12.

FMDeveloperTool --removeEncryption SampleDB.fmp12 admin admin -target_filename "SampleDB decrypted.fmp12" -encryption_key abc

Remove Full Access privileges

Removes Full Access privileges from the source file, SampleDB.fmp12, and saves the file to the target file, SampleDB admin removed.fmp12.

FMDeveloperTool --removeAdminAccess SampleDB.fmp12 admin admin -target_filename "SampleDB admin removed.fmp12" -encryption_key abc

Enable Kiosk mode

Enables Kiosk mode in the source file, SampleDB.fmp12, and saves the file to the target file, SampleDB kiosk.fmp12.

FMDeveloperTool --enableKiosk SampleDB.fmp12 admin admin -target_filename "SampleDB kiosk.fmp12" -encryption_key abc

Recover

Recovers the source file, SampleDB.fmp12, to the target file, SampleDB recovered.fmp12, rebuilding the database structure, rebuilding the indexes, and specifying the administrative user and password to bypass startup scripts and layouts.

FMDeveloperTool --recover SampleDB.fmp12 -target_filename "SampleDB recovered.fmp12" -encryption_key abc -generate rebuild -rebuildIndex now -bypass -username admin -password admin

Check consistency

Checks the consistency of the source file, SampleDB.fmp12.

FMDeveloperTool --checkConsistency SampleDB.fmp12 -encryption_key abc

Rename

Renames files in the source file list, matches the file name regular expression "abc.123", replaces the matched text with "abc-123", and places the renamed files into the target folder, TargetDBFolder.

FMDeveloperTool --renameFiles TargetDBFolder admin admin -encryption_key abc -source_filelist SampleDB1 abc 123.fmp12 SampleDB2 abcX123.fmp12 SampleDB3 abc.123.fmp12 -regex "abc.123" -replace_text "abc-123"