Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to update plugins to new version #187

Open
yodatak opened this issue Feb 2, 2024 · 3 comments
Open

Command to update plugins to new version #187

yodatak opened this issue Feb 2, 2024 · 3 comments

Comments

@yodatak
Copy link

yodatak commented Feb 2, 2024

Hello thanks for this cli i didn't find the command to update to news version the civicrm extentions did it exist or it must created ?

Thanks !

@totten
Copy link
Member

totten commented Feb 2, 2024

Thanks @yodatak. The answer is... no+yes...

  • There is currently no singular command to download all available updates. This would need to be created.
  • cv ext:download (aka cv dl) can be used to get the latest published version of an extension. (This is the same as downloading or upgrading an extension through web UI.)
  • cv ext:upgrade-db applies pending DB updates. But this assumes that you've already downloaded new code. It's useful for developers and for some site-builders who track files with additional tooling (eg git).

@yodatak
Copy link
Author

yodatak commented Apr 17, 2024

Thanks here how i do but it don't work great :/

sudo -u civicrm php8.2 -f /usr/local/bin/cv vars:show | jq .CMS_VERSION
sudo -u civicrm php8.2 -f /usr/local/bin/cv vars:show | jq .CIVI_VERSION

sudo -u civicrm php8.2 -f /usr/local/bin/cv ext:list -i
sudo -u civicrm php8.2 -f /usr/local/bin/cv ext:download org.civicoop.civirules -d
[PHP Deprecation] Creation of dynamic property Smarty_Internal_Extension_Handler::$loadFilter is deprecated at /var/www/html/civicrm/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:182
[PHP Deprecation] Creation of dynamic property Smarty_Internal_Extension_Handler::$loadPlugin is deprecated at /var/www/html/civicrm/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:182
[PHP Deprecation] Creation of dynamic property Smarty_Internal_Extension_Handler::$registerPlugin is deprecated at /var/www/html/civicrm/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:182
Using extension feed "https://civicrm.org/extdir/ver=5.72.1|uf=WordPress|status=stable|ready=ready"
The extension "org.civicoop.civirules" already exists. What you like to do?
[k] Keep existing extension. (Default) (Equivalent to option "-k")
[d] Download anyway. (Equivalent to option "-f")
[a] Abort

d
Downloading extension "org.civicoop.civirules" (https://lab.civicrm.org/extensions/civirules/-/archive/3.5/civirules-3.5.zip)
[PHP Deprecation] Creation of dynamic property GuzzleHttp\Psr7\LazyOpenStream::$stream is deprecated at /var/www/html/civicrm/wp-content/plugins/civicrm/civicrm/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php:33

and it stay runing but the download seem to work :/

@MegaphoneJon
Copy link
Contributor

@yodatak

I think you want this line:

sudo -u civicrm php8.2 -f /usr/local/bin/cv ext:download org.civicoop.civirules -d

to be this?

sudo -u civicrm php8.2 -f /usr/local/bin/cv ext:download org.civicoop.civirules -f

Also - you may want to look at my script for finding which extensions need upgrading.

This version identifies all extensions that need updating, including those not approved for in-app distribution. To limit it just to those with in-app distribution, delete the getBrowser() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants