3U

CLI Overview

The threeu CLI ships inside the threeu-sdk npm package — one command, publish.

Installation

There is no separate CLI package. The threeu binary is installed together with the SDK, so any project that depends on threeu-sdk can run it with npx:

Install
Shell
npm install threeu-sdk
npx threeu --version
npx threeu help

Commands

CommandDescription
npx threeu publishBundle the current theme or plugin project and submit it for review
npx threeu publish --dry-runDetect, validate and bundle — but do not upload (run this first)
npx threeu helpShow usage
npx threeu versionPrint the SDK/CLI version

There is no `create` and no `dev` command today. Scaffold with your normal toolchain (Vite is what published themes use) and run the theme locally with npm run dev in preview mode — see [Dev & Publish](/docs/cli-dev). Scaffolding commands are on the roadmap.

Older docs mentioned @threeu/cli

That package was never published. Use the binary that ships with threeu-sdk.

Publish Options

FlagEnv varDefaultMeaning
--dir <path>current directoryProject directory to bundle
--token <token>THREEU_DEVELOPER_TOKENDeveloper personal access token
--api <url>THREEU_API_URLhttps://api.threeu.appAPI base URL
--dry-runoffValidate + bundle without uploading; leaves the tar.gz in your temp dir

The token is a credential. Keep it in a git-ignored file named .env.threeu (the bundler excludes .env*), never in the theme source.

Quick Example

Build, validate, publish:

Theme Flow
Shell
# in the theme project (has threeu.json)
npm run build                       # produces preview-dist/
npx threeu publish --dry-run         # validate + bundle only
THREEU_DEVELOPER_TOKEN="$TOKEN" npx threeu publish