npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pixelml/agenticflow-cli

v1.0.7

Published

AgenticFlow CLI for agent-native API operations.

Readme

@pixelml/agenticflow-cli

Command-line interface for the AgenticFlow platform. Manage agents, workflows, connections and more — directly from your terminal.

Built on @pixelml/agenticflow-sdk.

Installation

npm install -g @pixelml/agenticflow-cli

Or run directly via npx:

npx @pixelml/agenticflow-cli --help

Authentication

Interactive login

agenticflow login

Prompts for API key, workspace ID and project ID, then saves them to ~/.agenticflow/auth.json.

Environment variables

export AGENTICFLOW_API_KEY="sk-..."
export AGENTICFLOW_WORKSPACE_ID="ws-..."
export AGENTICFLOW_PROJECT_ID="proj-..."

Import from .env file

agenticflow auth import-env --file .env

CLI flags

agenticflow --api-key sk-... --workspace-id ws-... agent list

Resolution order: CLI flag → environment variable → ~/.agenticflow/auth.json

Verify

agenticflow whoami
Profile:      default
API Key:      present
Workspace ID: ws-abc123
Project ID:   proj-xyz789
Config:       ~/.agenticflow/auth.json

Logout

agenticflow logout                   # remove all credentials
agenticflow logout --profile staging # remove a single profile

Commands

Cold start

# Machine-discoverable first-touch path
agenticflow discover --json
agenticflow playbook first-touch

# Prime local template cache for workflow/agent/workforce examples
agenticflow templates sync --json
agenticflow templates index --json

agent

agenticflow agent list [--project-id <id>] [--search <q>] [--limit <n>] [--offset <n>]
agenticflow agent get --agent-id <id>
agenticflow agent create --body <json|@file>
agenticflow agent update --agent-id <id> --body <json|@file>
agenticflow agent delete --agent-id <id>
agenticflow agent stream --agent-id <id> --body <json|@file>
agenticflow agent reference-impact --agent-id <id>

workflow

agenticflow workflow list [--workspace-id <id>] [--project-id <id>] [--search <q>] [--limit <n>]
agenticflow workflow get --workflow-id <id>
agenticflow workflow create --body <json|@file> [--workspace-id <id>]
agenticflow workflow update --workflow-id <id> --body <json|@file> [--workspace-id <id>]
agenticflow workflow delete --workflow-id <id> [--workspace-id <id>]
agenticflow workflow run --workflow-id <id> [--input <json|@file>]
agenticflow workflow run-status --workflow-run-id <id>
agenticflow workflow list-runs --workflow-id <id> [--sort-order asc|desc]
agenticflow workflow run-history --workflow-id <id>
agenticflow workflow validate --body <json|@file> [--local-only]
agenticflow workflow reference-impact --workflow-id <id>
agenticflow workflow like-status --workflow-id <id>

connections

agenticflow connections list [--workspace-id <id>] [--project-id <id>]
agenticflow connections create --body <json|@file> [--workspace-id <id>]
agenticflow connections update --connection-id <id> --body <json|@file> [--workspace-id <id>]
agenticflow connections delete --connection-id <id> [--workspace-id <id>]

node-types

agenticflow node-types list
agenticflow node-types get --name <name>
agenticflow node-types search --query <q>
agenticflow node-types dynamic-options --name <name> --field-name <field> [--connection <name>]

uploads

agenticflow uploads create --body <json|@file>
agenticflow uploads status --session-id <id>

Generic API call

For any endpoint not covered by resource commands:

# By operation ID
agenticflow call --operation-id get_by_id_v1_agents__agent_id__get -P agent_id=abc123

# By method + path
agenticflow call --method GET --path /v1/agents/

# With parameters and body
agenticflow call --operation-id update_v1_agents__agent_id__put \
  -P agent_id=abc123 \
  --body '{"name": "Updated"}'

# Query parameters
agenticflow call --method GET --path /v1/agents/ -Q limit=10

# Dry run (shows request without executing)
agenticflow call --operation-id get_all_v1_agents__get --dry-run

Utilities

# Preflight diagnostics
agenticflow doctor

# Machine-readable capability discovery
agenticflow discover --json

# OpenAPI operation discovery
agenticflow ops list [--public-only] [--tag <tag>] [--json]
agenticflow ops show <operation-id>

# Operation catalog
agenticflow catalog export [--public-only]
agenticflow catalog rank --task "send a message" [--top <n>]

# Policy guardrails
agenticflow policy show
agenticflow policy init [--spend-ceiling <amount>]

# Built-in playbooks
agenticflow playbook [topic] [--list]
# First-touch onboarding for cold agents
agenticflow playbook first-touch
agenticflow playbook --list --json

# Template bootstrap cache for cold agents
agenticflow templates sync [--dir .agenticflow/templates] [--limit 100] [--strict] [--json]
agenticflow templates index [--dir .agenticflow/templates] [--json]

# Duplicate resources from templates (web-like flow)
agenticflow templates duplicate workflow --template-id <workflow_template_id> --json
agenticflow templates duplicate agent --template-id <agent_template_id> --json
# Build payloads only (no create)
agenticflow templates duplicate workflow --template-id <id> --dry-run --json
# Resolve template IDs from local cache first (cold/sandbox-friendly)
agenticflow templates duplicate workflow --template-id <id> --cache-dir .agenticflow/templates --json
agenticflow templates duplicate agent --template-file .agenticflow/templates/agent/<file>.json --cache-dir .agenticflow/templates --dry-run --json

Global Options

| Flag | Description | |---|---| | --api-key <key> | API key for authentication | | --workspace-id <id> | Default workspace ID | | --project-id <id> | Default project ID | | --spec-file <path> | Path to OpenAPI spec JSON | | --no-color | Disable ANSI color output | | --json | Force JSON output | | --version | Show version | | --help | Show help |

Output

Use --json for machine-readable output. In JSON mode, errors use a structured envelope and exit non-zero.

Create/update/run/stream commands perform local payload validation first. This returns local_schema_validation_failed immediately for malformed inputs, before any API request is sent.

templates duplicate can resolve workflow templates from a local templates sync cache via --cache-dir before attempting API fetches. This improves cold-start behavior in restricted environments.

agenticflow agent list | jq '.[] | .name'

License

Apache-2.0