Skip to main content
The CLI includes built-in diagnostic tools to help you verify your setup, check node connectivity, and configure shell completions.

tc doctor

Run a comprehensive check of your TinyCloud setup.
tc doctor
The doctor command checks:
CheckWhat it verifies
Node.jsRuntime version is >= 18
ProfileA profile exists and is configured
KeyKey pair is present and valid
SessionAn active, non-expired session exists
Node reachabilityThe configured TinyCloud node is reachable
SpaceA space exists for the current session
$ tc doctor
  TinyCloud Doctor

  [check] Node.js        v20.11.0 (>= 18 required)
  [check] Profile        "default" loaded
  [check] Key            did:key:z6MkpTHR8VNsBxYAAWHut...
  [check] Session        Active (expires in 23h 42m)
  [check] Node           https://node.tinycloud.xyz (healthy)
  [check] Space          0x1234...abcd-1-default

  All checks passed.

Node Commands

Check the status and health of the TinyCloud node your profile is connected to.

tc node health

Check if the node is healthy and responding.
tc node health
$ tc node health
  Node:    https://node.tinycloud.xyz
  Status:  Healthy
  Latency: 42ms

tc node version

Get the node’s software version.
tc node version
$ tc node version
  Node:     https://node.tinycloud.xyz
  Version:  1.4.2
  Commit:   abc123f

tc node status

Get detailed node status information.
tc node status
$ tc node status
  Node:       https://node.tinycloud.xyz
  Version:    1.4.2
  Status:     Healthy
  Uptime:     14d 6h 32m
  Spaces:     1,247
  Storage:    Local filesystem
  Database:   PostgreSQL

Shell Completions

Enable tab completion for tc commands in your shell.

tc completion bash

Generate Bash completions.
tc completion bash
Setup:
# Add to ~/.bashrc
eval "$(tc completion bash)"
Or save to the completions directory:
tc completion bash > /etc/bash_completion.d/tc

tc completion zsh

Generate Zsh completions.
tc completion zsh
Setup:
# Add to ~/.zshrc
eval "$(tc completion zsh)"
Or save to the completions directory:
tc completion zsh > "${fpath[1]}/_tc"

tc completion fish

Generate Fish completions.
tc completion fish
Setup:
tc completion fish > ~/.config/fish/completions/tc.fish
After adding shell completions, restart your shell or source the config file for changes to take effect.
# Bash
source ~/.bashrc

# Zsh
source ~/.zshrc