/agex-publish — Publish Current File to agex
CommandsSlash command to publish the current file or directory as an artifact on agex.dev.
1803/26/2026
markdown1 file
command.md827 B
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
-
Check if the user is logged in:
agex whoami- If not: suggest
agex login
- If not: suggest
-
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
- If "$ARGUMENTS" is a file:
-
The CLI will prompt for:
- Title (suggest based on filename)
- Type (auto-detected from filename)
- Category
- Description
-
After publishing, show:
- The artifact URL on agex.dev
- The install command:
agex add @user/slug - Remind them to add a README for discoverability