GoAdmio Command Line: vendor with /go/vendor

GoAdmio's PHP code relies on third-party libraries managed by Composer, stored in /usr/local/goadmio/includes. /go/vendor installs them. It has two modes: It runs Composer as the go user and locks the folder to read-only when it finishes. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Reinstall everything (empties the folder first)
/go/vendor

# Add one package, leaving the rest alone
/go/vendor monolog/monolog

Arguments

Argument Required Notes
package No A Composer package name such as vendor/name. Optionally add a version, as in monolog/monolog:^3.0.

Arguments are passed straight to composer require, so anything that command accepts works. Without a version, the newest compatible version is installed.

Examples

# Back up the folder before a full reinstall
cp -a /usr/local/goadmio/includes /root/includes.bak

# Full reinstall
/go/vendor

# Add a package
/go/vendor monolog/monolog

# Add a package at a specific version
/go/vendor monolog/monolog:^3.0

# Add several packages at once
/go/vendor symfony/yaml symfony/console

# List the installed packages and their versions
sudo -u go composer show -d /usr/local/goadmio/includes

Output

Line Meaning
Installing VENDORS... The command started.
Composer messages Downloads, installed versions, and any errors.

The command prints no summary of its own and ends with exit code 0 even if a package failed. Read Composer’s messages for errors.

See the full reference at /go/vendor and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *