mapbox/mapbox-cli-py

MapboxAccessToken or MAPBOX_ACCESS_TOKEN?

planemad opened this issue · 2 comments

-help says its MAPBOX_ACCESS_TOKEN but using this gave me the error

Before running this command you must set a Mapbox access token to an environment
variable named MapboxAccessToken. The access token must include the "uploads:write"
scope. Learn more about access tokens at https://www.mapbox.com/developers/api/#access-tokens.

So I tried export MapboxAccessToken= and this did the trick. I'm running v0.2.0.

cc @perrygeo

@planemad That looks like the usage text for mapbox-upload not mapbox upload :-)

For mapbox upload, everything should work by setting MAPBOX_ACCESS_TOKEN, MapboxAccessToken or both. We use the CamelCase version as a fallback for backwards compatibility but the ALL_CAPS version takes precedence.

@perrygeo yikes, that was right.