-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from algorandfoundation/chore/beautify-commands
chore: beautify commands
- Loading branch information
Showing
63 changed files
with
9,893 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,50 @@ | ||
# ⌨️ AlgoRun-TUI | ||
## algorun | ||
|
||
<div align="center"> | ||
<img alt="Terminal Render" src="/assets/Banner.gif" width="65%"> | ||
</div> | ||
Manage Algorand nodes from the command line | ||
|
||
<div align="center"> | ||
<a target="_blank" href="https://github.com/algorandfoundation/algorun-tui/actions/workflows/test.yaml"> | ||
<img alt="CI Badge" src="https://github.com/algorandfoundation/algorun-tui/actions/workflows/test.yaml/badge.svg"/> | ||
</a> | ||
<a target="_blank" href="https://github.com/algorandfoundation/algorun-tui"> | ||
<img alt="CD Badge" src="https://img.shields.io/badge/CD-TODO-red"/> | ||
</a> | ||
<a target="_blank" href="https://github.com/algorandfoundation/algorun-tui/stargazers"> | ||
<img alt="Repository Stars Badge" src="https://img.shields.io/github/stars/algorandfoundation/algorun-tui?color=7B1E7A&logo=star&style=flat" /> | ||
</a> | ||
<img alt="Repository Visitors Badge" src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Falgorandfoundation%2Falgorun-tui&countColor=%237B1E7A&style=flat" /> | ||
</div> | ||
### Synopsis | ||
|
||
--- | ||
<img alt="Terminal Render" src="/assets/nodekit.png" width="65%"> | ||
Manage Algorand nodes from the command line | ||
|
||
Overview: | ||
Welcome to Algorun, a terminal user interface for managing Algorand nodes. | ||
This is your one stop shop for managing Algorand nodes, including node creation, configuration, and management. | ||
|
||
Note: This is still a work in progress. Expect bugs and rough edges. | ||
|
||
Terminal UI for managing Algorand nodes. | ||
Built with [bubbles](https://github.com/charmbracelet/bubbles) & [bubbletea](https://github.com/charmbracelet/bubbletea) | ||
|
||
> [!CAUTION] | ||
> This project is in alpha state and under heavy development. We do not recommend performing actions (e.g. key management) on participation nodes connected to public networks. | ||
# 🚀 Get Started | ||
|
||
Download the latest release by running | ||
|
||
```bash | ||
curl -fsSL https://raw.githubusercontent.com/algorandfoundation/algorun-tui/refs/heads/main/install.sh | bash | ||
``` | ||
|
||
Launch the TUI by replacing the `<ENDPOINT>` and `<TOKEN>` | ||
with your server in the following example | ||
|
||
> [!IMPORTANT] | ||
> TUI requires the *admin* token in order to access participation key information. This can be found in the `algod.admin.token` file, e.g. `/var/lib/algorand/algod.admin.token` | ||
```bash | ||
./algorun --algod-endpoint <ENDPOINT> --algod-token <TOKEN> | ||
algorun [flags] | ||
``` | ||
|
||
# ℹ️ Advanced Usage | ||
|
||
## 🧑💻 Commands | ||
|
||
The default command will launch the full TUI application | ||
### Options | ||
|
||
```bash | ||
./algorun | ||
``` | ||
|
||
### Status | ||
|
||
Render only the status overview in the terminal | ||
|
||
```bash | ||
./algorun status | ||
-d, --datadir string Data directory for the node | ||
-h, --help help for algorun | ||
``` | ||
|
||
### Help | ||
|
||
Display the usage information for the command | ||
### SEE ALSO | ||
|
||
```bash | ||
./algorun help | ||
``` | ||
## ⚙️ Configuration | ||
|
||
Configuration precedence takes place in the following order: | ||
* [algorun bootstrap](/man/algorun_bootstrap.md) - Initialize a fresh node | ||
* [algorun catchup](/man/algorun_catchup.md) - Manage Fast-Catchup for your node | ||
* [algorun configure](/man/algorun_configure.md) - Change settings on the system (WIP) | ||
* [algorun debug](/man/algorun_debug.md) - Display debugging information | ||
* [algorun install](/man/algorun_install.md) - Install the node daemon | ||
* [algorun start](/man/algorun_start.md) - Start the node daemon | ||
* [algorun stop](/man/algorun_stop.md) - Stop the node daemon | ||
* [algorun uninstall](/man/algorun_uninstall.md) - Uninstall the node daemon | ||
* [algorun upgrade](/man/algorun_upgrade.md) - Upgrade the node daemon | ||
|
||
1. [ALGORAND_DATA Parsing](#algorand_data) | ||
2. [Configuration File](#configuration-file) | ||
3. [Environment Variables](#environment-variables) | ||
4. [Command Line Flag Arguments](#flags) | ||
###### Auto generated by spf13/cobra on 6-Jan-2025 | ||
|
||
### Flags | ||
### Installing | ||
|
||
The application supports the `algod-endpoint` and `algod-token` flags for configuration. | ||
Connect to your server and run the installation script which will bootstrap your node. | ||
|
||
```bash | ||
./algorun --algod-endpoint http://localhost:8080 --algod-token aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
``` | ||
|
||
### Configuration File | ||
|
||
The configuration file is named `.algorun.yaml` and is loaded in the following order: | ||
|
||
1. Current Directory | ||
2. Home Directory | ||
3. /etc/algorun/ | ||
|
||
Example `.algorun.yaml` configuration file: | ||
|
||
```yaml | ||
algod-endpoint: "http://localhost:8080" | ||
algod-token: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | ||
``` | ||
### Environment Variables | ||
Environment variables can be set in order to override a configuration or ALGORAND_DATA setting | ||
but cannot be used to override the command line arguments. | ||
The following are the additional ENV variables the TUI supports | ||
| Name | Example | | ||
|------------------------|----------------------------------------------------------------------------------------| | ||
| ALGORUN_ALGOD-ENDPOINT | ALGORUN_ALGOD-ENDPOINT="http://localhost:8080" | | ||
| ALGORUN_ALGOD-TOKEN | ALGORUN_ALGOD-TOKEN="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | | ||
### ALGORAND_DATA | ||
The TUI searches the environment for an `ALGORAND_DATA` variable. | ||
It then loads the `algod-token` and `algod-endpoint` values from | ||
the algod data directory. | ||
|
||
curl -fsSL https://raw.githubusercontent.com/algorandfoundation/algorun-tui/refs/heads/main/install.sh | bash | ||
``` |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Installing | ||
|
||
Connect to your server and run the installation script which will bootstrap your node. | ||
|
||
```bash | ||
curl -fsSL https://raw.githubusercontent.com/algorandfoundation/algorun-tui/refs/heads/main/install.sh | bash | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.