openemail branding
이 네임스페이스의 모든 명령과 그 인수, 플래그, 예시.
명령
The brand of the workspace: its mark, its logo and its logo for dark mode, its primary and secondary fonts, and the background of the sign-in page of its web app address. Read it, change the fonts and the background, and upload or remove each image.
여기 있는 모든 명령은 --json, --profile, --dry-run 같은 전역 플래그도 받습니다. 전역 플래그 보기
openemail branding get
Read the brand of the workspace
showview사용법
openemail branding get [flags]
Returns the brand of the workspace, as its Customisations page shows it: a link to each brand image in images, the primary and secondary fonts in fonts, and the background of the sign-in page in loginBackground.
The mark shows in the workspace switcher. The logo shows at the top of the sidebar, and it is what brands the web app address and, on a paid plan, the emails OpenEmail sends for the workspace, at their top and foot. Without a logo, both look like OpenEmail. The fonts apply in the web app for everyone in the workspace, the primary font to its text and the secondary font to page headings, and the sign-in background shows on the web app address, either way.
A personal space carries no brand, so every image and font reads as null there and editable is false.
예시
openemail branding getopenemail branding get --json다른 사용처
openemail branding update
Change the fonts and the sign-in background of the brand
edit사용법
openemail branding update [flags]
Changes the fonts, the sign-in page background or both, and returns the brand in the same shape as get. A field left out keeps its value, and so does a font left out of fonts. --login-background replaces the background there was, and null sets the default.
With kind: 'image' the sign-in page shows the photo uploaded with uploadImage('login-background', ...), so upload that first: without it the call is refused. Uploading one switches the page to it on its own, so most callers never send kind: 'image' themselves.
플래그
--fonts <json|@file|->The fonts to change. Leave it out to keep both. JSON shaped as
BrandingFontsUpdate, inline or from a file with @path.--fonts-primary <value>The primary font: one of the ids in
BRAND_FONT_IDS, such asinterorgeorgia, or null for the default. Left out, it keeps its value.--fonts-secondary <value>The secondary font, an id from
BRAND_FONT_IDSor null for the default. Left out, it keeps its value.--login-background <json|@file|->The sign-in page background, replacing the one there was, or null for the default. Leave it out to keep it. JSON shaped as
LoginBackgroundInput | null, inline or from a file with @path.--login-background-kind <value>preset,colororimage. Required once--login-backgroundis given.--login-background-preset <value>dusk,mist,sandornight. Required whenkindispreset, and kept for later otherwise.--login-background-color <value>A colour as
#and six hex digits, such as#1f2937, stored lowercased. Required whenkindiscolor, and kept for later otherwise.--login-background-logo <value>darkshows your logo andlightyour logo for dark mode. Null, the default, picks the one that stands out against the background.--data <json|@file|->The whole
bodyas JSON, inline, from a file with @path, or - for standard input. Flags override its keys.
예시
openemail branding update --fonts-primary inter --fonts-secondary georgia --login-background-kind coloropenemail branding update --fonts-primary inter --fonts-secondary georgia --login-background-kind color --json다른 사용처
openemail branding upload-image
Upload one of the brand images
사용법
openemail branding upload-image <variant> <data> [flags]
Sends the image bytes as the request body, replacing the image there was, and returns the brand. variant names the image: mark, the square icon, wordmark, the logo, wordmark-dark, the logo for dark mode, or login-background, the photo behind the sign-in page of the web app address.
Up to 5 MB goes in, and it is fitted and stored as WebP: the mark into 512 by 512 pixels, the two logos into 1024 by 256, and the sign-in photo into 2560 by 1600. The mark and the logos take SVG, PNG, JPEG or WebP, and the sign-in photo PNG, JPEG, WebP or GIF. An SVG is turned into a picture, and an animated image keeps its first frame.
Uploading the sign-in photo also switches the sign-in page to it. The type is read from --content-type, or from a Blob's own type when that is left out, and without either the server refuses the bytes with 422 invalid_image.
인수
<variant>필수mark,wordmark,wordmark-darkorlogin-background.<data>필수The image: a
Blob,ArrayBufferorUint8Array.
플래그
--content-type <value>image/svg+xml,image/png,image/jpeg,image/webporimage/gif. Required unlessdatais aBlobwith a type.
예시
openemail branding upload-image wordmark ./photo.jpgopenemail branding upload-image wordmark ./photo.jpg --content-type image/svg+xml다른 사용처
openemail branding remove-image
Remove one of the brand images
사용법
openemail branding remove-image <variant> [flags]
Removes one brand image, deletes the stored file and returns the brand, so the default shows in its place. Removing the sign-in photo while the sign-in page shows it switches the page back to the preset or colour chosen before it, or to the default. Removing an image that is not set changes nothing.
인수
<variant>필수mark,wordmark,wordmark-darkorlogin-background.
예시
openemail branding remove-image login-backgroundopenemail branding remove-image login-background --yes