Skip to content

Commit

Permalink
restore link to cli and edit usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana committed Jun 5, 2024
1 parent 30e9c8a commit 570353c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions docs/how-to-run.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -487,29 +487,32 @@ via something like: `127.0.0.1:1234`, using the port from the `ssh` command.

=== Using the CLI

To authenticate, you'll need to generate a 8 character pass phrase with the CLI
and enter it into the web interface.
Follow the instructions to set up the https://github.com/oxidecomputer/oxide.rs[Oxide CLI]. See the previous section to find the URL for the API. Then you can start the login flow with:

[source,console]
----
oxide auth login --host http://192.168.1.22
----
$ oxide auth login --host http://192.168.1.22
This generates the 8 character confirmation code to use with the web interface to authenticate.
If you're using an ssh tunnel, you'll need to use this instead of the suggested url:
Opened this URL in your browser:
http://192.168.1.22/device/verify
```
http://127.0.0.1:1234/device/verify
```
Enter the code: CXKX-KPBK
----

Which will bring you to the recovery silo login. The login parameters are defined in 'config-rss.toml'
and default to:
Assuming you haven't already logged in, this page will bring you to the recovery silo login. The username and password are defined in `config-rss.toml` and default to:

```
username: recovery
password: oxide
```

Once logged in, enter the 8-character code to complete the login flow. In a few moments the CLI should show you're logged in.

[NOTE]
====
If you're using an SSH tunnel, you will either need to change the `device/verify` URL (if running the CLI on the same host as the control plane) or the `--host` URL (if running the CLI on a different host) to point to your tunnel. In the previous section's example, the URL is `http://127.0.0.1:1234`.
====

=== Configure quotas for your silo

Setting resource quotas is required before you can begin uploading images, provisioning instances, etc.
Expand Down

0 comments on commit 570353c

Please sign in to comment.