Install and sign in
Use Node.js 22.12 or later with npm. Run the same install command when you want to update.campos login --no-browser and open the address it prints on a device with a browser. Run campos on its own to open the terminal dashboard.
Deploy from a project folder
Open a terminal in your project folder and runcampos create. The CLI asks for the application settings, uploads the project, and links the folder to your new application. If the application already exists, run campos link in the folder to select it.
campos deploy from the linked folder to upload the updated project and restart the application. See the application deployment guide for runtime and configuration details.
Manage an application
The examples below use the application linked to the current folder. Runcampos apps to see the applications available to the active team.
GitHub deployment commands apply to applications connected to a GitHub repository.
Work with databases and teams
- Run
campos db createto choose the database engine and settings. Save the generated password when it appears. - Run
campos db stats my-dbto see usage andcampos db logs my-db -fto follow the console. Replacemy-dbwith your database name. - Run
campos db delete my-dbto permanently remove a database and its data. In an interactive terminal, the CLI asks you to type the name before deleting it. - Run
campos teamsto list your teams andcampos team useto select one. Usecampos --team my-team appsto select a team for a single command. - Run
campos planto check plan usage and renewal, orcampos plan --opento open the account page.
campos --help for the full command list, or campos db create --help for the options of an individual command.