Loading tutorials
sf. You use it to log in to an org, move metadata between your computer and the org, query records, run Apex, and create temporary orgs for development. Because every action is a typed command, you c7 min readsf command works, and fixing the problems that most often appear on a first install. It assumes you are comfortable in a terminal and know what an org, metadata, and Apex are. If you plan to install with npm, you also need Node5 min readsf commands are built. It covers topics, commands, flags, and the rules for combining them. It assumes you have installed the CLI (the previous chapter) and are comfortable typing commands in a terminal. You do not need an org yet, but some examples show what the commands7 min readsf commands are written as a topic, then a command, then flags. If those ideas are new, review the previous two chapters first. You need only a terminal. No org is required, because help output i6 min readsf authorizes an org, which login method fits which situation, where the credentials are stored, and how to fix common failures.6 min readsf command that touches an org needs to know which org to act on. Typing a full username such as [email protected] each time is slow and error-prone. This chapter covers the two features that remove that friction: aliases and the default target org. It also covers how the CL7 min readsf CLI, can run commands in a terminal, and understand what Salesforce metadata and Apex are. You do not need an authorized org to generate a project, but you will need one in the next chapter to deploy it.6 min readsf commands, have authorized an org, and have set a default target org. It also assumes you have a project from sf project generate and know what metadata is, such as Apex classes, custom objects6 min readsf org login web, set a default target org, and work inside a Salesforce DX project (the earlier chapters cover thes5 min readsf data query: the flags you will use most, how shell quoting affects a query, and how to query relationships, aggregates, deleted recor5 min readsf command. It assumes you have already installed the CLI, authorized an org, and set a default target org (target-org). It also assumes you know basic Apex: classes, System.debug, and test methods annotated with @IsTest.6 min readsf command prints text meant for people. That text is good for reading in a terminal, but it is a poor input for a script. Column widths change, messages get reworded, and progress lines get mixed into the output. The --json flag solves this. It makes the command print one JSON document wi5 min readsf executable, how to move between release channels, and how to add, inspect, and remove plugins. It assumes you can already run sf commands, which 6 min read