vanilla/vanilla-cli

This package is abandoned and no longer maintained. No replacement package was suggested.

Vanilla Forums Command Line Interface. Simplify common forum development related tasks.

Package info

github.com/vanilla/vanilla-cli

Type:project

pkg:composer/vanilla/vanilla-cli

Statistics

Installs: 847

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 21

v1.8.1 2020-08-26 20:07 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b5fb8aa69e20c81dadec83d902a7747969eef9c3

  • Todd Burry <todd.woop@vanillaforums.com>
  • Adam Charron <adam.woop@charrondev.com>
  • Alexandre (DaazKu) Chouinard <alexandre.c.woop@vanillaforums.com>

This package is auto-updated.

Last update: 2023-02-03 16:04:00 UTC


README

This tool is used to make various tasks easier for developers working on Vanilla Forums core or addons.

Current functionalities include:

  • Building frontend assets (scripts, stylesheets, and images)
  • Generating cache files for addons
  • Converting addons' info arrays to json

See the vanilla-cli docs for documentation about the different commands.

Table of Contents

Installation

See our Installation Docs and our Quickstart Guide.

Basic Usage

  • From the command line:
vanilla --help

or

vanilla SOME_COMMAND --help
  • From other php applications:
require('{{VANILLA_CLI_DIRECTORY}}/vendor/autoload.php');
$cli = new \Vanilla\Cli\Cli();
try {
 $cli->run($args); // Must be: array('vanilla', '{{COMMAND_NAME}}'[, options...])
} catch (Exception $e) {
 ...
}

Documentation

More detailed usage documentation can be found at our official vanilla-cli docs.

Tests

Some of the node.js build processes have unit and integration tests. Be sure that these pass before making pull requests. To run the tests:

The NodeTools tests are run using jest.

$ yarn install

$ yarn test
# Or 
$ yarn test --watch

Debugging

During local development you may want to run a debugger. This is supported for the primary PHP process.

PHP

Ensure you IDE is properly configured for XDebug.

How to setup PHPStorm for XDebug

Debugging in VsCode

Running the Debugger

Just export XDEBUG_CONFIG from your shell, set up your IDE to listen for XDebug, and run your vanilla command.

export XDEBUG_CONFIG="idekey=PHPSTORM"
vanilla some-command --some-argument