storyblok / field-plugin

Create and deploy Storyblok Field Plugin
https://www.storyblok.com/docs/plugins/field-plugins/introduction
25 stars 3 forks source link

Extend CLI deploy command with --spaces flag option configurable #381

Open edvinasjurele opened 6 months ago

edvinasjurele commented 6 months ago

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

We do keep Field-types in Organisation level (https://app.storyblok.com/#/me/org/fields), which is accessible ONLY for users having Admin level. Multiple developers can contribute to plugin monorepo, and they should be able to push new plugins in automated way via CLI only with no need to go to Admin panel to configure them, hence they must be able to have plugin assigned to some certain spaces via CLI.

Describe the solution you'd like

Extend CLI deploy command with --spaces flag option to instantly assign plugin to certain spaces, f.e

--spaces 0123456

or multiple:

--spaces 0123456,0123457,0123458

Additional context

Severity: high.

eunjae-lee commented 6 months ago

Hi @edvinasjurele This is a good idea. I assume you mean --spaces flag to deploy command, right?

edvinasjurele commented 6 months ago

Hi @eunjae-lee, yes! Sorry, was not specific enough. Will update description accordingly.

eunjae-lee commented 6 months ago

Hi @eunjae-lee, yes! Sorry, was not specific enough. Will update description accordingly.

No worries! I just wanted to make sure :D

cmuench commented 4 months ago

IMHO there should be an option for interactive question of the deploy command. This is useful to automate the deplyoment. In our case we need an option to set a value for the question Where to deploy the plugin?. The better solution is to provide an environment variable to set the defaults for each option.