-
Notifications
You must be signed in to change notification settings - Fork 5
Commands
Do OAuth login and associate the login information with the current project.
An optional third argument url
is available, which can be only either
'test.salesforce.com' or 'login.salesforce.com'. If this argument is ommitted,
the login will go to 'test.salesforce.com' by default.
Open the org in the default browser without using password. If the alias
or
username
is provided, it would open the org according to the provided login
information, otherwise, it would choose the alias on the project to open.
The alias
or the username
must have been used in the dev login
at least
once. More specifically, after running dev login
on the project
'ctcproperty' using the username '[email protected]', the OAuth information of
'[email protected]' will be saved, and 'ctcproperty' will be linked to the
username '[email protected]'. In this case we can use dev open ctcproperty
or
dev open [email protected]
to open the org on the browser. Alternatively, if
we have already navigated inside the 'ctcproperty' project directory, we can
save the third argument, running dev open
only.
If the username
is not provided, the command will list all alias with its
associated username.
If a username
is given, the command will replace the associated username
of the alias to the given username
.
Compile the class files and deploy it to the associated org.
The command requires at least one class file name.
Compile the static resources and deploy it to the associated org.
The command requires at least one package name.
Compile and deploy all lightning components and their related static resources.
Execute unit tests. If test_classes
is provided, it will execute all test
code within those classes. Otherwise, it will execute all test code in all
classes.
Execute an SOQL query and print the result to standard output.
To avoid some of the characters, e.g. single quote, less than sign, being
parsed as bash operators, it is recommended that the soql_expression
is surrounded by double quotes.
Execute anonymous apex code from the standard input.
If the command is dev execute
, it reads the user terminal input as the
standard input. In this case, we can type multiple lines of apex codes,
then type CTRL-D indicating the end of file to finish.
Alternatively, we can write the apex code in a file, then redirect the file
to standard input of the dev execute
command. Example:
dev execute < test.apex
Print detail of a record to standard output.
Print the fields of an object to standard output.