Authentication with the Contentful CLI
For every request, clients need to provide an API key, which is created per space and used to delimit applications and content classes. This helps you authenticate with the contentful-cli.
Requirements
- A (free) Contentful account
- Locally installed
contentful-cli
Login

If you have no browser available on your machine you can generate the management token manually and pass it directly to the login command.
Login and create a management token at Settings > API keys > Content management tokens > Generate personal token.
The output should look similar to this:
Logout
To log out and remove your current management token from .contentfulrc.json
The output should look similar to this: