پرش به مستندات
CLI

openemail app-host

هر فرمان در این فضای نام، با آرگومان‌ها، پرچم‌ها و نمونه‌هایش.

فرمان‌ها

The web app address of the workspace: a subdomain on any domain it controls, where its people open OpenEmail under its brand, with its DNS records and status. Read it, set or replace it, check it now and remove it.

هر فرمان در اینجا پرچم‌های سراسری مانند --json، --profile و --dry-run را هم می‌پذیرد. پرچم‌های سراسری را ببینید

openemail app-host get

Read the web app address of the workspace, its status and its DNS records

محدوده‌های دسترسیdomains:readبه ورود نیاز داردنام‌های مستعارshowview

نحوه استفاده

openemail app-host get [flags]

Returns the web app address of the workspace with everything the Branded app tab shows: the address, such as mailbox.example.com, the verified domain it sits under, its status, whether people can sign in there right now, the DNS records to publish and when it was last checked. A workspace has at most one.

The address can be on one of the verified domains of the workspace, where it needs only the CNAME record in record, or on any other domain the workspace controls, where it also needs the TXT record in ownershipRecord that proves the domain is yours. domain and domainId are null for an address on another domain.

With no address set, status is none, host, record and the other fields about the address are null, domains lists the verified domains of the workspace and suggested is the address the app would offer, mailbox. in front of the first of them.

Reading it checks the address again when its last check is more than 15 seconds old, so polling get is one way to wait for it to go live: active turns true on the read whose check finds it live. verify checks straight away.

Only the members of the workspace, the people who sign in with one of its addresses and anyone with a pending invitation can sign in at the address, and they see the workspace brand there. On the free plan the address is kept but paused: paused is true, active is false and nobody can sign in there until the workspace is on a paid plan again.

نمونه‌ها

openemail app-host get
Print the raw JSON
openemail app-host get --json

همچنین در دسترس در

API
GET /app-host
SDK
appHost.get()

openemail app-host set

Set or replace the web app address of the workspace

محدوده‌های دسترسیdomains:writeبه ورود نیاز دارد

نحوه استفاده

openemail app-host set --host <value> [flags]
openemail app-host set --data <json|@file|-> [flags]

Sets the web app address of the workspace, replacing any it had, and returns it in the same shape as get. host is a subdomain such as mailbox.example.com, on a verified domain of the workspace or on any other domain you control, and the workspace has to be on a paid plan. Setting the address it already has changes nothing and checks it again.

On a verified domain of the workspace the address is set up during the call. On any other domain it is set up once the TXT record in ownershipRecord answers, which proves the domain is yours. Either way it stays pending until its records answer and its certificate is issued, usually a few minutes after they are published. Publish record, and ownershipRecord when it is not null, at your DNS provider exactly as given, then call verify or poll get until active is true. The call writes no DNS record itself.

An address on another domain replaces the old one once it is set up, and an address on the same domain replaces it straight away. Everyone signed in at a replaced address is signed out.

Only the members of the workspace, the people who sign in with one of its addresses and anyone with a pending invitation can sign in at the address, under the workspace brand. Anyone else gets the usual wrong email or password answer, and an invited person can create their account there.

پرچم‌ها

--host <value>

A subdomain such as mailbox.example.com, on a verified domain of the workspace or on any other domain you control, at most 253 characters. It is trimmed and lower cased, and a leading https:// or http://, any path and any trailing dots are stripped. A bare domain cannot be used. Required, here or in --data.

--data <json|@file|->

The whole body as JSON, inline, from a file with @path, or - for standard input. Flags override its keys.

نمونه‌ها

openemail app-host set --host mailbox.example.com
Read the whole body from a JSON file
openemail app-host set --data @app-host.json

همچنین در دسترس در

API
PUT /app-host
SDK
appHost.set()

openemail app-host verify

Check the web app address now

محدوده‌های دسترسیdomains:writeبه ورود نیاز دارد

نحوه استفاده

openemail app-host verify [flags]

Checks the web app address straight away, whether its DNS records answer and its certificate is issued, and returns it in the same shape as get.

When the last check ran less than 10 seconds ago, nothing new is checked and the address comes back as it stands, so calling it faster than that gains nothing. With no address set, nothing is checked and status comes back as none. A record published a moment ago can take a few minutes to show up in public DNS.

نمونه‌ها

openemail app-host verify
Print the raw JSON
openemail app-host verify --json

همچنین در دسترس در

API
POST /app-host/verify
SDK
appHost.verify()

openemail app-host delete

Remove the web app address of the workspace

محدوده‌های دسترسیdomains:writeبه ورود نیاز دارد
از شما تأیید می‌خواهد
نام‌های مستعارrmdelremove

نحوه استفاده

openemail app-host delete [flags]

Removes the web app address of the workspace. Everyone signed in there is signed out, the address stops opening the workspace, and emails link to openemail.uk again. People keep working at openemail.uk with the same accounts.

Its DNS records are left at your DNS provider, so remove them there when you no longer need them. Removing the address when none is set changes nothing and answers deleted: false. Setting the same address again later sets it up from scratch.

نمونه‌ها

openemail app-host delete
Skip the confirmation, for scripts
openemail app-host delete --yes

همچنین در دسترس در

API
DELETE /app-host
SDK
appHost.delete()