import/export

export zone

Use greymatter export-zone to export a given zone and its subsidiary objects as text from the Grey Matter mesh.
1
greymatter [GLOBAL OPTIONS] export-zone [OPTIONS] <zone-name>|<zone-key>
Copied!
By default, the mesh will be large enough to warrant saving the exported text as a file or copying directly to clipboard. The following is an example of an empty exported zone.
1
$ greymatter export-zone zone-test-zone
2
{
3
"zone": {
4
"zone_key": "zone-test-zone",
5
"name": "zone-test-zone",
6
"checksum": "14947668d007fb132f0dc81f56dbe8d0cd2874f12fe1007efd7f9cf29aa8784e"
7
},
8
"clusters": null,
9
"domains": null,
10
"proxies": null,
11
"routes": null,
12
"shared_rules": null,
13
"listeners": null
14
}
Copied!

import zone

Use greymatter import-zone to import a given zone as text into the Grey Matter mesh.
Specifying a zone key is optional; otherwise, it will be automatically generated
1
greymatter [GLOBAL OPTIONS] import-zone [OPTIONS] <zone-name> <zone-key>
Copied!
Executing the import-zone command will automatically open the terminal's default file editor, from which point the zone blueprint can be entered. After exiting and saving the editor, the console will output the entirety of the zone and its constituent parts.
1
$ greymatter import-zone test test
2
{
3
"zone": {
4
"zone_key": "test",
5
"name": "test",
6
"checksum": ""
7
},
8
"clusters": null,
9
"domains": null,
10
"proxies": null,
11
"routes": null,
12
"shared_rules": null,
13
"listeners": null
14
}
Copied!

Help

To list available commands run with the global help flag,
1
greymatter export-zone --help
2
greymatter import-zone --help
Copied!
Last modified 1yr ago
Export as PDF
Copy link