How to do Contentful Login with no local web browser
See original GitHub issueExpected Behavior
It seems not possible to set up contentful-cli access without a local web browser.
vm:~/development/Contentful] $ contentful login
A browser window will open where you will log in (or sign up if you don’t have an account), authorize this CLI tool and paste your CMA token here:
? Open a browser window now? No
Log in aborted by the user.
vm:~/development/Contentful] $ contentful login
A browser window will open where you will log in (or sign up if you don’t have an account), authorize this CLI tool and paste your CMA token here:
? Open a browser window now? Yes
? Paste your token here:
It says to paste in the CMA token but pasting in my CMA token doesn’t have any effect – I think its not really wanting the CMA token but rather some sort of oauth refresh token
Don’t want to have to install X-windows and a browser just to run migrations.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Authentication with the Contentful CLI
This guide will help you to authenticate with the Contentful CLI | Requirements | Login | Logout and Next steps.
Read more >Logging in | Contentful Help Center
Log in using two-factor authentication (2FA) · Go to be.contentful.com/login. · Type in your username and password. · Follow the onscreen instructions to...
Read more >Content Delivery API | Contentful
The Content Delivery API (CDA), is a read-only API for delivering content from Contentful to apps, websites and other media.
Read more >Content preview | Contentful Help Center
Once the local server is running, the app can be accessed via the link http://localhost:8000 in your browser. It's now time to add...
Read more >UI extensions - FAQ - Contentful
Note that we do not set allow-same-origin on the iframe which hence has an ... on a local web server, so you can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m running contentful-cli from my dev mac. It manages to open a browser and authenticate and create token, but when I copy and paste the token into the terminal and hit enter key as instructed nothing happens. The config add method works still. I recently installed the cli tool.
you can also
contentful config add --management-token token
check the config command