Fetch a single JSON file from the database. Save that file to the _downloads folder of the SparkCli, creating a new folder with a timestamp for the result of the execution.
For example, user that runs : php spark.php json-download "root.name"
will get a folder with a file : _downloads\20260706-221700-file-download\root.name.json

Command Syntax

json-download FILE_NAME [PRESENTATION_FLAGS]
FILE_NAME - The name of the json file in the database to be downloaded
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.

Examples

php spark.php json-download "root.name"
Download a json file

php spark.php json-download "root.name" theme=DEFAULT
Download a json file with presentation flags

php spark.php json-download "root.name" -hb theme=DEFAULT
Download a json file with presentation flags

php spark.php json-download "root.name" -auto -hb theme=DEFAULT
Download a json file with presentation flags

Back