AI Fashion CLI for Claude Code, Codex and Cursor
AI coding agents cannot make images. The New Black AI gives them a command: tnb, published on npm as @thenewblack/cli, runs every workflow of the studio from a terminal, uploads your local product photos and writes the renders beside them, under readable names.
Updated 20 September 2026
- 1Install and sign in
- 2One line per render
- 3Let the agent loop


How it works
Install and sign in
npx @thenewblack/cli --help runs it without installing; tnb login asks once for your API key, or TNB_API_KEY on a server.
One line per render
tnb generate product_to_model --product_images ./green-dress.jpg --prompt "AI model wearing the product" --ratio 4:5 --wait --out ./renders/
Let the agent loop
Open Claude Code, Codex or Cursor on a folder of photos and say what you want: one command per photo, a report beside the renders.
Why it matters
A folder of product photos and an agent that never opens a website: that is the scenario the CLI exists for. The upload, the wait and the download are handled; what is left is the instruction.
Read more in AI fashion images from the command line. Reference on the CLI page.
Frequently asked questions
Which agents?+
Claude Code, Codex, Cursor, and anything that can run a command.
Where do the renders go?+
Next to the originals, in the folder you name, with a readable file name per workflow.
Does it need Node?+
Node 18 or later.
Try it yourself
Everything on this page was made in the studio. Your first designs are minutes away.
Open the studioRelated features
- Shopify Product Page Optimization ScoreEach Shopify product gets a score for how well its page is optimised: photos, videos, description, SEO fields. Open the score to see what is missing and fix it from the studio.
- Shopify Product Performance: Traffic, Add-to-Cart and ConversionA pixel you enable in one click on Shopify feeds your Store page with traffic, add-to-cart rate and conversion rate per product, combined with sales into one performance score.
- Shopify Sales Next to Your VisualsIn the studio's Shopify view, each product's Performance tile reads your store's sales: enable it once and the creations you make for a product sit next to what that product sells.
- AI Blog Writer for Shopify StoresFrom the Store page, SEO tab: give a brief, get a draft article or page, edit it, and save it to Shopify as a draft you publish yourself, written next to the Search Console queries it should answer.
- Shopify Sales Channels per ProductEach product on your Store page shows on how many sales channels it is sold. Click the number to put it on Online Store, Shop, Instagram, Google, or take it off. The change is written to Shopify.
- Create Shopify Products from the StudioIn the studio's Shopify view, a Create a product button asks for a title and creates the product in your store, then the visuals you generate publish straight to its page.
- Publish AI Visuals to Shopify Product PagesOpen a creation, choose the product, and the image or video lands on its Shopify product page. Unpublish from the same tab. Also available from the API with the publish scope.
- Social Media Agenda for Fashion BrandsA week agenda in your Store with a row per network: Instagram, Facebook, Threads, Pinterest, X, YouTube and TikTok. Schedule creations or your own files; existing posts appear on their day.