Everything to do with the CLI
|
character. Run agentstack help
for the full list.
--debug
- Print a full traceback when an error is encountered. This also enables printing additional debug information
from within AgentStack useful for development and debugging.
--path=<path>
- Set the working directory of the current AgentStack project. By default agentstack
works inside of the
current directory and looks for an agentstack.json
file there. By passing a path to this flag you can work on a project
from outside of it’s directory.
--version
- Prints the current version and exits.
$ agentstack init
slug_name
is the name of your project, and will be created as a directory to initialize your project inside. When the
default arguments are passed, a starter project template will be used, which adds a single agent, a single task and
demonstrates the use of a tool.
init
completes, cd
into the directory, activate the virtual environment with source .venv/bin/activate
.
Virtual environments and package management are handled by the uv
package manager.
--wizard
flag to agentstack init
to use an interactive project configuration wizard.
--template=<template_name>
argument to agentstack init
which will pre-populate your project with functionality
from a built-in template, or one found on the internet. A template_name
can be one of three identifiers:
templates
directory in the AgentStack repo for bundled templates).$ agentstack run
~/.env
and from the .env
file inside your project directory. Make sure you
have enabled your project’s venv
before executing to include all dependencies required.
inputs.yaml
file to populate data is not flexible enough, run
can accept value overrides for all defined
inputs. Use --input-<input_key>=<input_value>
to pass data which will only be used on this run.
For example, if you have a key in your inputs.yaml
file named topic
and want to override it for this run, you would
use the following command:
run
will call the main()
function inside your project’s main.py
file. You can pass alternate function
names to run with --function=<function_name>
.
$ agentstack generate agent | agentstack g a
agent_name
(required | str) - the name of the agent--role
(optional | str) - Prompt parameter: The role of the agent--goal
(optional | str) - Prompt parameter: The goal of the agent--backstory
(optional | str) - Prompt parameter: The backstory of the agent--llm
(optional | <provider>/<model>
) - Which model to use for this agentagentstack.json
under the
default_model
setting to populate a provider/model. If you are generating an agent in a project which does not have
a default model set, you will be prompted to configure one.
$ agentstack generate task | agentstack g t
task_name
(required | str) - the name of the task--description
(optional | str) - Prompt parameter: Explain the task in detail--expected_output
(optional | str) - What is the expected output from the agent (ex: data in json format)--agent
(optional | str) - The name of the agent of which to assign the task to (when using Crew in sequential mode)$ agentstack tools list | agentstack t l
$ agentstack tools add | agentstack t a
$ agentstack tools remove <tool_name>
agentstack init --template=<filename>
.
$ agentstack export <filename>
$ agentstack update
$ agentstack login