← 返回
未分类 中文

Pixr Cli

Drives the local pixr Gemini image CLI for generation, editing, variations, model selection, saved defaults, profile-based defaults, reference-image workflow...
驱动本地 pixr Gemini 图像 CLI,用于生成、编辑、变体、模型选择、保存的默认设置、基于配置文件的默认设置以及参考图像工作流。
dishant0406 dishant0406 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 305
下载
💾 0
安装
1
版本
#latest

概述

Pixr CLI

When To Use

Use this skill when the task is specifically about the local pixr CLI in this repository or its home-directory defaults under ~/.pixr.

Typical triggers:

  • "generate an image with pixr"
  • "edit an image with pixr"
  • "create variations with pixr"
  • "set the pixr model"
  • "save images to a default folder"
  • "use the refs from ~/.pixr/assets"
  • "init a pixr profile"
  • "make a profile use a different model or save dir"
  • "show the pixr profile layout"
  • "show what pixr supports"
  • "fix or inspect pixr config"

Do not use this skill for general Gemini API design discussions that are not tied to this CLI.

Execution Mode

Prefer the installed binary when available:

  • pixr

If you are working inside this repo and do not want to depend on a global link, use:

  • npm run dev --
  • npm run pixr --

Core Workflow

  1. Start by checking the exact command surface instead of assuming flags.

Use pixr help for global help or pixr --help for command help.

  1. If the task is generation, inspect saved defaults first when they matter.

Run pixr config --json.

  1. If the task depends on profile-specific defaults, inspect or scaffold them first:
    • pixr profile list
    • pixr profile show
    • pixr profile init
    • pixr config --profile --json
  2. If the task depends on a saved model or output directory, prefer the dedicated commands over editing config by hand:
    • pixr model ...
    • pixr save-dir ...
  3. If the task depends on reusable prompts or style, use the home-directory files:
    • ~/.pixr/INSTRUCTION.md
    • ~/.pixr/STYLE.md
    • ~/.pixr/prompts/.md
    • ~/.nano-image/STYLE.md
  4. If the task uses default reference images, inspect ~/.pixr/assets or ~/.pixr/profiles//assets and verify with pixr refs --json.

Remember that pixr keeps only the latest three default asset images by modified time.

  1. After changing behavior, validate with one concrete CLI command and capture the resulting output path or config state.

Image Workflows

For generation details and command recipes, read references/command-reference.md.

Key rules:

  • Use generate or gen for prompt-only creation.
  • Use edit for text-guided changes to an existing image.
  • Use vary for one or more Gemini-generated variations of an existing image.
  • Respect saved defaults from ~/.pixr/config.json.
  • If the user passes --save-to or --output, that overrides the saved default output directory.
  • Width-only or height-only requests preserve aspect ratio during local resize.
  • Width plus height forces the final image to the exact requested dimensions.
  • Format defaults to png; jpg, jpeg, and webp are supported through local conversion.

Configure Defaults

For persistent settings and file layout, read references/defaults-and-files.md.

Prefer command-driven config changes:

  • Save model: pixr model
  • Pick model interactively: pixr models
  • Save default output dir: pixr save-dir --set ""
  • Clear saved output dir: pixr save-dir --clear-save-dir
  • Save profile defaults: pixr profile init --model ... --save-dir ...
  • Use interactive profile setup: pixr profile init

Avoid editing ~/.pixr/config.json directly unless the user explicitly asks for a manual file edit.

Troubleshooting

Read references/troubleshooting.md when:

  • generation fails
  • models do not list
  • the picker or config looks wrong
  • output paths or refs are not being used

Validation

After making changes or guiding usage:

  • run one obvious command that should succeed
  • use --json when you need machine-readable confirmation
  • report the exact saved model, output directory, or generated file path when relevant

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 21:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 337 📥 95,221
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 438 📥 118,541
content-creation

Re Blog Writer

dishant0406
使用浏览器研究主题,然后撰写完整的博客文章并保存为 .md 文件到 ~/blogs。当用户提供主题并希望获得完整文章时使用。
★ 0 📥 842