Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/(account)/api-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ curl https://api.spacefast.com/v1/spaces \
-H "Authorization: Bearer sfa_xxxxxxxx"
```

An `sfa_` key is 56 characters after the prefix. Spacefast stores only a hash of it, which is why nobody can read a key back to you, ever.
An `sfa_` key is 56 characters after the prefix. Spacefast stores only a hash of it, so nobody can show you the key again.

## Presets

Expand All @@ -57,7 +57,7 @@ A preset is a named bundle of permissions. Pick the narrowest one that does the
| `billing_viewer` | Billing viewer | Read team and billing information, nothing else |
| `team_admin` | Team admin | Everything this team can do |

`space_publisher` and `ci_deploy` carry the same publish permissions. `space_admin` is the default when a request names no preset. It deliberately stops short of `team_admin`: it can never mint keys, manage members, or touch billing.
`space_publisher` and `ci_deploy` carry the same publish permissions. `space_admin` is the default when a request names no preset. Unlike `team_admin`, it can't create keys, manage members, or change billing.

## How permissions compile

Expand All @@ -69,12 +69,12 @@ Your own browser session has no stored policy. Spacefast compiles one per team f
|---|---|
| `owner` | Every action (`*`) |
| `admin` | Every action (`*`) |
| `member` | A fixed list: read, create, update, rename, and publish spaces; read, promote, and download versions; read domains; read, trigger, and create builds; read the team; read billing |
| `member` | A fixed list: read, create, update, rename, and publish spaces; read, promote, and download versions; read, attach, and verify domains; read, trigger, and create builds; read the team; read billing |

Two rules follow from that:

- **A key can never grant more than you have.** Minting a key whose policy exceeds your own is refused with `policy_exceeds_grantor`. A member cannot mint a key at all, because minting credentials is not on the member list.
- **A key follows your role, not a snapshot of it.** Keys that follow team membership pin the exact permissions they were granted, so redefining a preset later never quietly widens an existing key.
- **A key's ceiling is fixed when it's created.** A key that follows your team membership also tracks it: leaving a team ends the key's access to that team, and a role change there takes effect right away, while its access to your other teams continues. Redefining a preset later never widens or narrows an existing key.

Keys created through the API can also be scoped to a single Space instead of the whole team, which narrows the policy to exactly that Space.

Expand Down
10 changes: 5 additions & 5 deletions content/(account)/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 1
---

Creating a Spacefast account takes nothing but an email address and a six-digit code — no password required until you add one later.
To create a Spacefast account, you need an email address and the six-digit code sent to it. A password is optional, and you can add one later.

## Create an account

Expand Down Expand Up @@ -71,7 +71,7 @@ There is no side door. Turn two-factor off, then set it up again for a fresh set

Sensitive changes ask you to prove it's you again before they go through: setting or changing a password, connecting or disconnecting a provider, turning two-factor on or off, and adding, removing, or repointing account email addresses.

The screen is titled **Confirm it's you** and takes your password, an emailed code, or your authenticator code. One confirmation covers the next ten minutes. A sign-in from the last 24 hours counts as fresh already, so most of the time you never see it.
The screen is titled **Confirm it's you** and takes your password, an emailed code, or your authenticator code. One confirmation covers the next ten minutes, so several changes in a row ask only once. Signing in doesn't count as a confirmation.

## Sessions

Expand Down Expand Up @@ -115,7 +115,7 @@ Sessions are separate from agent access. To cut off an agent or a CLI, use **Acc
</Step>
</Steps>

Facts worth knowing about that credential:
About that credential:

| Fact | Value |
|---|---|
Expand All @@ -124,9 +124,9 @@ Facts worth knowing about that credential:
| What the CLI receives | A one-time API key, not a session |
| Access lifetime | 30 days after approval |
| Idle lifetime | 7 days without use |
| Where it is stored | The OS keychain on macOS and Linux, otherwise `~/.spacefast/auth.json` with `0600` permissions |
| Where it is stored | The macOS Keychain, or the Secret Service keyring on Linux when one is available. Otherwise `~/.spacefast/auth.json` with `0600` permissions |

Inside each team the credential can never do more than your own role allows there. Change your role and the same credential retunes itself on the next request.
Inside each team, the credential can't do more than your current role allows there. If your role changes, the new role applies from the credential's next request.

`sf logout` deletes the local login and revokes the key when the CLI minted it. To kill it from the browser instead, revoke the connection under **Account settings → Connected apps**.

Expand Down
6 changes: 3 additions & 3 deletions content/(account)/billing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ sidebar:
order: 3
---

Prices, allowances and limits for every plan are on [Pricing & Limits](/pricing). This page covers managing a plan.
Manage your plan here. Prices, allowances, and limits for every plan are on [Pricing & Limits](/pricing).

## Upgrade, downgrade or cancel

Open your team's **Settings → Billing** to change or cancel a plan. Only owners and admins can change billing. Choose **Open billing portal** for invoices and payment methods.

Upgrades apply immediately and prorate to the day. Downgrades apply at renewal. Cancellation stops renewal, with access continuing until the paid period ends. There are no refunds. Review the price and effective date before confirming.
Upgrades apply immediately and are prorated. Downgrades apply at renewal. Cancellation stops renewal, with access continuing until the paid period ends. There are no refunds. Review the price and effective date before confirming.

## Read the plan through the API

Expand All @@ -26,7 +26,7 @@ Your Spaces keep serving through a grace period, but you cannot change anything.
| Stage | How long | What visitors get | What you get |
| --- | --- | --- | --- |
| Past due | 7 days from the failed payment | Spaces serve normally | Reads work. Every write returns `402` with code `tenant_past_due` |
| Suspended | After the grace period ends | Every space serves `402` and the text `This space is paused.` | Reads work. Every write returns `403` with code `tenant_suspended` |
| Suspended | After the grace period ends | Every space serves `402` with a **This space is paused** page | Reads work. Every write returns `403` with code `tenant_suspended` |

Settle the payment in the billing portal to restore access. API reads remain available in either state.

Expand Down
6 changes: 3 additions & 3 deletions content/(account)/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The first two are real usage from the last 30 days.
| When | Pauses | Keeps working |
| --- | --- | --- |
| Personal uses its $1 | New [builds](/ci) and [Workers](/functions) | Deployed Spaces: serving, compute, email |
| You reach your spending cap | New builds and Workers. Nothing above the cap is charged | Deployed Spaces |
| You reach your spending cap | New builds and Workers. Nothing above the cap is charged | Deployed Spaces, until usage reaches the serving-pause threshold, twice the cap unless you change it. Then they stop serving until you raise the cap or the month resets |
| A Space hits one of its limits | That request gets a 429 ([rate limiting](/infrastructure/rate-limiting)), or that publish gets an [error](/errors) naming the limit | The rest of the Space |

## Domains
Expand All @@ -64,15 +64,15 @@ Monthly, in US dollars, before tax. Plans and Boost bill at the start of the mon

### What if I upgrade or downgrade?

Upgrades apply right away, prorated to the day. Downgrades apply at renewal; anything over the new limits keeps serving but becomes read-only until it's back under.
Upgrades apply right away and are prorated. Downgrades apply at renewal; anything over the new limits keeps serving but becomes read-only until it's back under.

### Can prices change?

We may change our fees going forward, in line with the [Terms of Service](https://automattic.com/tos/). If the price of a plan you already pay for goes up, you keep your current price for at least 12 months and get at least 60 days' notice. If you don't agree, you can cancel. Price cuts apply to everyone.

### Can I cap my spending?

Yes, on Go, Pro and Business. The cap starts at twice your plan price, with alerts at 50%, 75% and 100%. You're never charged above it, even if usage briefly runs past it.
Yes, on Go, Pro and Business. The cap starts at twice your plan price, with alerts at 50%, 80% and 100%. You're never charged above it, even if usage briefly runs past it.

### Do you have nonprofit or education pricing?

Expand Down
8 changes: 4 additions & 4 deletions content/(account)/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 4
---

Allowances, unit prices and what each meter counts are on [Pricing & Limits](/pricing). This page covers reading your current usage.
Check your current usage here. Allowances, unit prices, and what each meter counts are on [Pricing & Limits](/pricing).

## Read current usage

Expand All @@ -23,11 +23,11 @@ Two endpoints return the numbers those pages draw. `GET /v1/teams/{teamId}/usage
| --- | --- | --- | --- |
| Spaces | `spaces` | Live spaces in the team | Blocks at the plan limit. `409` `quota_exceeded` |
| Custom domains | `domains` | External domain groups against the plan quota | Blocks. `409` `domain_quota_exceeded` |
| Team members | `members` | Billable seats, live members plus pending invitations | Blocks at the plan limit. `409` `team_member_quota_exceeded` |
| Team members | `members` | Billable team members | Blocks at the plan limit. `409` `team_member_quota_exceeded` |
| Storage | `storageBytes` | Disk your spaces occupy | Displayed only. Nothing blocks |
| Publishes | `deploysToday` | Publishes since the UTC day started, your pushes and CI builds pooled | Warns only. Publishing continues |
| Publishes | `buildsDeploysToday` | Publishes and builds since the UTC day started, pooled | Warns only. Publishing continues |

The response also carries `storageQuotaBytes`, `storageOverageBytes`, `deploysDaily`, and `meterStartedAt` so you can compute headroom and know when the metering day rolled over.
The response also carries `storageQuotaBytes`, `storageOverageBytes`, `buildsDeploysDaily`, and `buildsDeploysThisMonth`, so you can compute headroom.

### Current per-space measurements

Expand Down
2 changes: 1 addition & 1 deletion content/(concepts)/design-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can also add the standards yourself in the dashboard. **Look & feel** holds

Use **Brand files** to upload logos, images, fonts, and source documents. After uploading, edit **How to use** to tell your agent where and when a file belongs. A filename alone cannot do that job.

Each upload must be no larger than 25 MB. Files stay in the team's private Media Library. Accepted SVG files are sanitized on upload, so check the saved artwork. An agent must download needed files and put visitor-facing assets in the project's source; private file URLs do not belong in a live page.
Each upload can be up to 100 MB. Files stay in the team's private Media Library. Accepted SVG files are sanitized on upload, so check the saved artwork. An agent must download needed files and put visitor-facing assets in the project's source; private file URLs do not belong in a live page.

## Apply it to a project

Expand Down
5 changes: 3 additions & 2 deletions content/(concepts)/spaces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ To move a Space to another team, run `sf spaces transfer <team> --space docs`, o

## Sharing when you create one

A new team-owned Space starts at one of two presets. A Space published without an account has no owning team. Its space key and claim link open it until the claim window ends; see [Publish without an account](/anonymous-and-claim).
A new team-owned Space starts at one of three presets. A Space published without an account has no owning team. Its space key and claim link open it until the claim window ends; see [Publish without an account](/anonymous-and-claim).

| Preset | Who can open the live Space |
| --- | --- |
| `private` | The owning team, plus anyone you add |
| `public` | The owning team, plus anyone on the web |
| `parent_team` | The owning team, plus everyone in its parent team. Needs subteams, which are on Enterprise |

The API still accepts `team` and treats it as `private`.

Expand Down Expand Up @@ -133,7 +134,7 @@ What changes:
- The old slug stays reserved for this Space.
- Version URLs do not move. They were computed once and stored.

One thing blocks a rename. While `name` is set in your `sf.jsonc`, the API refuses to rename the Space — the file would win back the old name on the next publish. Remove the key or rename it in the file. See [Config file](/config-file).
One thing blocks a rename. While `name` is set in your `sf.jsonc`, the API refuses to rename the Space, because the next publish would set the old name again. Remove the key or rename it in the file. See [Config file](/config-file).

## Deleting and restoring

Expand Down
8 changes: 5 additions & 3 deletions content/(concepts)/teams.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A team owns its Spaces, domains, API keys, and billing. Your role in that team c
Personal and Go allow only the owner. Adding another member needs [Pro](/pricing). Members on Pro: {{plan-team-members-pro}}.

- **Publish together.** Members can create Spaces, publish new versions, and roll back. The Space stays with the team when a member leaves.
- **Keep access in one place.** Invite someone to the team to give them access to team-owned work at their role. Remove them to take that access away across the team's Spaces. Set the default access for each new Space to `private` or `public`.
- **Keep access in one place.** Invite someone to the team to give them access to team-owned work at their role. Remove them to take that access away across the team's Spaces. Set the access each new Space starts with.
- **Separate routine work from administration.** Members can publish, while owners and admins manage invitations, domains, and billing. The [role table](#roles) shows the full boundary.

## What a team is
Expand Down Expand Up @@ -47,7 +47,8 @@ Three roles, and the one you hold in a team caps everything you do there, whethe
| Read domains | Yes | Yes | Yes |
| Read billing and usage | Yes | Yes | Yes |
| Delete a Space or a version, export, import | Yes | Yes | No |
| Add, verify, or assign domains and DNS | Yes | Yes | No |
| Attach a domain to a Space and verify it | Yes | Yes | Yes |
| Detach or buy domains, change DNS | Yes | Yes | No |
| Team variables and webhooks | Yes | Yes | No |
| Transfer a Space to another team | Yes | Yes | No |
| Change billing | Yes | Yes | No |
Expand Down Expand Up @@ -107,8 +108,9 @@ To hand the team over, use **Team settings → Danger zone → Transfer ownershi
|---|---|
| `private` | Access for the owning team |
| `public` | Access for the owning team, plus view access for anyone on the web |
| `parent_team` | Access for the owning team, plus view and comment access for everyone in its parent team. Needs subteams, which are on Enterprise |

The default is `private`. The API accepts `team` as a legacy spelling of `private`. From a terminal, `sf teams defaults` prints the current value and `sf teams defaults public` sets it. Per-Space access, share links, and passwords are covered in [Spacefast Share](/share).
The default is `private`. From a terminal, `sf teams defaults` prints the current value and `sf teams defaults public` sets it. Per-Space access, share links, and passwords are covered in [Spacefast Share](/share).

## Move a Space to another team

Expand Down
20 changes: 10 additions & 10 deletions content/(concepts)/versions.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Versions and the live channel
description: Immutable versions, the live channel, promotion policies, and rollback to a retained ready version without rebuilding
description: Immutable versions, the live channel, promotion policies, and rollback to a retained ready version
sidebar:
order: 2
---

A rollback doesn't rebuild anything. It repoints `live` at a retained, ready version; deleted or expired versions cannot be rollback targets.
A rollback points `live` back at a retained, ready version and doesn't rebuild it. By default it applies your current rewrites, which makes a new version from that version's files. Deleted or expired versions cannot be rollback targets.

## A version is a snapshot

Expand Down Expand Up @@ -48,21 +48,21 @@ A channel has a promotion policy.
On a manual channel an ordinary publish comes back with `activation.outcome` of `unpromoted` and `reason` `channel_promotion_manual`. Nothing failed. The version is ready and waiting for an explicit promote.

```bash
sf channels ls --space docs
sf channels list --space docs
sf channels set live --promotion manual --space docs
```

## Promote and roll back

Promoting points `live` at a ready version. That is the whole operation. No files move, nothing is rebuilt, and the previous version keeps its own URL.
Promoting points `live` at a ready version. A newer version goes live as saved. An older one is a rollback: by default it applies your current rewrites to that version's files, which makes a new version and puts that live. Pass `--no-refresh-rewrites` (API: `refreshRewrites: false`) to make the older version live exactly as saved. Either way, the previous version keeps its own URL.

Rolling back is the same operation aimed backwards. There is no separate rollback mechanism, and no rebuild happens either way. The dashboard says it plainly: **Takes effect in seconds. Nothing is rebuilt.**
Rolling back is the same operation, pointed at an older version.

<Tabs>
<Tab title="CLI">

```bash
sf versions ls --space docs
sf versions list --space docs
sf rollback v12 --space docs
sf promote v14 --space docs
```
Expand Down Expand Up @@ -119,7 +119,7 @@ All of them. Ready versions stay until you delete them, on every plan.
To delete one:

```bash
sf versions rm v12 --space docs
sf versions delete v12 --space docs
```

A version the `live` channel points at cannot be deleted, and neither can one a branch hostname serves. Promote something else first. The refusal is `version_in_use` and names what is holding it.
Expand All @@ -143,9 +143,9 @@ To browse rather than diff, [`listSpaceVersionFiles`](/api/reference/versions/li

| Task | CLI | Dashboard |
| --- | --- | --- |
| List versions | `sf versions ls` | **Versions** |
| List versions | `sf versions list` | **Versions** |
| Inspect one | `sf versions inspect v12` | A version row, then the detail page |
| Make one live | `sf promote v12` | **Make live** |
| Go back | `sf rollback v12` | **Roll back to** on Overview |
| Delete one | `sf versions rm v12` | Version detail page |
| Change promotion policy | `sf channels set live --promotion manual` | Not in the dashboard |
| Delete one | `sf versions delete v12` | Version detail page |
| Change promotion policy | `sf channels set live --promotion manual` | **Publishing** on **Versions**: **Automatic** or **Manual** |
Loading
Loading