Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

removed frontend command from the cli

SwiftyOScc7476656f7b
diff --git a/CLI-USAGE.md b/CLI-USAGE.md
index 9526fddce5..8980e6de1a 100755
--- a/CLI-USAGE.md
+++ b/CLI-USAGE.md
@@ -181,23 +181,3 @@ Displays the details of the 'TestWriteFile' benchmark test.
```
Displays the results of the benchmark tests on 'my_agent'.
-
-### 5. Frontend Command
-
-```sh
-./run frontend
-```
-
-**Output**:
-
-```
-Agent is running.
-Launching frontend
-... (more details about the launch process)
-```
-
-Launches the frontend, with debugging and service details mentioned.
-
----
-
-Remember to start an agent before launching the frontend and that the `agents stop` command terminates any process on port 8000.
\ No newline at end of file
diff --git a/cli.py b/cli.py
index 845a7b5c3d..107e8c1fb8 100644
--- a/cli.py
+++ b/cli.py
@@ -569,32 +569,6 @@ def benchmark_tests_details(test_name):
print(f"IOError: file could not be read: {data_file}")
continue
-
-def frontend():
- """Starts the frontend"""
- import os
- import socket
- import subprocess
-
- try:
- output = subprocess.check_output(["lsof", "-t", "-i", ":8000"])
- if output:
- click.echo("Agent is running.")
- else:
- click.echo("Error: Agent is not running. Please start an agent first.")
- except subprocess.CalledProcessError as e:
- click.echo("Error: Unexpected error occurred.")
- return
- frontend_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "frontend")
- run_file = os.path.join(frontend_dir, "run")
- if os.path.exists(frontend_dir) and os.path.isfile(run_file):
- subprocess.Popen(["./run"], cwd=frontend_dir)
- click.echo("Launching frontend")
- else:
- click.echo("Error: Frontend directory or run file does not exist.")
-
-
@cli.group()
def arena():
"""Commands to enter the arena"""