Robo missing suitecrm8

Hi there!

I’m wondering if ./vendor/bin/robo command line stills works on suitecrm8. There was a lot of command line tools to be executed from robo, and i did not be any replacement running those with ./bin/console.

When I call it from console it throws up a fatal error.

Fatal error: Uncaught Error: Call to a member function set() on null in /tmp/suitecrm/public/legacy/include/SugarCache/SugarCache.php:222
Stack trace:
#0 /tmp/suitecrm/public/legacy/include/utils.php(1229): sugar_cache_put('app_list_string...', Array)
#1 /tmp/suitecrm/public/legacy/lib/Robo/Traits/CliRunnerTrait.php(90): return_app_list_strings_language('en_us')
#2 /tmp/suitecrm/public/legacy/lib/Robo/Plugin/Commands/ApiCommands.php(82): SuiteCRM\Robo\Plugin\Commands\ApiCommands->bootstrap()
#3 [internal function]: SuiteCRM\Robo\Plugin\Commands\ApiCommands->__construct()
#4 /tmp/suitecrm/vendor/league/container/src/Definition/ClassDefinition.php(47): ReflectionClass->newInstanceArgs(Array)
#5 /tmp/suitecrm/vendor/league/container/src/Container.php(289): League\Container\Definition\ClassDefinition->build()
#6 /tmp/suitecrm/vendor/league/container/src/Container.php(85): League\Container\Container->getFromThisContainer('SuiteCRM\\Robo\\P...', Array)
#7 /tmp/suitecrm/vendor/consolidation/robo/src/Runner.php(380): League\Container\Container->get('SuiteCRM\\Robo\\P...')
#8 /tmp/suitecrm/vendor/consolidation/robo/src/Runner.php(342): Robo\Runner->instantiateCommandClass('SuiteCRM\\Robo\\P...')
#9 /tmp/suitecrm/vendor/consolidation/robo/src/Runner.php(315): Robo\Runner->registerCommandClass(Object(Robo\Application), 'SuiteCRM\\Robo\\P...')
#10 /tmp/suitecrm/vendor/consolidation/robo/src/Runner.php(276): Robo\Runner->registerCommandClasses(Object(Robo\Application), Array)
#11 /tmp/suitecrm/vendor/consolidation/robo/src/Runner.php(157): Robo\Runner->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Robo\Application), Array, Object(Composer\Autoload\ClassLoader))
#12 /tmp/suitecrm/vendor/consolidation/robo/robo(48): Robo\Runner->execute(Array)
#13 /tmp/suitecrm/vendor/bin/robo(120): include('/tmp/suitecrm/v...')
#14 {main}
  thrown in /tmp/suitecrm/public/legacy/include/SugarCache/SugarCache.php on line 222

thanks!

@lukio If you go to /public/legacy/ and call robo from there, it works!

root@589fa1fc47a0:/tmp/suitecrm/public/legacy# ../../vendor/bin/robo
Robo 2.2.2

Usage:
  command [options] [arguments]

Options:
  -h, --help                           Display help for the given command. When no command is given display help for the list command
  -q, --quiet                          Do not output any message
  -V, --version                        Display this application version
      --ansi                           Force ANSI output
      --no-ansi                        Disable ANSI output
  -n, --no-interaction                 Do not ask any interactive question
      --simulate                       Run in simulated mode (show what would have happened).
      --progress-delay=PROGRESS-DELAY  Number of seconds before progress bar is displayed in long-running task collections. Default: 2s. [default: 2]
  -D, --define=DEFINE                  Define a configuration item value. (multiple values allowed)
  -v|vv|vvv, --verbose                 Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help                              Display help for a command
  list                              List commands
 api
  api:configure-v8                  Configures the SuiteCRM V8 API with all defaults
  api:create-client                 Creates OAuth2 client
  api:create-user                   Creates a SuiteCRM user for the V8 API
  api:export-postman-env            Export a postman environment for the V8 API
  api:generate-keys                 Generate OAuth2 public/private keys
  api:rebuild-htaccess-file         Rebuild .Htaccess file
  api:set-key-permissions           Sets the Oauth2 key permissions
 build
  build:suite-p                     Build SuiteP theme
  build:theme                       Compile a theme (SASS) based in SuiteP
 cache
  cache:clean                       [clean:cache] Clean 'cache/' directory
 chromedriver
  chromedriver:install              Download and install ChromeDriver.
  chromedriver:run                  Run ChromeDriver.
 code
  code:coverage                     Runs code coverage
 configure
  configure:tests                   Configure environment for testing
 current
  current:state                     
 elastic
  elastic:index                     Indexes the sql database in the Elasticsearch engine.
  elastic:rm-index                  Deletes the Elasticsearch index.
  elastic:search                    Performs a search using the given parameters.
 fake
  fake:travis                       Configures local environment to look like travis
 repair
  repair:database                   Synchronize database tables with vardefs.
  repair:normalize-record-encoding  Repairs record normalization
  repair:rebuild-extensions         This Robo task rebuilds the CRM extension files found in custom/Extension.
  repair:rebuild-relationships      Rebuilds relationships defined in modules/MODULE/vardefs.php.
 restore
  restore:state                     
 style
  style:phpcsfixer                  A tool to automatically fix all PHP coding standards issues.
  style:phpcsfixer-dry-run          Lints the codebase without modifying any files.
  style:phpcsfixer-modified         A tool to automatically fix all PHP coding standards issues in modified files.
 tests
  tests:acceptance                  Run acceptance test suite with the custom env.
  tests:api                         Run API test suite.
  tests:install                     Run install test suite with the custom env.
  tests:unit                        Run PHPUnit unit test suite.
 upgrade
  upgrade:suite                     [upgradeZipFile] [logFile] [pathToSuiteCRMInstance] [adminUser]
root@589fa1fc47a0:/tmp/suitecrm/public/legacy# ../../vendor/bin/robo repair:database
➜  Repairing database...
➜  Database synchronized with vardefs!
➜  Executed queries: 0
root@589fa1fc47a0:/tmp/suitecrm/public/legacy# 

Suitecrm 8.1.3
I’m not sure if all commands works.

2 Likes