edit
Use greymatter edit to edit the configuration of an existing object in the Grey Matter mesh. Objects can be zone, proxy, domain, route, shared_rules, cluster, catalog-mesh, and catalog-service.

Usage

1
greymatter [GLOBAL OPTIONS] edit [OPTIONS] <object type> [object key]
Copied!

Sample Usage

By setting the EDITOR environment variable, the greymatter tool will open the editor of choice and let the user edit the object directly.
1
EDITOR=vim greymatter edit domain domain-localhost
Copied!
After editing the JSON directly in vim, the returned object will look something like the below (depending on the user input).
1
[info] 2019/07/10 03:38:43 Preferring --api.key for authentication
2
{
3
"domain_key": "domain-localhost",
4
"zone_key": "zone-default",
5
"name": "localhost",
6
"port": 443,
7
"redirects": null,
8
"gzip_enabled": false,
9
"cors_config": null,
10
"aliases": null,
11
"force_https": false,
12
"checksum": "a35ccf0634599ac83b0b9cb61b07297e925f28bbc669a9a63cb65b9c6a6ea309"
13
}
Copied!
The API objects are updated directly in the mesh after exiting the editor.

Help

To list available commands run with the global help flag:
1
greymatter edit --help
Copied!

Questions

Need help with the CLI?
Create an account at Grey Matter Support to reach our team.
Last modified 1yr ago
Export as PDF
Copy link