box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
222 stars 59 forks source link

Please add metadata-cascade-policies:create #458

Closed kobay closed 1 year ago

kobay commented 1 year ago

Is your feature request related to a problem? Please describe.

We need to create metadata cascade policy for many folders. We want to use CLI but it looks like it doesn’t have metadata-cascade-policies:create command. I guess metadata-cascade-policies:force-apply command doesn’t work for us as it requires metadata id that has already cascade enabled.

Describe the solution you'd like

Please simply add box metadata-cascade-policies:create command which calls the following API. https://developer.box.com/reference/post-metadata-cascade-policies/

mwwoda commented 1 year ago

Hi @kobay I think you can use box metadata-templates:cascade to create a new cascade policy for a folder.

kobay commented 1 year ago

Thanks @mwwoda, box metadata-templates:cascade worked! but it looks weird that this command is located under metadata-template namespace to me. I thinnk it would be nice if its alias : metadata-cascade-policies:create is created.