App

Every command below also accepts the global options.

Create a new app from a starter template

agentserve app init [dir] [options]

Arguments

ArgumentRequiredDescription
dirNoFolder to create the app in

Options

OptionRequiredDescription
-t, --template <name>NoStarter template. Accepted values: blank, sales-cockpit, field-visit-logger, deal-desk, support-triage, ops-exceptions, knowledge-assistant. Defaults to blank.
--name <slug>NoApp name in the manifest; defaults to the folder name.
--title <text>NoApp title people see; defaults to one made from the name.
--forceNoAdd the app to a folder that already has other files.
--listNoList the starter templates and exit.
--jsonNoPrint machine-readable JSON (same as --output json).

Build the app and run it locally in the same sandboxed frame the workspace uses, with your own access

agentserve app dev [dir] [options]

Build the app and run it locally in the same sandboxed frame the workspace uses, with your own access (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
dirNoApp folder

Options

OptionRequiredDescription
-p, --port <port>NoPort for the local host page. Defaults to 5175.
--page <id>NoPage to open first.
--launch <json>NoWhat launch.get answers, as a plugin command or action opens the page: {"kind":"command","name":"brief","args":{"file":"q3"}}.
--build-command <command>NoCommand that builds the app (default: <package manager> run build).
--no-buildNoDo not build; serve the existing output and reload when it changes.
--no-openNoDo not open a browser.

Build the app, pack it and upload it as a draft version

agentserve app deploy [dir] [options]

Build the app, pack it and upload it as a draft version (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
dirNoApp folder

Options

OptionRequiredDescription
--build-command <command>NoCommand that builds the app (default: <package manager> run build).
--no-buildNoUpload the existing build output without building.
--jsonNoPrint machine-readable JSON (same as --output json).

Publish a draft version so workspaces can install it (admin)

agentserve app publish <version> [options]

Publish a draft version so workspaces can install it (admin) (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
versionYesVersion to publish, such as 1.2.0, or its id

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--rolloutNoAlso move this workspace's install to the version.
--jsonNoPrint machine-readable JSON (same as --output json).

Move this workspace's install to an earlier published version (admin)

agentserve app rollback <version> [options]

Move this workspace's install to an earlier published version (admin) (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
versionYesPublished version to run, such as 1.1.0, or its id

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).

Install a published app in the workspace (admin); pick it with -w, --workspace

agentserve app install [options]

Install a published app in the workspace (admin); pick it with -w, --workspace (OAuth login or personal API key required)

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--to-version <version>NoPublished version to install; defaults to the highest.
--jsonNoPrint machine-readable JSON (same as --output json).

Show the install's audit trail, oldest first; --follow keeps watching

agentserve app logs [options]

Show the install's audit trail, oldest first; --follow keeps watching (OAuth login or personal API key required)

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
-f, --followNoKeep polling for new entries until Ctrl-C.
--interval <seconds>NoSeconds between polls with --follow. Defaults to 5.
--jsonNoPrint machine-readable JSON (same as --output json).

Show this month's spend against the app's budget, by source

agentserve app usage [options]

Show this month's spend against the app's budget, by source (OAuth login or personal API key required)

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).

Show what the app may reach, installed and in the local manifest

agentserve app permissions [dir] [options]

Show what the app may reach, installed and in the local manifest (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
dirNoApp folder whose manifest to compare

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).

Set a secret; prompts without echo when --value is not given

agentserve app secrets set <name> [options]

Set a secret; prompts without echo when --value is not given (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
nameYesSecret name, such as API_TOKEN

Options

OptionRequiredDescription
--value <value|@file>NoSecret value. Inline values land in shell history; @path reads a file and @- stdin, verbatim.
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).

List secret names and when each was set

agentserve app secrets list [options]

List secret names and when each was set (OAuth login or personal API key required)

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).

Delete a secret

agentserve app secrets delete <name> [options]

Delete a secret (OAuth login or personal API key required)

Arguments

ArgumentRequiredDescription
nameYesSecret name

Options

OptionRequiredDescription
--app <name-or-id>NoApp to act on; defaults to the name in ./agentserve.app.yaml.
--jsonNoPrint machine-readable JSON (same as --output json).