Markdown Editor

How-To Guide Template (Diátaxis)

Goal-oriented how-to guide: prerequisites table, numbered steps with checks, verification, variations, failure table, worked example

Documentation & SupportStandardDiátaxis (how-to guide)CC BY-SA 4.0 (Diátaxis framework, attribution)how

How to use: Use it when a competent user needs the steps to reach one specific goal. Fill the goal, prerequisites and the verification check first, then the steps. The main pitfall is mixing teaching or background into the steps; link to a tutorial or explanation instead. else – explanation and reference get links, not paragraphs.

Preview

How-to guide: [Accomplish a specific goal]

Goal-oriented how-to guide in the Diátaxis sense: a recipe for a reader who already knows what they want to achieve and needs the steps to get there. Goal first, steps second, explanation only as links. Credits the Diátaxis framework by Daniele Procida (CC BY-SA 4.0); the text is original. In the Diátaxis compass a how-to guide serves action at work (application). Replace every [bracketed] value and every passage marked Example. The worked example uses the fictional company Corvid Commerce.

Contents

Document control

FieldValue
Document ID[DOC-HOWTO-001]
Version[1.0]
Status[Draft / In review / Published]
Owner[@owner]
Reviewers[@sme, @docs-reviewer]
Applies to[Product name] [version range]
Tested with[Product version, CLI version, operating systems]
Last testedYYYY-MM-DD
Last updatedYYYY-MM-DD
Classification[Public / Internal]

Revision history

VersionDateAuthorChange
1.02026-10-24[@owner]Updated to the standard template: prerequisites table, verification section, worked example, Diátaxis attribution

Goal and audience

This guide shows you how to [goal]. Use it when [situation in which the reader needs this]. It assumes you can already [baseline skill]; if you cannot, complete [tutorial name] first.

Example: This guide shows you how to rotate a Corvid Commerce API key without interrupting traffic. Use it when a key is due for scheduled rotation, when a team member with access leaves, or when you suspect a key has leaked. It assumes you already call the Corvid Commerce Orders API from a backend service and can change that service's configuration. If you have never made an API call, start with the Corvid Commerce quickstart.

Time required: about [15] minutes, plus [one deployment] of your service.

Before you start

PrerequisiteRequirementHow to check
[Role or permission][Admin / Owner / named role][Where to see it]
[Tool][Name and minimum version][tool --version]
[System state][What must already exist][How to confirm]
Example: RoleCorvid Commerce workspace role "Developer admin"Dashboard, Settings, Members: your row shows the role
Example: Toolcorvid CLI 2.4 or latercorvid --version prints corvid 2.4.0 or higher
Example: StateYour service reads the key from a secret store, not from source codeSearch the repository for ck_live_; no matches

Safety note: [state any irreversible effect or risk before the reader starts]. Example: Revoking a key is immediate and cannot be undone. Any service still using the old key receives 401 Unauthorized at once.

Steps

  1. [Action verb plus object].

    [command]
    

    [One line on what you should see before moving on.]

  2. [Action verb plus object].

    [Details, the one option the reader must choose, edge cases.]

  3. [Action verb plus object].

    [Details.]

Example: rotating a Corvid Commerce API key.

  1. Create a second key with the same scopes as the current one.

    corvid keys create --name "orders-backend-2026-10" --scopes orders:read,orders:write
    

    The CLI prints the new key once, starting with ck_live_. Copy it now; it is not shown again.

  2. Store the new key in your secret store under a new version.

    vault kv put secret/orders-backend CORVID_API_KEY="ck_live_[new key]"
    

    Keep the old version. Both keys are valid at this point, so nothing breaks.

  3. Deploy your service so it reads the new key.

    Use your normal deployment process. When the rollout finishes, every instance must be running the new configuration.

  4. Confirm that traffic has moved to the new key.

    corvid keys usage --name "orders-backend-2026-10" --since 15m
    

    The request count for the new key rises. Run the same command for the old key name; its count stays at zero for at least 15 minutes.

  5. Revoke the old key.

    corvid keys revoke --name "orders-backend-2026-04"
    

    The CLI asks you to type the key name to confirm, then prints revoked.

Verify the result

Run [check] and confirm that [expected observable result].

Example: List the keys and check that only the new key is active:

corvid keys list --status active
NAME                     SCOPES                    CREATED
orders-backend-2026-10   orders:read,orders:write  2026-10-24

Then place a test request from your service's health endpoint and confirm it returns 200. If the old key name still appears in the active list, step 5 did not complete: run it again.

Options and variations

VariationWhen to use itWhat changes
[Variation][Condition][Which step changes and how]
Example: Emergency rotationYou believe the key has leakedDo steps 1 to 4 as fast as possible and revoke the old key (step 5) immediately after; if you see active abuse, revoke first and accept a short outage
Example: Multiple services share a keySeveral deployments use one keyCreate one key per service in step 1 instead; shared keys make step 4 unreliable
Example: Sandbox keyYou test against the sandboxAdd --env sandbox to every command; sandbox keys start with ck_test_

If it goes wrong

SymptomLikely causeFix
[Exact error text][Cause][Remedy]
Example: 403 insufficient_role on step 1Your role cannot create keysAsk a workspace owner to grant "Developer admin"
Example: Old key still shows traffic in step 4One instance did not restartRestart the remaining instances, then repeat step 4
Example: 401 Unauthorized after step 5A service you did not know about used the old keyCreate a key for that service, deploy it, and add it to your key inventory

Related documentation

  • Tutorial: [lesson for readers new to the product]. Example: Your first Corvid Commerce order.
  • Reference: [page that lists the values used above]. Example: corvid keys command reference.
  • Explanation: [page that gives the background]. Example: Why Corvid Commerce uses scoped keys.
  • Related templates: Quickstart Guide (docs/quickstart), Reference Documentation (docs/reference), Explanation Document (docs/explanation), Tutorial (writing/tutorial), Troubleshooting Guide (docs/troubleshooting).

Standard and licence note

Structure aligned with the how-to guide type of the Diátaxis framework by Daniele Procida (https://diataxis.fr), which is published under the Creative Commons Attribution-ShareAlike 4.0 International licence (https://creativecommons.org/licenses/by-sa/4.0/). The framework is credited here; all text in this template is original and no Diátaxis wording is reproduced. If you add material adapted from the Diátaxis pages themselves, that adapted material must carry attribution, indicate your changes and be shared under CC BY-SA 4.0 (the ShareAlike obligation); it does not become MIT. Check https://diataxis.fr for the current guidance. Corvid Commerce is fictional. Template licence: MIT.

Related templates