I'm using Box CLI to run a command batch. It will run and pass authentication when the batch file (.bat) runs under the personal ID I did the OAuth setup with. However it won't pass authentication when it's running under an admin ID set up to run batch jobs in our environment. I get the errors below. I can't quite figure out what needs to be done. It appears I need an environment file or some way to get tokens (I haven't found the refresh token). I assume this is all pretty basic but I haven't found the magic link which explains it all yet especially when using the Box CLI. Any references or solutions are appreciated.
The batch command looks like this:
"C:\Program Files\@boxcli\bin\box" files:upload --bulk-file-path=E:/Scripts/BoxUploadFiles.csv
No default environment found.
It looks like you haven't configured the Box CLI yet.
See this command for help adding an environment: box configure:environments:add --help
Or, supply a token with your command with --token.
Please sign in to leave a comment.