Master da Web
mw CLI

mw CLI: your whole cloud in the terminal

Create servers, ship apps, connect to your database and follow the logs without leaving the terminal. It works the same on your computer, on a server over SSH and in your CI pipeline.

  • macOS, Linux and Windows
  • Browser sign-in with a code
  • Table, JSON or YAML output
  • CI-ready Docker image

Terminal

# your servers, as a table or as JSON$ mw instances -o json# always one awake, up to five under load$ mw scale --min 1 --max 5# back to version 3, no new build$ mw rollback 3# a spending cap for the period$ mw wallet cap set 500 --stop
Installation

Install it with one command

Pick the method for your system. The CLI updates the same way.

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/masterdaweb/mw-cli/main/install.sh | sh

Homebrew

brew install masterdaweb/tap/mw

npm

npm install -g @masterdaweb/cli

Windows (PowerShell)

irm https://raw.githubusercontent.com/masterdaweb/mw-cli/main/install.ps1 | iex

Docker (CI)

docker run --rm -e MW_TOKEN ghcr.io/masterdaweb/mw-cli:0.2.0 instances -o json

Sign in to your account

On your computer, mw login opens the console for you to confirm. In CI, use a token in the MW_TOKEN variable.

Terminal

$ mw login          # shows a code and opens the console$ mw whoami         # the token's account and scopes$ mw logout         # revokes this computer's token

Serverless commands

mw deploy, mw launch, logs, one-off commands, variables, databases, volumes, domains and rollback, one by one, in the documentation (in Portuguese).

See the serverless commands
Features

Built for everyday work and for scripts

Fast when you type, predictable when you automate.

Browser sign-in

mw login shows a code and opens the console for you to confirm. It even works over SSH: just open the link on another device.

Asks for confirmation

Before deleting or reinstalling an instance, the CLI asks you to type its id back; in scripts, --yes answers for you. Services, databases, buckets and volumes are deleted only with --confirm and the name.

Waits when you want it to

Commands that keep working after they return accept --wait and show progress until they finish.

JSON for scripts

-o json or -o yaml print what the API returned; -q prints only the IDs, so you can chain commands.

Shell completion

Completes commands and names in bash, zsh, fish and PowerShell.

Verified downloads

Every version is checked against the release's checksums.txt before it installs.

Examples

What you can do

The same resources as the console, one command at a time.

VPS servers

Create, resize, take snapshots and enter rescue mode.

VPS servers

$ mw instances create --plan c2m4 --image ubuntu-24-04 --ssh-key work --name web-1 --wait$ mw instances resize web-1 --plan c4m8 --wait$ mw snapshots create web-1 --name before-upgrade$ mw instances rescue enter web-1 --ssh-key work

Serverless apps

Deploy a folder or a repository, follow along and roll back.

Serverless apps

$ mw launch ana/loja$ mw deploy$ mw logs -f$ mw rollback 3

Databases and files

Create, connect and bind to services without copying a password.

Databases and files

$ mw db create loja-prod --extension vector$ mw db connect loja-prod$ mw storage create loja-uploads$ mw storage bind loja-uploads --service web --layout framework

Networking, DNS and costs

Firewall, DNS records and a spending cap.

Networking, DNS and costs

$ mw firewalls rules add web --direction in --action ACCEPT --protocol tcp --port 80,443$ mw dns records set loja.com.br www A 203.0.113.10$ mw usage$ mw wallet cap set 500 --stop
Developers

Other tools

REST

Public API v1

The foundation of it all: every console resource has an endpoint, with JSON responses and errors that tell you what to do.

  • An OpenAPI spec to generate clients in any language
  • Scoped tokens, such as vm:read or dns:write
  • Long-running actions return an operation you can track
Explore the API
IaC

Terraform

Declare servers, networks, DNS, apps, databases and buckets in HCL, and version your infrastructure with your code.

  • Official masterdaweb/masterdaweb provider on the Terraform Registry
  • Import what already exists in your account
  • Signed releases
Explore the provider
AI

MCP server

Connect Claude, Cursor or another MCP client and manage your account by chatting.

  • OAuth sign-in with the permissions you choose
  • Destructive or billable actions wait for your confirmation
  • Everything goes into the activity log
Explore the MCP server
FAQ

Frequently asked questions about the CLI

Automate your infrastructure today

Create your account, generate a token and make your first call in minutes.