# Command Line Arguments for Launching CADFEKO

CADFEKO can be called via the command line. Use command line arguments to pass configuration information to CADFEKO.

If CADFEKO is launched and a file is specified, the model or .lua script is opened. Without any models specified, CADFEKO will start and display the start page.

Command-line options:
cadfeko [FILENAME] [OPTIONS]
FILENAME
Name of the .cfx or .cfs or .lua file to load. If the model does not exist, a new empty model is created with this name.
OPTIONS
-h, --help
Displays the help message.
--version
Print the version information and then exit.
--non-interactive
Special execution mode for running automation scripts without user interaction.
--run-script SCRIPTFILE
Specifies an automation script to load and run.
--configure-script CONFIGSTRING
Executes the string CONFIGSTRING before running the script specified in SCRIPTFILE. This option is only used with the “non-interactive” option.
--file-info [=OUTPUTFORMAT] FILENAME.CFX
Display the CADFEKO versions used to create and modify the file.
cadfeko startup.cfx --file-info1
cadfeko startup.cfx --non-interactive --file-info |more2
cadfeko startup.cfx --non-interactive --file-info > versions.txt3
=OUTPUTFORMAT
Optional argument that is used to specify the output format. If the argument is set to xml, version information is written out in XML format. XML will only be output to stdout, and only if --non-interactive was also specified.
cadfeko startup.cfx --file-info=xml --non-interactive | more4
1 Opens a dialog and displays the version information.
2 Writes the version information out to standard output stream (stdout).
3 Redirects the version information to the specified file.
4 Writes the version information in XML format in non-interactive mode, displaying the content one screen at a time.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.27872613072395325, "perplexity": 10568.622082395053}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-49/segments/1669446710924.83/warc/CC-MAIN-20221203043643-20221203073643-00430.warc.gz"}