question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to do Contentful Login with no local web browser

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
chpi6297commented, May 2, 2019

you can also contentful config add --management-token token check the config command

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.

1reaction
Khaledgarbayacommented, Jun 12, 2018

you can also contentful config add --management-token token check the config command

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found