# Bower Tasks ## Install Bower Install ``` php taskBowerInstall()->run(); // prefer dist with custom path $this->taskBowerInstall('path/to/my/bower') ->noDev() ->run(); ?> ``` * `allowRoot()` adds `allow-root` option to bower * `forceLatest()` adds `force-latest` option to bower * `noDev()` adds `production` option to bower * `offline()` adds `offline` option to bower * `dir($dir)` Changes working directory of command * `printed($arg)` Should command output be printed * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values * `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. * `option($option, $value = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter. * `optionList($option, $value = null)` Pass multiple options to executable. Value can be a string or array. ## Update Bower Update ``` php taskBowerUpdate->run(); // prefer dist with custom path $this->taskBowerUpdate('path/to/my/bower') ->noDev() ->run(); ?> ``` * `allowRoot()` adds `allow-root` option to bower * `forceLatest()` adds `force-latest` option to bower * `noDev()` adds `production` option to bower * `offline()` adds `offline` option to bower * `dir($dir)` Changes working directory of command * `printed($arg)` Should command output be printed * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values * `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. * `option($option, $value = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter. * `optionList($option, $value = null)` Pass multiple options to executable. Value can be a string or array.