A simple cli tool for building visualforce pages locally using cutting edge front-end build systems.
npm install simple-vf-cli@RemoteAction) and Remote Objects () in your app to CRUD your data for free, no api hits!
npm install simple-vf-cli -g
`
This will add the svf command to your path.
> _Unfortunately you cannot use Yarn to install this cli globally because we are using PouchDB under the hood and Yarn is unable to download and install the right binary. This ends up producing an error stating you need Python installed on your machine which is unnecessary for this project._
Now you can run the svf --version command to ensure simple-vf-cli installed successfully:
NOTE: The version number displayed for you may vary
`
> svf --version
0.7.0
`
Run the svf --help command to see all available commands/options.
> _You can also simply type the svf command with no arguments to produce the same documentation._
$3
---
#### auth
`
> svf auth
`
This command will create an authentication connection to the desired Salesforce org. This connection is stored in a PouchDB instance provided by this tool. Your password will be encrypted using a randomly generated key that is unique to your computer and your computer only.
> _Neither your password or your unique encryption key will ever be transmitted anywhere, guaranteed!_
---
#### new
`
> svf new
`
This command will create a new Visualforce page (or find an existing one) for the name that you have entered. This new page will be stubbed out with the necessary custom setting, javascript, and css references needed to run inside Salesforce.
You will be asked to choose the type of build system you are using locally to create this page. If you do not see your build system listed, that means a plugin for that build system has not been created yet. More documentation is to come on building plugins.
> _NOTE: Check the wiki in this repo to see a tutorial for your specific build system._
---
#### serve
`
> svf serve
`
This command will start an ngrok tunnel that will port your local build system's "output" directory to your Visualforce page. The SimpleVfPageConfig custom setting will be updated with the randomly generated ngrok tunnel domain which will allow the Visualforce page to access the javascript and css resources being served by your local front end build system.
---
#### deploy
`
> svf deploy
``