summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-28 21:55:17 -0400
committerCara Salter <cara@devcara.com>2022-06-28 21:55:17 -0400
commitd6ed1d4ad337a9e120e583fe91882b73e2e2d700 (patch)
tree359665c2f75325e111d1ecf5e1c70c6649838081
parenta9ae3ae57de120f5f337c37dcfb6759e8562a090 (diff)
downloadsolarctl-d6ed1d4ad337a9e120e583fe91882b73e2e2d700.tar.gz
solarctl-d6ed1d4ad337a9e120e583fe91882b73e2e2d700.zip
Documentation0.4.0
-rw-r--r--doc/solarctl.1.scd82
1 files changed, 82 insertions, 0 deletions
diff --git a/doc/solarctl.1.scd b/doc/solarctl.1.scd
new file mode 100644
index 0000000..91bbdc2
--- /dev/null
+++ b/doc/solarctl.1.scd
@@ -0,0 +1,82 @@
+SOLARCTL(1)
+
+# NAME
+
+solarctl - manage _solard_ instances across a network
+
+# SYNOPSIS
+
+solarctl <remote host> <subcommand> [options]
+
+
+# DESCRIPTION
+
+solarctl is a command-line API client for `solard` API servers to manage virtual
+machines over a network.
+
+# SUBCOMMANDS
+
+All subcommands except "login" will require authentication.
+
+## LOGIN
+
+Performs the first-time login process with a remote solard server, and stores it
+in $XDG_CONFIG_HOME/$REMOTE_ADDRESS/config.json.
+
+Syntax:
+ solarctl <remote host> login <random key>
+
+The random key is printed to the stdout of the remote solard server, and changes
+each time the server is restarted. The token returned will be a PASETO public
+token signed by the remote solard server.
+
+## LIST
+
+Lists all created virtual machines on the remote server.
+
+Example:
+ solarctl localhost:3000 list
+
+## PAUSE
+
+Pauses a virtual machine.
+
+Example:
+ solarctl localhost:3000 pause <uuid>
+
+The UUID of the virtual machine can be obtained from the LIST command.
+
+## STOP
+
+Sends the shutdown signal to the virtual machine. When used with *-f*, sends a
+force-shutdown signal.
+
+Example:
+ solarctl localhost:3000 stop <uuid> [-f]
+
+## REBOOT
+
+Sends the reboot signal to the virtual machine. When used with *-f*, sends a
+force-reboot signal.
+
+Example:
+ solarctl localhost:3000 reboot <uuid> [-f]
+
+## START
+
+Starts the virtual machine if it is stopped.
+
+Example:
+ solarctl localhost:3000 start <uuid>
+
+## VIEW
+
+Opens a virtual console window to the virtual machine using virt-viewer(1).
+
+Example:
+ solarctl localhost:3000 view <uuid>
+
+# SEE ALSO
+
+_virt-viewer_(1)
+