| name | docyrus-tenant-brand-management |
| description | Create, read, update, and delete a tenant's brand identity records (`tenant_brand`) using the `docyrus account brands` CLI commands. Use when the user wants to manage a Docyrus brand — set or change the brand's colors, typography, spacing, logos/favicons, voice & messaging guidelines, slide/presentation defaults, chart styling, illustration rules, or content constraints; mark a default brand; archive a brand; or import branding from a website. Triggers on "create a brand", "set brand colors", "update the brand voice/typography", "add a logo to the brand", "make this the default brand", "archive a brand", "import brand from website", "brand guidelines", `docyrus account brands`, `account brands create`, `account brands update`, `tenant_brand`, or any tenant brand identity / brand-kit management task in Docyrus. For the full CLI command index see docyrus-cli-app; for platform concepts see docyrus-platform. |
Docyrus Tenant Brand Management
A tenant brand (tenant_brand) is a tenant-owned brand-identity record: the
visual system (colors, typography, spacing, components, logos), the verbal system
(voice, tone, terminology, content constraints), and presentation/chart/illustration
defaults that downstream features (documents, slides, AI generation) read from.
Manage brands with docyrus account brands. There is no design-time vs runtime
split — these commands directly CRUD the live records for the active tenant.
- A brand is identified by its UUID (
--brandId). There is no brand slug.
- The only required field is
--name (on create); everything else is optional.
- The record is large. For the complete field catalog (every flag, its
snake_case column, type, and meaning) read
references/fields.md. Keep this open while building a brand.
Workflow
-
Confirm auth + tenant.
docyrus auth who --json
No session → stop and ask the user to run docyrus auth login. Brands are
tenant-scoped, so confirm the active tenant is the intended one.
-
List existing brands before creating one — a tenant often already has a
default brand to update rather than duplicate.
docyrus account brands list --json
-
Create or update. Start with identity + the few fields the user cares
about; the rest can be filled in later updates. See Commands.
-
Validate. Re-read the brand and confirm the values landed.
docyrus account brands get --brandId <uuid> --json
Commands
Add --json for machine-readable output. Run docyrus account brands <cmd> --help
for the live flag list.
docyrus account brands list --json
docyrus account brands get --brandId <uuid> --json
docyrus account brands create --name "Acme" --json
docyrus account brands create \
--name "Acme" \
--description "Acme corporate brand" \
--websiteUrl "https://acme.com" \
--isDefault true \
--colorPrimary "#1d4ed8" \
--colorSecondary "#9333ea" \
--logoUrl "https://acme.com/logo.svg" \
--fontFamilyPrimary "Inter" \
--voiceIntent "bold,concise,friendly" \
--json
docyrus account brands update --brandId <uuid> \
--colorPrimary "#0f766e" \
--formalityLevel "casual" \
--json
docyrus account brands update --brandId <uuid> --archived true --json
docyrus account brands update --brandId <uuid> --archived false --json
docyrus account brands delete --brandId <uuid> --json
docyrus account brands fetch-from-website --brandId <uuid> --json
Structured (json/list) fields and bulk payloads
Key rules
--name required on create; the CLI rejects a create with no name before
calling the API.
--archived is update-only. Passing it to create fails (unknown flag).
list hides archived brands; get still returns them.
- One default per tenant.
is_default has a unique partial index — don't try
to create a second default; update the intended brand instead.
delete is a hard delete and returns { deleted: true, id } (the API
itself returns { data: { success: true } }). There is no restore for a
deleted brand — prefer --archived true when the user may want it back.
fetch-from-website requires the brand to have website_url set and
overwrites scraped fields (colors, typography, spacing, components, images,
icons/animations/layout/personality) on the record.
- Flags are camelCase and map 1:1 onto the
snake_case columns; the full mapping
is in references/fields.md.
Related skills
- docyrus-cli-app — full
docyrus CLI command index and global conventions (--json, auth, environments).
- docyrus-platform — Docyrus platform concepts and building blocks.