Trying to connect my org to salesforce cli via vs code, gettinbg the error : The REST API is not enabled for this Organization

Trying to connect my org to salesforce cli via vs code, gettinbg the error : The REST API is not enabled for this Organization

我从 salesforce 开发开始,但是在将我的组织连接到 salesforce cli 时,我收到类似这样的错误 - REST API 未为此组织启用。 请在下面找到屏幕截图 -

enter image description here

而且在浏览器中它也将我重定向到这个 url - http://localhost:1717/OauthRedirect?code=aPrxGfV7WpWWFnHr1BftlZq.nONCzwSN.M7wIvI5VhKlMmdWCqzFghvEPSX729wC0OnXDqB6QA%3D%3D&state=e9d1b63ebaf1 请参考下图-

enter image description here

有什么解决办法吗?如何解决?

您可能不小心注册了 Professional Edition 的试用版,它没有 API 访问权限。要尝试开发,请在 developer.salesforce.com 注册 Developer Edition,它附带 API 访问权限。

如果您使用的组织是您的(付费)企业组织,您仍然应该获得开发版来练习,并注意专业版的开发限制。