NAME
App::SFDC::Command::ExecuteAnonymous - Use the apex API to execute anonymous apex code
VERSION
version 0.15
SYNOPSIS
SFDC executeAnonymous [options] -E "system.debug(1);" > anonymous.log
SFDC executeAnonymous [options] -f anonymous.apex > anonymous.log
SFDC executeAnonymous [options] > anonymous.apex > anonymous.log
DESCRIPTION
executeAnonymous provides a command-line interface to the Salesforce.com apex API's executeAnonymous function. Diagnostics are printed to STDERR and any logs are printed to STDOUT.
METHODS
execute()
Executes the anonymous code against the target sandbox, printing the debug log to STDOUT and returning truth or falsehood depending on whether the code executed successfully.
PROVIDING APEX CODE
Code can be specified in three ways (as demonstrated in the synopsis), in order of priority:
In the command invocation using -E; Read from a file, specified using -f; Read from STDIN.
AUTHOR
Alexander Brett <alexander.brett@sophos.com> http://alexander-brett.co.uk
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by Sophos Limited https://www.sophos.com/.
This is free software, licensed under:
The MIT (X11) License
The full text of the license can be found in the LICENSE file included with this distribution.