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
| Option | Required | Description |
|---|---|---|
--project <dir> | Yes | Path to a web application generated by init web-app |
--out <path> | No | Write 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
| Code | Description |
|---|---|
0 | Success |
1 | No web application found in the directory, or its configuration file is missing or invalid |
See Also
- signaloid-cli init web-app - Generate a web application