Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storyblok CLI] Support API key for CI environment in order to log in #18

Open
1 of 6 tasks
danilowoz opened this issue Dec 18, 2020 · 3 comments
Open
1 of 6 tasks
Labels
feature [Issue] New feature or request

Comments

@danilowoz
Copy link

The feature would affect: (check one with "x")

  • app.storyblok.com (CMS - Interface)
  • api.storyblok.com (CMS - Content Delivery API)
  • mapi.storyblok.com (CMS - Management API)
  • capi.storyblok.com (Commerce - API)
  • Commerce - Interface
  • Other

Is your feature request related to a problem? Please describe.
We're considering using Stoyblok CLI to sync the components in the build time, like a Github Action, where we could update the components in the production only when the UI-components has been ready to go live.

Describe the solution you'd like
Someway to login in a CI environment without passing my email/password. One possible way is supporting an env var, for example STORYBLOK_LOGIN_APIKEY, and once this variable is available the CLI is able to log in the execute its methods.

@danilowoz danilowoz changed the title [Storyblok CLI] Support API key for CI environment [Storyblok CLI] Support API key for CI environment in order to log in Dec 18, 2020
@tmikeschu
Copy link

@danilowoz I don't know if you're still going for this, but I ended up copying the pattern in https://github.com/storyblok/storyblok/blob/master/src/tasks/pull-components.js and using a storyblok client initialized with an oauth token. So instead of using the CLI I just call my custom script with node scripts/pull-storyblok-components.js.

@lisilinhart lisilinhart transferred this issue from storyblok/storyblok Dec 16, 2022
@johnjenkins
Copy link

@danilowoz I don't know if you're still going for this, but I ended up copying the pattern in https://github.com/storyblok/storyblok/blob/master/src/tasks/pull-components.js and using a storyblok client initialized with an oauth token. So instead of using the CLI I just call my custom script with node scripts/pull-storyblok-components.js.

Does anyone know where that script is now?
(@lisilinhart sorry to ping you - but perhaps you know?)

@tmikeschu
Copy link

Looks like they have new repos: https://github.com/storyblok/storyblok-cli/blob/cce1fef04636c3538c1fd3135471ec6cf98a2832/src/tasks/pull-components.js

@alvarosabu alvarosabu added feature [Issue] New feature or request and removed enhancement labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [Issue] New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants