Drafts CLI - Getting UUID

So I am playing around with drafts-cli to see how I can incorporate it into some of my workflows. One thing I noticed, when I run drafts list, it does show the drafts, and it’s ID, but when utilizing drafts open , that ID obviously won’t work, it needs the full UUID.

My question is, is there a way (through the CLI only) to list out the drafts, and also show the UUID? I know I can copy the UUID from drafts UI directly, but trying to keep this 100% on the CLI side.

Any help would be appreciated!

Not sure what’s going on with the ID in the table output, but it’s the full UUID in the json output, which is more parsable anyway. Add --json to your command and see if you can use that.

1 Like

Bingo – That will do the trick :slight_smile: Thank you!

FYI, I just pushed v1.0.12 of the package that updates the table output to correctly include the full UUID. I’d still use the json as more stable output, but thought I’d mention.

1 Like

I’ll give it a go, thank you very much!

I’ll report back if there’s any issues or inconsistencies.

EDIT: That did the trick! It is now showing the full UUID under the ID field. Thank you so much.