beta

/agex-publish — Publish Current File to agex

Commands

Slash command to publish the current file or directory as an artifact on agex.dev.

2103/26/2026

Version 1

Published

Initial version

Created 3/26/2026

Initial version — no previous version to compare

Slash Command
---
name: agex-publish
description: Publish a file or directory to agex.dev as an artifact. Provide the file path as arguments, or use "." for the current directory.
disable-model-invocation: true
---

Publish "$ARGUMENTS" to agex.dev.

## Steps

1. Check if the user is logged in: `agex whoami`
   - If not: suggest `agex login`

2. Determine what to publish:
   - If "$ARGUMENTS" is a file: `agex push <file>`
   - If "$ARGUMENTS" is "." or a directory: `agex push <dir>`
   - If no arguments: ask what they want to publish

3. The CLI will prompt for:
   - Title (suggest based on filename)
   - Type (auto-detected from filename)
   - Category
   - Description

4. After publishing, show:
   - The artifact URL on agex.dev
   - The install command: `agex add @user/slug`
   - Remind them to add a README for discoverability