Skip to content

feat(cli): add template list --json command#1590

Open
fuleinist wants to merge 1 commit intodifferent-ai:devfrom
fuleinist:fix/template-list-json-v2
Open

feat(cli): add template list --json command#1590
fuleinist wants to merge 1 commit intodifferent-ai:devfrom
fuleinist:fix/template-list-json-v2

Conversation

@fuleinist
Copy link
Copy Markdown

Summary

Adds the template list subcommand to the openwork CLI for listing shared templates. Supports --json flag for machine-readable output suitable for CI/CD integration.

Changes

  • New runTemplateCommand function handling openwork template list [--json]
  • GET /v1/templates API call with bearer token auth
  • Error handling consistent with existing CLI commands (daemon, workspace, files)

Usage

# Human-readable output
openwork template list --openwork-url https://app.openwork.ai --token $TOKEN

# JSON output for CI/CD
openwork template list --json --openwork-url https://app.openwork.ai --token $TOKEN

Testing

  • TypeScript typecheck: passed
  • Follows existing CLI command patterns (workspace, files, instance)

Closes #1588

Adds the 'template list' subcommand to the openwork CLI for listing
shared templates. Supports --json flag for machine-readable output
suitable for CI/CD integration.

Addresses issue different-ai#1588.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 28, 2026 4:22pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 28, 2026

@fuleinist is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add template list --json CLI flag for machine-readable output

1 participant