Nodes
init
Initialize the current server as a node in OPS. Run this directly on the server you want to register.
ops init [OPTIONS]Options:
--daemon
true
Start ops serve daemon
--project
Limit to specific projects (comma-separated)
--app
Limit to specific apps (comma-separated)
--region
Region label (e.g., us-east, eu-west)
--port
8377
Port for the ops serve daemon
--hostname
Custom hostname for this node
--compose_dir
Docker Compose project directory
What it does:
Verifies you're logged in
Cleans up any old OPS configuration residue
Reads your local SSH public key
Registers the node with the OPS API
Adds CI SSH key to
~/.ssh/authorized_keysInstalls
ops serveas a systemd serviceConfigures nginx reverse proxy for the serve endpoint
Example:
Output:
After init, you can access this server remotely:
node list
List all nodes owned by the current user.
Shows node ID, hostname, status, region, and domain. Status indicators:
●healthy●unhealthy◐draining○offline
node info
Show detailed information about a specific node.
Arguments:
id
Node ID
node remove
Remove a node from OPS.
Arguments:
id
Node ID
--force
Skip deletion confirmation
Last updated
