Possible to use library-token with seaf-cli?

I was able to sync a library using the general api-token with seaf-cli.
But I was unable to achieve the same thing using a repo_api_token. Anybody else had more luck with this?

seaf-cli download -s https://seafile-server.org -l “library-id” -T “repo-api-token” -u “app_name” -d some-dir

This is the output that I get:

Traceback (most recent call last):
File “/usr/bin/seaf-cli”, line 1023, in
main()
File “/usr/bin/seaf-cli”, line 1019, in main
args.func(args)
File “/usr/bin/seaf-cli”, line 519, in seaf_download
tmp = get_repo_download_info("%s/api2/repos/%s/download-info/" % (url, repo), token)
File “/usr/bin/seaf-cli”, line 308, in get_repo_download_info
repo_info = urlopen(url, headers=headers)
File “/usr/bin/seaf-cli”, line 234, in urlopen
resp = urllib.request.urlopen(req)
File “/usr/lib/python3.6/urllib/request.py”, line 223, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python3.6/urllib/request.py”, line 532, in open
response = meth(req, response)
File “/usr/lib/python3.6/urllib/request.py”, line 642, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/lib/python3.6/urllib/request.py”, line 570, in error
return self._call_chain(*args)
File “/usr/lib/python3.6/urllib/request.py”, line 504, in _call_chain
result = func(*args)
File “/usr/lib/python3.6/urllib/request.py”, line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized