LinuxCommandLibrary

caprover

Deploy and manage applications on CapRover

TLDR

Login to CapRover machine

$ caprover login
copy
Deploy application
$ caprover deploy
copy
Deploy with specific options
$ caprover deploy -n [machine-name] -a [app-name] -b [branch]
copy
Deploy Docker image
$ caprover deploy -i [image-name]
copy
Deploy from tar file
$ caprover deploy -t [app.tar]
copy
List logged-in machines
$ caprover list
copy
Logout from machine
$ caprover logout
copy

SYNOPSIS

caprover command [options]

DESCRIPTION

caprover is the CLI for CapRover, a modern automated app deployment and web server manager. Use it to perform initial server setup and deploy applications via captain-definition files, Dockerfiles, tar files, or Docker images.

PARAMETERS

-n, --caproverName name

Target CapRover machine name
-a, --caproverApp app
Application name to deploy
-b, --branch branch
Git branch to deploy
-t, --tarFile file
Path to tar file for deployment
-i, --imageName image
Docker image to deploy
-d, --default
Use previously entered values
-c, --configFile file
Configuration file path
-u, --caproverUrl url
CapRover machine URL
-p, --caproverPassword password
CapRover password
--appToken token
App-level authentication token

COMMANDS

login

Authenticate with a CapRover machine
logout
Remove authentication for a machine
deploy
Deploy application to CapRover
list, ls
List all logged-in machines
api
Call generic API on CapRover machine

CI/CD INTEGRATION

For automation, provide options directly:

$ caprover deploy -n machine -a app -b main
copy
Requires prior login to the machine.

CAVEATS

Requires Node.js and npm. Uncommitted and git-ignored files are not included when deploying branches. Install via npm install -g caprover.

SEE ALSO

docker(1), kubectl(1), heroku(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community