Every day is a command line day for me these days, and it’s incredibly fun, addictive and easier than you think. In the now infamous words of Mr Peter Chittum:
“Do Not Fear the Command Line”
Of course, I am talking a bit more than just Command Lines in general here – I am talking the Salesforce CLI. But what is the Salesforce CLI?
“The Salesforce CLI is a powerful command line interface that simplifies development and build automation when working with your Salesforce org. “
Yes the Salesforce CLI is at the heart of the new Salesforce Developer Experience – Salesforce DX or SFDX for short – but did you know that it has a life of its own and can be used with or without SFDX and Scratch Orgs?
On a daily basis, I am performing a number of admin and development tasks across all the different org types – so stay tuned you admins, this will be something for you too, we guarantee it!
Over the coming weeks (or months, or as long as it takes…) we will be sharing videos covering as many aspects of the Salesforce CLI, including sharing some useful tips and tricks which we have learnt along the way.
Here are some other useful links to keep you company throughout this series:
Download the SFDX CLI from here
In today’s session we are learning the following:
- Viewing/listing all available CLI commands
- Connecting to a Developer Org
- Connecting to a Sandbox Org
- Opening Orgs insanely quickly
- Setting and changing an alias
- Setting up a basic bash_profile alias for rapid CLI usage
Sound good? Then watch the video now:
Enjoy that? Then stay tuned for more! Here’s what you can expect to see coming up in future posts and videos:
- Running SOQL queries – executing a SOQL query and dumping the data out to CSV is a doddle and extremely useful
- Saying goodbye to the Data Loader with insanely easy data loading
- Running Anonymous Apex – executing Apex in the dev console is laborious and annoying at best, but now imagine building up your own little library of Apex snippets which you can quickly throw at any org
- Run Apex tests and now need the coverage for each class? That’s easier said than done, but the CLI can help
- Grabbing logs and viewing locally …you may not have realised just how much you needed this one
- Tailing and streaming logs, I call this one the icing on the cake, so watch out for it!
Whet your appetite for more? We’ll be back with more soon!
Well done! It is so well written and interactive. Keep writing such brilliant piece of work. Glad i came across this post. Last night even i saw similar wonderful Salesforce tutorial on youtube so you can check that too for more detailed knowledge on Salesforce.https://www.youtube.com/watch?v=4AJoRkjm998
thank you Kajal for kind words
Hey Mike, How you are doing?
Well I want to appreciate you for your blog. Great information I must say. I also work in an nonprofit salesforce consulting firm and therefore understand the importance of this blog. I will further share in groups. Keep it up!
All good this end. Thank you for appreciation. Best wishes, Mike
Hi Mike, all the 4 parts were great! It would be really great if you can take the super session DX (https://www.youtube.com/watch?v=AkkyKBfLQr8) and try to break this apart and help explain the scripting aspects of Salesforce DX and that would sort of make it a full circle.
Appreciate your work as always!
Hello Mike, This is one of the best information about Salesforce command line. I will share this information with other Salesforce developers