Skip to main content

#SFDX CLI0 discussing

Finally, this is happening… org check is also a sf plugin.

You can analyse multiple orgs from your CLI without installing the app in these orgs.

This is fantastic!!

Install it via:

sf plugins install @orgcheck/sfdx-plugin

More commands will follow soon.

#SFDX CLI #Sfdx Plugins #Org Health Check #Audit Table
0/9000

Current error "Cannot find Lightning Component Bundle lwc learning."  Apparently at some point I created an LWC called lwc learning or lwc_learning. I now can't find the folder or file but when attempting to deploy source to org I can't do it :(     Is there a way to ignore this file or folder specifically? Or even better find and remove the reference.     Please halp.

 

#SFDX CLI #Lightning Web Components #Lightning Configuration 

Cannot find Lightning Component Bundle

 

Screen Shot 2021-07-11 at 12.54.45 pm.png

 

Screen Shot 2021-07-11 at 12.54.54 pm.png

2 answers
  1. Feb 11, 2:45 PM

    I know this question is old, but I had a similar problem: the error indicated that itcouldn't find lwc 'ProjectAccounts' but I didn't even code a LWC with this name. Noticed that it was the exact name of my parent/project folder, not an old LWC. 

    So I renamed it with LowerCase only ( ProjectAccounts -> project-accounts) and it worked!! Maybe it's a problem with naming the sf project with Upper case 

     

    Also I used the following command in the terminal:  

    sf project deploy start --source-dir force-app/main/default/lwc/<YOUR-LWC-NAME>  --target-org <YOUR-ORG>

0/9000

Did any one facing this Error "Command 'SFDX: Create Project' resulted

in an error"

I am already installed CLI new Version and VS code twice but still facing this Problem. 

Please help me to resolve itDid any one facing this Error

 

#Trailhead Challenges  #SFDX CLI  #VSCODE  #LWC

2 comments
0/9000

I've built a 2GP Package that I am trying to release as a Unlocked Package.

 

I've overcome various validation errors due to missing features or settings in my Scratch Org Definition file. 

 

However my package includes a Sharing Set which depends on the Contact being 'Private' and by default its 'Controlled by Parent', is there a way to define this feature/setting in my Scratch Org Definition File? 

 

@* Experience Cloud * @*Experience Cloud Developers* @Unlocked Packages  @Salesforce DX @* Salesforce Platform *

 

#Salesforce CLI #SFDX CLI #Salesforce Platform #Unlocked Packages #Unmanaged Package #Second Generation Packages #Scratch Org Definition #Experience Cloud #Experience Builder

2 answers
  1. Dec 4, 2024, 2:18 PM

    @Tom Bassett this might help you - https://salesforce.stackexchange.com/questions/218183/sfdx-sharing-settings-scratch-orgs

     

    Is your package ultimately intended for public consumption, or are you just using it internally with your own org(s)?  Deploying sharing-related settings on standard objects can be tricky because the destination org may have valid reasons for how sharing is configured on their standard objects and can't change to support your package.

0/9000

🚀 Introducing Simple SF CLI: Supercharge Your Salesforce Deployments!

 

I'm excited to share my recent side project: Simple SF CLI, a lightweight 11 kb, Node.js-powered command-line tool crafted to simplify and accelerate Salesforce DX (SFDX) workflows. With this tool, you can:

 

1. 🛠️ Convert, package, and deploy in just 5-7 seconds, far faster than installing Salesforce CLI or SGD.

2. 🚫 Skip the need for Salesforce CLI or additional plugins.

3. 🔗 Seamlessly integrate it into CI/CD pipelines like bitbucket, github etc.,

 

This pet project is designed to streamline your workflow and save time for developers and admins alike. Give it a try!

 

#sfcli #devops #sf #sfdx

 

Want to see it in action? go ahead and install simple-sf-cli

 

#Salesforce Developer  #SFDX CLI  #Salesforce

0/9000

Resources from the Salesforce Developers Ask Me Anything on Summer ’24 Snapshots & Salesforce CLI

 

I hope you joined us for the fantastic SFDevsAMA on Wednesday 31 July 2024 hosted by @Charles Watkins and featuring product managers @Rohit Mehta and @Vivek Chawla. They loved answering your questions about the updated #Salesforce CLI and Scratch #Org Snapshot. If you missed it, don't worry - we recorded the series and our experts have provided some great resources that our experts for you to continue your learning! 

 

Still have questions? Post them in this thread for our experts!

 

#Ask An Expert #CommUpdates #CommUpdates#CommUpdates #SFDX CLI #DX Snapshots

1 comment
0/9000

Summer '24 Snapshots & Salesforce CLI: Salesforce Developers Ask Me Anything July 2024

 

It’s a double whammy for the July edition of Salesforce Developers Ask Me Anything. Tune into our live stream with Lead Developer Advocate @Charles Watkins (his first AMA!) as he hosts Director, Product Management @Vivek Chawla and Senior Director, Product Management @Rohit Mehta to answer all your questions about:

 

  • Scratch Org Snapshots: Now generally available (GA) in Summer '24, snapshots let you capture and replicate the state of your scratch org, speeding up development and CI tasks.
  • Salesforce CLI (v2): Celebrating its first anniversary, the updated CLI offers better performance and stability, new source decomposition options, and automatic source mobility in Summer ’24.

Date: Wednesday July 31, 2024

Time: 9am PT

Theme: Summer '24 Snapshots & Salesforce CLI

Click here to register!

 

*If you cannot attend the livestream, don't worry - all sessions are recorded and can be watched on our dedicated AMA playlist on the Salesforce Developers YouTube channel.

Summer '24 Snapshots & Salesforce CLI: Salesforce Developers Ask Me Anything July 2024 It’s a double whammy for the July edition of Salesforce Developers Ask Me Anything.

#Org Snapshot #Salesforce CLI #SFDX CLI #Salesforce Platform @* Salesforce Platform * #DX Snapshots #Org Snapshot

0/9000

Hello,

 

I'm trying to understand what are the best practices when working on a project that has  Omnistudio components (FlexCards, IP, Omniscript, etc.). Is it advisable to have a scratch org for every developer when doing their customisation or a common Dev Org or one dev box per developer? What is recommended? What are the challenges and considerations of different approaches especially from omnistudio point of view?

 

Thanks,

Neelesh

 

#Omnistudio #Deployment #SFDX CLI #Devops #Salesforce Developer

1 answer
  1. May 5, 2024, 2:02 AM

    Recommended Approach - Development Org with Version Control:

    Use a single Developer Org shared among your development team. This allows for: 

    Collaboration: Developers can easily share and test Omniscripts, FlexCards, and other components.

    Consistency: Ensures everyone is working on the same codebase and avoids versioning issues.

    Implement a robust Version Control System (VCS) like Git: 

    Track changes, revert to previous versions if needed.

    Manage concurrent development and avoid conflicts.

    Challenges of Scratch Orgs for Omnistudio:

    • Limited Functionality: Scratch orgs lack features crucial for Omnistudio development, such as:
    • OmniStudio Metadata API: This API allows deploying and retrieving Omniscript components between orgs. Not available in scratch orgs.
    • DataRaptor Actions: DataRaptor actions are custom code snippets used within Omniscripts. Scratch orgs lack the security model to support them.
    • Deployment Overhead: Frequent deployments from scratch orgs to a testing or staging org become cumbersome and inefficient.

    Hope this helps

0/9000

Using sdfx pull command to pull a PersonAccount Matching Rule from a scratch org is having some issues. The pulled file (Account.matchingRule) is almost empty. Please find the content of the file below. As you can notice, the file doesn't have any meta information about my custom matching rule that I created in my scratch org. Any ideas? Is this an SFDX bug?

<?xml version="1.0" encoding="UTF-8" ?>

<MatchingRules xmlns="http://soap.sforce.com/2006/04/metadata" />

#SFDX CLI #Sfdx Command #Person Account #Matching Rule #Sfdx #SFDX Source

5 answers
  1. Apr 1, 2024, 3:54 AM

    For anyone who comes here for a solution: To include PersonAccount Matching rule, you have to use PersonAccount.<MatchingRuleName>

    <types>

    <members>PersonAccount.Custom_Person_Account_Matching_Rule</members>

    <name>MatchingRule</name>

    </types>

    <types>

    <members>PersonAccount</members>

    <name>MatchingRules</name>

    </types>

0/9000

Hi All, 

 

I have downloaded the salesforce CLI software in windows and installed in my Pc but when I am trying to deploy in VS code its showing error and I tried to give a run code in  Command prompt as " SFDX --version" and "Update CLI" but am encountering an error as"  

 

 "C:\Users\Hi\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' is not recognized as an internal or external command,

operable program or batch file." 

 

and I also tried to add the path in system environment variables but same error recieving.

 

Please anyone help me out of this??

 

#SFDX CLI

1 answer
  1. Feb 19, 2024, 9:26 AM

    Hi @Kanaka Deepak BYSANI,

    1. Verify if Salesforce CLI is installed successfully or not. If Salesforce CLI is already installed, check the version number by running the command "sfdx --version" in the terminal. Make sure it is the latest version.

    2. Add the path of the Salesforce CLI to the environmental variables. If updating Salesforce CLI does not fix the issue, try deleting the sfdx folder located at "C:\Users\username\AppData\Local\sfdx" and then reinstalling Salesforce CLI.

     

    If none of the above steps work, try restarting VS Code and your machine.

    Related:https://developer.salesforce.com/forums/?id=9062I000000DKBwQAO

    https://github.com/forcedotcom/salesforcedx-vscode/issues/3459

    https://github.com/forcedotcom/salesforcedx-vscode/issues/2869

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4P9DSAV

    I hope this helps!

     

    Thanks

    Saurabh

0/9000