# Feature Request: ziti-cli \`--skeleton\` switch

**URL:** https://openziti.discourse.group/t/feature-request-ziti-cli-skeleton-switch/1649
**Category:** Uncategorized
**Created:** [September 20, 2023, 11:49pm UTC](https://openziti.discourse.group/t/feature-request-ziti-cli-skeleton-switch/1649 "2023-09-20T23:49:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jptechnical](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jptechnical/32/1089_2.png) [@jptechnical](https://openziti.discourse.group/u/jptechnical)
#### Post date: [September 20, 2023, 11:49pm UTC](https://openziti.discourse.group/t/feature-request-ziti-cli-skeleton-switch/1649/1 "2023-09-20T23:49:13Z")

</div>

See [this example of the `aws-cli`](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html) where you can create a skeleton command for creating an ec2 instance with the elements that the command accepts.

This feature request would be to add the ability to generate a skeleton of a command from the ziti-cli. For instance, the command `ziti edge create identity --skeleton` would output the json (or whatever payload or structure) the command will accept.

---

<div class="post-metadata">

### Author: ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)
#### Post date: [September 21, 2023, 12:24am UTC](https://openziti.discourse.group/t/feature-request-ziti-cli-skeleton-switch/1649/2 "2023-09-21T00:24:07Z")

</div>

See the `--help` options. All the commands (i think?) support the `--output-request-json` flag.

Here's one example:

```auto
ziti edge create config --help
creates a config managed by the Ziti Edge Controller

Usage:
  ziti edge create config <name> <type> [JSON configuration data] [flags]

Flags:
  -i, --cli-identity string Specify the saved identity you want the CLI to use when connect to the controller with
  -h, --help help for config
  -f, --json-file string Read config JSON from a file instead of the command line
  -j, --output-json Output the full JSON response from the Ziti Edge Controller
      --output-request-json Output the full JSON request to the Ziti Edge Controller
  -t, --tags stringToString Add tags to entity definition (default [])
      --tags-json string Add tags defined in JSON to entity definition
      --timeout int Timeout for REST operations (specified in seconds) (default 5)
      --verbose Enable verbose logging

```

notice:  
_-j, --output-json Output the full JSON response from the Ziti Edge Controller_  
_--output-request-json Output the full JSON request to the Ziti Edge Controller_

---

<div class="post-metadata">

### Author: ![jptechnical](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jptechnical/32/1089_2.png) [@jptechnical](https://openziti.discourse.group/u/jptechnical)
#### Post date: [September 21, 2023, 1:23am UTC](https://openziti.discourse.group/t/feature-request-ziti-cli-skeleton-switch/1649/3 "2023-09-21T01:23:04Z")

</div>

> [@TheLumberjack](#):
>
> `--output-request-json Output the full JSON request to the Ziti Edge Controller`

I was looking at that, actually. I was going to try that on my next command.

I think I am more looking for all the elements that the resource will accept. Even if the spec is blank, having a json document with all the possible keys would be helpful.

Digging into the repo I can see that the flags that are accepted start [on this line](https://github.com/openziti/ziti/blob/2b37d11aa9f0e3fbc923de635a63fd6137bd948c/ziti/cmd/edge/create_identity.go#L86).

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/9/94c19e048740bc619364f1f2950bc365bec2f599.jpeg)

It would be really nice if this could be dumped from the command. Or if this list of flags could be documented somewhere. I see that each of the flags does have definition text, but I don't know how to get that flag definition text from the cli.
