Skip to content

Commit f8e8b0e

Browse files
committed
quickstart and docs commands
1 parent 6248c3a commit f8e8b0e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

agentstack/cli/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ def insert_template(project_details: dict, framework_name: str, design: dict):
312312
f" cd {project_metadata.project_slug}\n"
313313
" poetry install\n"
314314
" poetry run python src/main.py\n\n"
315-
" Run `agentstack --help` for help!\n"
315+
" Add agents and tasks with\n"
316+
" agentstack generate agent/task <name>\n\n"
317+
" Run `agentstack quickstart` or `agentstack docs` for next steps.\n"
316318
)
317319

318320

agentstack/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from agentstack.utils import get_version
66
import agentstack.generation as generation
77

8+
import webbrowser
89

910
def main():
1011
parser = argparse.ArgumentParser(
@@ -16,6 +17,12 @@ def main():
1617
# Create top-level subparsers
1718
subparsers = parser.add_subparsers(dest='command', help='Available commands')
1819

20+
# 'docs' command
21+
subparsers.add_parser('docs', help='Open Agentstack docs')
22+
23+
# 'quickstart' command
24+
subparsers.add_parser('quickstart', help='Open the quickstart guide')
25+
1926
# 'init' command
2027
init_parser = subparsers.add_parser('init', aliases=['i'], help='Initialize a directory for the project')
2128
init_parser.add_argument('slug_name', nargs='?', help="The directory name to place the project in")
@@ -64,6 +71,10 @@ def main():
6471
return
6572

6673
# Handle commands
74+
if args.command in ['docs']:
75+
webbrowser.open('https://docs.agentstack.sh/')
76+
if args.command in ['quickstart']:
77+
webbrowser.open('https://docs.agentstack.sh/quickstart')
6778
if args.command in ['init', 'i']:
6879
init_project_builder(args.slug_name, args.no_wizard)
6980
elif args.command in ['generate', 'g']:

0 commit comments

Comments
 (0)