Download - Don't Fear the Command Line
![Page 1: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/1.jpg)
Do Not Fear the Command Line
Peter ChittumDeveloper [email protected]@pchittum
You are smarter than it!
![Page 2: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/2.jpg)
Do Not Fear the Command LineYou Are Smarter Than It
Peter Chittum, Developer Evangelist
@pchittum
![Page 3: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/3.jpg)
Forward-Looking StatementsStatement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
![Page 4: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/4.jpg)
Any Computer User You Want To Use Command Line You Are Not Sure Where to Start
Who are you?
![Page 5: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/5.jpg)
Not an exhaustive "How To"How command line apps workUnderstand what you can do
What to Expect
![Page 6: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/6.jpg)
I'm using a Mac
![Page 7: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/7.jpg)
Overview of Command LinesHow Commands WorkMore Powerful StuffSalesforce CLIsWhere To Go Next (git, npm, brew, grep)
![Page 8: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/8.jpg)
A Brief History of User Interfaces
![Page 9: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/9.jpg)
Your most important tool
![Page 10: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/10.jpg)
ProsLow Resource UsageConcise and PowerfulExpert FriendlyAutomate with Scripting
ConsUnintuitiveCommands not Obvious
Not Visually RichBeginner Unfriendly
![Page 11: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/11.jpg)
The command line is an app
![Page 12: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/12.jpg)
The command line executes commands
![Page 13: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/13.jpg)
Commands are little appsYou write them instead of clicking on them.
![Page 14: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/14.jpg)
Overview of Command LinesHow Commands WorkMore Powerful StuffSalesforce CLIsWhere To Go Next
![Page 15: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/15.jpg)
How a command works
Input(STDIN, FILE)
Output(STDOUT)
![Page 16: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/16.jpg)
Sound familiar?
0013000000rqYCC
CASESAFEID()
0013000000rqYCCAA2
![Page 17: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/17.jpg)
There are also parameters
Input Output
Parameters
![Page 18: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/18.jpg)
Semicolon: Do one thing ; then do another
;
![Page 19: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/19.jpg)
Pipe: Take the output from the first thing and send it to the second
|
![Page 20: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/20.jpg)
Redirect: Take the output from the first thing and write to a file(Careful…this wipes the previous contents of the file)
>
![Page 21: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/21.jpg)
Append: Take the output from the first thing and write to the end of a file
>>
![Page 22: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/22.jpg)
bash (Windows 10)cygwincmdpowershell
What if I'm using Windows?
![Page 23: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/23.jpg)
DemoFiles, Folders, Input, Output
![Page 24: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/24.jpg)
Overview of Command LinesHow Commands WorkMore Powerful StuffSalesforce CLIsWhere To Go Next
![Page 25: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/25.jpg)
aliasCreate a shortcut for a more complicated command
![Page 26: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/26.jpg)
cat, head, tailMeow…Just kidding...different ways to read a file
![Page 27: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/27.jpg)
dogJust kidding…there is no dog...unless you make an alias called "dog"
And you can do that
![Page 28: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/28.jpg)
wcNot the loo…word countcounts stuff
![Page 29: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/29.jpg)
findLook for files
![Page 30: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/30.jpg)
grepSearch in files(global regular expression print)
![Page 31: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/31.jpg)
sedModify data in a stream(stream editor)
![Page 32: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/32.jpg)
awkBasic programming language for Unix systems(not an acronym, and not covering today…)
![Page 33: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/33.jpg)
curlWeb request
(Windows, use iwr)
![Page 34: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/34.jpg)
DemoFiles, Folders, Input, Output
![Page 35: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/35.jpg)
Overview of Command LinesHow Commands WorkMore Powerful StuffSalesforce CLIsWhere To Go Next
![Page 36: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/36.jpg)
> curl https://blixtar-dev-ed.my.salesforce.com/services/data/v39.0/query?q=SELECT+Id,Name+FROM+Account+LIMIT+1 -H 'Authorization: Bearer 00D24000000IwtW!AQ4AQMiGG9NfUlO5njwZpODWCazHSUFRgM26olREehLfu9GPqq1JWSTxwUfgncjdET.13_G0dPm5SobOPuj_F0.vvlU9Ih44'
{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Account","url":"/services/data/v39.0/sobjects/Account/001240000050EByAAM"},"Id":"001240000050EByAAM","Name":"DVLA"}]}
The trouble with curl
![Page 37: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/37.jpg)
force-cliOpen source CLI project
Toolbelt for talking to Salesforce's APIs
![Page 38: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/38.jpg)
Salesforce DX CLITo replace force-cli. Fully supported cli tool.
![Page 39: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/39.jpg)
Lightning CLIStatic Code Analysis for Lightning Components
![Page 40: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/40.jpg)
Heroku CLIFormerly Heroku toolbelt
![Page 41: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/41.jpg)
DemoFiles, Folders, Input, Output
![Page 42: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/42.jpg)
Overview of Command LinesHow Commands WorkMore Powerful StuffSalesforce CLIsWhere To Go Next
![Page 43: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/43.jpg)
Windows is case insensitiveUnix file permissionssudo versus Run As Administrator
Mac/Unix v Windows
![Page 44: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/44.jpg)
Powershell, CMD, cygwin (Windows shells)Z shell (popular powerful Unix shell)Package managers (brew, chocolatey, npm)Automating (cron, shell scripts)Source Control (git)Task Runners (gulp, grunt, …)awk (Unix programming language)REPLs (interactive mode programming)
All the other stuff
![Page 45: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/45.jpg)
Brief History of Command Lineshttp://bit.ly/brief-history-cmd-lines
Windows and Unix Command Line Equivalents: http://bit.ly/win2unixcmd
![Page 46: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/46.jpg)
Q & ARemember to tell us what you think in the event survey www.LondonsCalling.net/survey/
Peter ChittumDeveloper [email protected]@pchittum
![Page 47: Don't Fear the Command Line](https://reader035.vdocuments.us/reader035/viewer/2022062901/58f37c801a28abca498b459b/html5/thumbnails/47.jpg)
Thank You
Peter ChittumDeveloper Evangelist
[email protected]@pchittum
Remember to tell us what you think in the event survey www.LondonsCalling.net/survey/