Download Salesforce Sfdx Cli

3 views
Skip to first unread message

Daniel Mcmillen

unread,
Jan 21, 2024, 2:16:42 PM1/21/24
to tialacesro

I've been at this for hours. I have gone through other solutions but they don't work for me. I even tried sfdx force:source:deploy -p [path]. But I receive the error message : Error (1): Connection has no instanceUrl.

It sounds like your authentication has expired or is otherwise corrupted. Try using SFDX: Authorize an Org from the Command Palette. If that fails, check your user's home directory for a folder/directory called .sfdx (e.g. cd %USERPROFILE%/.sfdx or cd /.sfdx), locate the username for the org there (e.g. [email protected]) and delete the file, then try logging in again.

download salesforce sfdx cli


Download ✪✪✪ https://t.co/jbvlY8rxYJ



Now, SFDX not seeing a status difference between my source and my scratch org. I was able to push a layout, but the class had an error (invokable classes can only have one parameter). I fixed that and tried to push again, but got the "No Results Found" error. If I run sfdx force:source:status, I get "No Results found".

UPDATE: I was able to fake it out by creating another new class that did nothing, but when I ran sfdx force:source:status, it showed up, along with the real class I wanted to move. I was able to push them both, then delete the dummy class.

Of course, I didn't go to hell and back just to let you know I made it back. I ended up putting an sfdx project in GitHub that contains a fully deployable community, along with all its related metadata.

Great post. Getting further along behind corporate firewall with: sfdx plugins:install sfdx-mohanc-plugins
Still getting blocked but more detailed message to forward to our firewall team. Was just getting connection resets with: sfdx plugins: install @salesforce/analytics

I also need to create a hierarchy of empty folders until a folder called c:\myfolder\force-app\default\ exists, because I told sfdx-project.json that it would exist. (Otherwise, commands like sfdx force:mdapi:convert fail, and I like that command.)

(Whenever I get an ERROR running force:org:create: This command requires a dev hub org username set either with a flag or by default in the config. message, I probably forgot to set a value for defaultdevhubusername in c:\myfolder\sfdx-project.json.)

df19127ead
Reply all
Reply to author
Forward
0 new messages