caractrl is the command-line interface for Caravanserai. Use it to inspect nodes, manage projects, apply manifests, and forward ports from a running container to your local machine.
Global flags
Global flags control howcaractrl connects to cara-server and formats its output. They must appear before the subcommand:
string
default:"http://localhost:8080"
URL of the
cara-server control plane. Override this when cara-server is not running on localhost.string
default:"table"
Output format for command results. Accepted values:
table, json, yaml.Output format examples
- table (default)
- json
- yaml
Subcommands
version
Print the build version, commit hash, and build timestamp.get nodes
List all nodes or inspect a single node.get projects
List all projects or inspect a single project. Filter the list by lifecycle phase with--phase.
Examples
apply
Create or update a resource from a YAML or JSON manifest. Thekind field in the manifest determines which resource type is applied. Supported kinds: Node, Project.
Examples
delete node
Remove a node from the control plane by name.delete project
Delete a project by name. The agent on the assigned node tears down all containers belonging to the project. If deletion is already in progress, the command reports that the project is being deleted.port-forward
Forward a local TCP port to a container port on a remote node via the agent’s WebSocket tunnel. This works similarly tokubectl port-forward.
Flags
Examples
Ctrl+C to stop forwarding and close the tunnel.
Automatic agent resolution requires the project to be in
Running or Scheduled phase so that a nodeRef is set. If the project has not been scheduled yet, use --node to specify the agent address directly.