box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
229 stars 59 forks source link

How to use box-cli on a linux server #320

Closed fantasyado closed 2 years ago

fantasyado commented 2 years ago

According to the document, the OAuth requires a browser to complete a login. But what if we are on a Linux server without a browser? Is there any way to login the box-cli on it?

lukaszsocha2 commented 2 years ago

Hi @fantasyado , for such case the best authentication method would be JWT Auth. Here is the link to the JWT Auth guide, which specifies how to set up your application properly: https://developer.box.com/guides/authentication/jwt/. And here is a link to the CLI documentation showing how to setup CLI to start using JWT auth - https://github.com/box/boxcli#cli-and-server-authentication-with-jwt. If you will have any further questions or problems let us know. @lukaszsocha2

fantasyado commented 2 years ago

Thanks for reply.