cosmicjs / cosmic-cli

The official command line tool for Cosmic
https://www.cosmicjs.com
MIT License
16 stars 5 forks source link

New Commands #9

Closed tonyspiro closed 6 years ago

tonyspiro commented 6 years ago
cosmic get-buckets // shows available Bucket slugs available to user, needs new endpoint GET /v1/buckets
cosmic get-objects-types -h // remove all flags, they don't do anything for Object Types
cosmic get-objects --type_slug // will use getObjectsByType
cosmic delete-bucket // deletes Bucket
cosmic command-does-not-exist // needs error message, currently returns nothing
RobinJayaswal commented 6 years ago

had to go into the site to find a bucket id to delete the bucket, so unless there's a way to do that Im not seeing I think we need one of or both:

get-bucket --slug // fetches bucket object
which-bucket --full // this full flag makes the command show not the slug, but the entire object