Installing apps from CLI with help of occ app:install

Hello,

I wonder if you somehow can find what the app-id is for all the apps?

I have been trying to install som apps with app:install and managed to install calendar and group folders, but I have no luck with apps such as Two-Factor TOTP Provider

Can you somehow use app:list to show ALL the apps that are availible to be installed or can it only show those that are installed but enabled OR disabled?

How Can I find the correct App-id so that I can install apps in the CLI with app:install the easiest way without looking in the app store in Nextcloud first?

EDIT:
Been trying with:
“Two-Factor TOTP Provider”
“Two-FactorTOTPProvider”
“Two-Factor_TOTP_Provider”
“Two-Factor”
“TOTP”

Usually that should be an easy task, because the appid is the name of the app. If you want to install the broser warning app, it look like this:

occ app:install --keep-disabled --verbose browser_warning

I recommend to lookup the app in the app store, point to the app name and check the download url or you navigate to the app download and check how the archive is named.

“Two-Factor TOTP Provider” -> twofactor_totp

1 Like

Ahh okey,

But you can’t get it to something like this? Where it shows apps that I can install.

sudo -u www-data php /var/www/html/nextcloud/occ app:list
Enabled:
  - accessibility: 1.5.0
  - activity: 2.12.0
  - bruteforcesettings: 1.6.0
  - calendar: 2.0.3
  - cloud_federation_api: 1.2.0
  - comments: 1.9.0
  - contactsinteraction: 1.0.0
  - dav: 1.15.0
  - federatedfilesharing: 1.9.0
  - federation: 1.9.0
  - files: 1.14.0
  - files_pdfviewer: 1.8.0
  - files_rightclick: 0.16.0
  - files_sharing: 1.11.0
  - files_trashbin: 1.9.0
  - files_versions: 1.12.0
  - files_videoplayer: 1.8.0
  - firstrunwizard: 2.8.0
  - groupfolders: 6.0.6
  - logreader: 2.4.0
  - lookup_server_connector: 1.7.0
  - nextcloud_announcements: 1.8.0
  - notifications: 2.7.0
  - oauth2: 1.7.0
  - password_policy: 1.9.1
  - photos: 1.1.0
  - privacy: 1.3.0
  - provisioning_api: 1.9.0
  - recommendations: 0.7.0
  - serverinfo: 1.9.0
  - settings: 1.1.0
  - sharebymail: 1.9.0
  - support: 1.2.1
  - survey_client: 1.7.0
  - systemtags: 1.9.0
  - text: 3.0.1
  - theming: 1.10.0
  - twofactor_backupcodes: 1.8.0
  - twofactor_totp: 4.1.3
  - updatenotification: 1.9.0
  - viewer: 1.3.0
  - workflowengine: 2.1.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_ldap
Not installed:
   ....

But I magange to install Two-Factor now, but i need to look in the store everytime I need the iD then and not able too look it up in the CLI with the app:list command or something?

Afaik, a function to list all available apps in the app store doesn’t exist yet.

1 Like

Hum… well that sucks, but atleast I know how to find the app-id now. Thanks for the help! :slight_smile:

Also, where is occ located? From /var/snap/nextcloud even when I do find . | grep next | less I am still struggling to find it. Maybe it is now “ncc”?