Skip to main content

signaloid-cli init web-app:export

Export the configuration of an existing web application as JSON.

Synopsis​

signaloid-cli init web-app:export --project <dir> [--out <path>]

Options​

OptionRequiredDescription
--project <dir>YesPath to a web application generated by init web-app
--out <path>NoWrite the configuration to this file instead of standard output

Description​

Reads the configuration that init web-app saved in the generated project (signaloid.config.json) and prints it as JSON, including the application details and the interactive inputs. The output has the same format as init web-app --json-output, so you can pass it to init web-app --json-input to generate the web application again.

Projects generated by older versions of the CLI do not contain signaloid.config.json and cannot be exported. Generate them again with init web-app --json-output <path> to get a configuration file.

Examples​

Print the configuration:

signaloid-cli init web-app:export --project signaloid-cli-demo

Save it to a file:

signaloid-cli init web-app:export --project signaloid-cli-demo --out config.json

Regenerate a web application from an existing one:

signaloid-cli init web-app:export --project signaloid-cli-demo --out config.json
# edit config.json, then:
signaloid-cli init web-app --json-input config.json

Exit Codes​

CodeDescription
0Success
1No web application found in the directory, or its configuration file is missing or invalid

See Also​