Create, deploy, and host a website for free. Build a complete website from scratch and deploy it to the cloud with free hosting, free SSL, and custom domains — all from the terminal. Full CMS included: manage blog posts, team members, pages, products, portfolios, services, testimonials, FAQs, or any structured content. Add and edit CMS content, sync database schemas, validate HTML templates, invite clients to a white-label portal, and push live deployments. Convert any existing HTML site into a CMS-powered site. One-time browser login for OAuth, then every operation runs entirely in the terminal — designed for AI agents to go from zero to a publicly accessible website in minutes.
FastMode lets you create a live website, deploy it to the cloud, and manage all its content — entirely from the command line. One-time browser login for OAuth authentication, then every operation runs in the terminal. No local servers, no manual dashboards.
yoursite.fastmode.aiwww.example.com)This is the complete sequence to go from nothing to a live website.
# 1. Authenticate (one-time — credentials persist at ~/.fastmode/credentials.json)
fastmode login
# 2. Create a project (gets a free hosted URL instantly)
fastmode projects create "Acme Corp"
fastmode use "Acme Corp"
# 3. Define content structure (write schema.json, then sync it)
fastmode schema sync -f schema.json
# 4. Add content
fastmode items create posts -n "Welcome" -d '{"title": "Welcome to Acme", "body": "<p>We build great things.</p>"}'
fastmode items create team -n "Jane Doe" -d '{"role": "Founder", "bio": "<p>Visionary leader.</p>"}'
# 5. Build HTML templates with {{tokens}}, package into a zip, validate, deploy
fastmode validate package site.zip
fastmode deploy site.zip
# Deploy waits for build to finish and reports success or failure with error details
# 6. If the build failed, check what went wrong
fastmode status
# Fix the issue, then re-deploy
STOP. Before writing ANY HTML, templates, or manifest.json, complete these steps.
fastmode projects
This lists all the user's existing FastMode projects.
If projects exist: Ask the user: "Is this website for one of your existing projects, or should I create a new one?" Let the user choose.
If NO projects exist: This is a new user — ask: "What would you like to name your new project?"
fastmode use "Project Name" to set it as defaultfastmode schema show to get the current collections and fieldsfastmode projects create "Project Name"fastmode use "Project Name"fastmode schema syncfastmode generate-samples| Requirement | How to Get It |
|---|---|
| Project selected/created | fastmode projects / fastmode projects create |
| Default set | fastmode use "Project Name" |
| Schema known (existing) | fastmode schema show |
If you don't have a project set, DO NOT PROCEED. Go back to Step 1.
WHY THIS MATTERS:
Before writing any HTML or templates, analyze the site:
/, /about, /blog, /blog/post-slug, etc.)/resources for articles, keep /resources. Do NOT change it to /blog. Use the manifest's path configuration.fastmode login # Open browser for OAuth device flow
fastmode logout # Delete ~/.fastmode/credentials.json
fastmode whoami # Show current user email and name
login uses OAuth 2.0 device authorization flow: opens a browser window where the user approves access on fastmode.ai, then credentials are saved automatically. The browser is only needed for this one-time login step.~/.fastmode/credentials.json with restricted file permissions (0o600 — owner read/write only). Treat this file as a sensitive secret.logout deletes ~/.fastmode/credentials.json and revokes the stored tokens.fastmode projects # List all projects (default action)
fastmode projects list # Same as above
fastmode projects create "Name" # Create a new project
fastmode projects create "Name" --subdomain custom-sub # Custom subdomain
fastmode projects create "Name" --force # Skip similar-name check
fastmode use <project> # Set default project for all commands
projects create checks for existing projects with similar names. Use --force to skip.use stores the default in ~/.fastmode/config.json. Does NOT validate the project exists.fastmode schema show # Show all collections and fields
fastmode schema show -p "Project Name" # Specify project
fastmode schema sync -f schema.json # Create collections and fields from JSON file
fastmode schema field-types # List all available field types (no auth needed)
schema show requires authentication and a project.schema sync reads a local JSON file and creates/updates the schema. Skips duplicates. Two-phase: creates collections first, then fields (handles relation dependencies).schema field-types works without authentication.fastmode items list <collection> # List all items
fastmode items list posts --limit 10 --sort publishedAt --order desc
fastmode items get <collection> <slug> # Get single item
fastmode items create <collection> -n "Name" -d '{"field": "value"}'
fastmode items create posts -n "Title" -f data.json # Data from file
fastmode items create posts -n "Draft Post" -d '{}' --draft
fastmode items update <collection> <slug> -d '{"field": "new value"}'
fastmode items update posts my-post -n "New Title"
fastmode items update posts my-post --publish # Publish a draft
fastmode items update posts my-post --unpublish # Revert to draft
fastmode items delete <collection> <slug> --confirm # REQUIRES --confirm
fastmode items relations <collection> # Show linkable items for relation fields
fastmode items relations posts --field author # Options for specific field
See the Content Items section below for detailed rules on data formats, relation fields, and drafts.
fastmode clients list # List portal clients with access
fastmode clients invite [email protected] # Invite with default permissions
fastmode clients invite [email protected] -n "Jane" --permissions cms.read,cms.write
fastmode clients invitations # List pending invitations
fastmode clients update-permissions <accessId> --permissions cms.read,editor
fastmode clients revoke <accessId> --confirm # REQUIRES --confirm
fastmode clients cancel-invite <invitationId> --confirm # REQUIRES --confirm
See the Client Portal Management section below for details on permissions, invite flow, and examples.
fastmode deploy site.zip # Deploy and wait for build to finish
fastmode deploy site.zip --force # Skip GitHub sync check
fastmode deploy site.zip --no-wait # Upload only, don't wait for build
fastmode deploy site.zip --timeout 300000 # Custom timeout in ms (default: 120000)
fastmode status # Check current build/deploy status
fastmode deploys # List deployment history
fastmode deploys --limit 5 # Limit number of results
See Deployment & Build Status below for the full deploy lifecycle.
fastmode validate manifest manifest.json
fastmode validate template index.html -t custom_index
fastmode validate template post.html -t custom_detail -c posts
fastmode validate template post.html -t custom_detail -c posts -p "My Project"
fastmode validate template about.html -t static_page
fastmode validate package site.zip
custom_index (collection listing), custom_detail (single item), static_page (fixed page).-c specifies the collection slug (required for custom_index and custom_detail).-p validates tokens against the actual project schema (reports missing fields).fastmode examples <type> # Code examples for a specific pattern
fastmode guide # Full website conversion guide
fastmode guide templates # Template syntax guide
fastmode guide common_mistakes # Common pitfalls to avoid
fastmode generate-samples # Generate placeholder content for empty collections
fastmode generate-samples -c posts team # Specific collections only
Available example types: manifest_basic, manifest_custom_paths, blog_index_template, blog_post_template, team_template, downloads_template, form_handling, asset_paths, data_edit_keys, each_loop, conditional_if, nested_fields, featured_posts, parent_context, equality_comparison, comparison_helpers, youtube_embed, nested_collection_loop, loop_variables, common_mistakes.
Available guide sections: full, first_steps, analysis, structure, seo, manifest, templates, tokens, forms, assets, checklist, common_mistakes.
Every project-scoped command (schema, items, deploy, status, etc.) needs a project. Resolution order:
-p / --project flag — explicit on the command: -p "My Project" or -p abc123-uuidFASTMODE_PROJECT environment variable — set in shell: export FASTMODE_PROJECT="My Project"fastmode use "My Project" in ~/.fastmode/config.jsonIf none is set, the command prints an error and exits with code 1:
Error: No project specified.
Use -p <id-or-name>, set FASTMODE_PROJECT env var, or run: fastmode use <project>
Project identifiers can be:
550e8400-e29b-41d4-a716-446655440000)Write a schema.json file and sync it:
fastmode schema sync -f schema.json
{
"collections": [
{
"slug": "posts",
"name": "Blog Posts",
"nameSingular": "Blog Post",
"fields": [
{ "slug": "title", "name": "Title", "type": "text", "isRequired": true },
{ "slug": "excerpt", "name": "Excerpt", "type": "textarea" },
{ "slug": "body", "name": "Body", "type": "richText" },
{ "slug": "featured-image", "name": "Featured Image", "type": "image" },
{ "slug": "category", "name": "Category", "type": "select", "options": "News, Tutorial, Update" },
{ "slug": "tags", "name": "Tags", "type": "multiSelect", "options": "JavaScript, Python, DevOps, AI" },
{ "slug": "featured", "name": "Featured", "type": "boolean" },
{ "slug": "author", "name": "Author", "type": "relation", "referenceCollection": "team" }
]
},
{
"slug": "team",
"name": "Team Members",
"nameSingular": "Team Member",
"fields": [
{ "slug": "role", "name": "Role", "type": "text" },
{ "slug": "bio", "name": "Bio", "type": "richText" },
{ "slug": "photo", "name": "Photo", "type": "image" },
{ "slug": "email", "name": "Email", "type": "email" }
]
}
]
}
To add fields to existing collections, use fieldsToAdd:
{
"fieldsToAdd": [
{
"collectionSlug": "posts",
"fields": [
{ "slug": "reading-time", "name": "Reading Time", "type": "number" }
]
}
]
}
You can combine collections and fieldsToAdd in the same file. Duplicate collections and fields are automatically skipped.
| Type | Description | Template Usage | Notes |
|---|---|---|---|
text | Single-line text | {{field}} | Titles, names, short strings |
textarea | Multi-line plain text | {{field}} | Descriptions, excerpts |
richText | Formatted HTML content | {{{field}}} | MUST use triple braces |
number | Numeric value | {{field}} | Prices, counts, order |
boolean | True/false toggle | {{#if field}} | Toggles, flags |
date | Date only | {{field}} | Birth dates, event dates |
datetime | Date and time | {{field}} | Timestamps |
image | Image file/URL | {{field}} | Renders as URL |
file | Downloadable file (max 10MB) | {{field}} | Link as <a href="{{field}}" download> |
url | Web link | {{field}} | External URLs |
videoEmbed | YouTube/Vimeo/Wistia/Loom | {{field}} | Embed URL |
email | Email with validation | {{field}} | Validated email addresses |
select | Single dropdown | {{field}} | Requires "options": "A, B, C" |
multiSelect | Multiple selections | {{field}} | Requires "options": "A, B, C" |
relation | Link to another collection | {{field.name}} | Requires "referenceCollection": "slug" |
Relation fields link items between collections (e.g. a post has an author from the team collection). When creating or updating items with relation fields:
fastmode items relations <collection> to get the available IDsfastmode items relations posts --field author shows team member IDs# First, find the author's item ID
fastmode items relations posts --field author
# Output shows: ID: 550e8400-..., Name: Jane Doe, Slug: jane-doe
# Then use that ID when creating a post
fastmode items create posts -n "My Post" -d '{"title": "My Post", "author": "550e8400-e29b-41d4-a716-446655440000"}'
WRONG: "author": "Jane Doe" — this will NOT work.
CORRECT: "author": "550e8400-e29b-41d4-a716-446655440000" — use the UUID.
fastmode items create <collection> -n "Item Name" -d '{"field": "value"}'
| Flag | Description |
|---|---|
-n, --name <name> | Required. Item name/title. |
-s, --slug <slug> | URL slug. Auto-generated from name if omitted. |
-d, --data <json> | Field data as JSON string. |
-f, --file <path> | Read field data from a JSON file (takes precedence over -d). |
-p, --project <id> | Project ID or name. |
--draft | Create as unpublished draft. |
Data rules:
-d value must be valid JSON. Keys are field slugs.-f reads from a JSON file. If both -f and -d are given, -f wins.-d nor -f is given, the item is created with just the name (no field data)."body": "<h2>Title</h2><p>Content here.</p>"--draft, items are published immediately (publishedAt set to now).fastmode items update <collection> <slug> -d '{"field": "new value"}'
| Flag | Description |
|---|---|
-n, --name <name> | New name/title. |
-d, --data <json> | Updated fields as JSON. Only provided fields change — others are preserved. |
-f, --file <path> | Read updated data from a JSON file. |
-p, --project <id> | Project ID or name. |
--publish | Set publishedAt to now (make item live). |
--unpublish | Set publishedAt to null (revert to draft). |
Update is a partial merge. Only the fields you provide in -d are changed. All other fields remain as they are.
fastmode items delete <collection> <slug> --confirm
The --confirm flag is required. Without it, the command refuses to run and exits with code 1. This is a safety measure — deletion is permanent and cannot be undone.
Always ask the user for confirmation before deleting.
| Action | Command |
|---|---|
| Create as published (default) | fastmode items create posts -n "Title" -d '{...}' |
| Create as draft | fastmode items create posts -n "Title" -d '{...}' --draft |
| Publish a draft | fastmode items update posts my-slug --publish |
| Unpublish (revert to draft) | fastmode items update posts my-slug --unpublish |
publishedAt: null and are not visible on the live site.publishedAt timestamp and appear on the live site.--draft, new items are published immediately.The client portal lets you give external clients (your customers, collaborators) limited access to manage content on your FastMode site. Clients get their own login, separate from your admin account, with configurable permissions.
The portal is auto-enabled on the project when you send the first invitation. No manual setup needed.
| Permission | Description |
|---|---|
cms.read | View collection items |
cms.write | Create, edit, archive, and delete items |
editor | Access the visual editor |
forms.read | View form submissions |
dns | Manage DNS settings |
api | Access API and integrations |
notifications | Manage notification rules |
billing | View plans and manage billing |
Default permissions (used when none specified): cms.read, cms.write, editor, forms.read
# Invite with default permissions
fastmode clients invite [email protected]
# Invite with a name
fastmode clients invite [email protected] -n "Jane Smith"
# Invite with specific permissions
fastmode clients invite [email protected] -n "Jane Smith" --permissions cms.read,forms.read
# Invite with all permissions
fastmode clients invite [email protected] --permissions cms.read,cms.write,editor,forms.read,dns,api,notifications,billing
The command returns an invite URL — share this with the client. The link expires in 7 days.
Important:
# See who has portal access
fastmode clients list
# See pending (unaccepted) invitations
fastmode clients invitations
clients list shows the access ID for each client — you need this ID to update permissions or revoke access.
# First, get the access ID from the list
fastmode clients list
# Update permissions (replaces ALL existing permissions)
fastmode clients update-permissions <accessId> --permissions cms.read,cms.write,editor
Permissions are replaced entirely — if a client had cms.read,cms.write,editor,forms.read and you set --permissions cms.read, they will ONLY have cms.read.
# Revoke a client's portal access (requires --confirm)
fastmode clients revoke <accessId> --confirm
The --confirm flag is required. Without it, the command refuses to run.
Always ask the user for confirmation before revoking access.
Revoking access is a soft delete — the client's account still exists but they cannot access this project's portal. Their active sessions are terminated immediately.
# Cancel a pending invitation (requires --confirm)
fastmode clients cancel-invite <invitationId> --confirm
The invitation link will no longer work. Use fastmode clients invitations to get the invitation ID.
# 1. Invite your client
fastmode clients invite [email protected] -n "Design Agency" --permissions cms.read,cms.write,editor
# 2. Share the invite URL from the output with the client
# 3. Later, check who has access
fastmode clients list
# 4. Restrict a client to read-only
fastmode clients update-permissions abc12345 --permissions cms.read
# 5. Remove a client who no longer needs access
fastmode clients revoke abc12345 --confirm
The deployment package is a .zip file with this exact structure:
site.zip
├── manifest.json # REQUIRED — defines pages and CMS templates
├── pages/ # Static HTML pages
│ ├── index.html # Homepage (REQUIRED — must have path "/")
│ ├── about.html
│ └── contact.html
├── templates/ # CMS-powered templates (if using collections)
│ ├── posts_index.html # Blog listing page
│ ├── posts_detail.html # Single blog post page
│ └── team_index.html # Team listing page
└── public/ # ALL static assets (CSS, JS, images, fonts)
├── css/
│ └── style.css
├── js/
│ └── main.js
└── images/
├── logo.png
└── favicon.ico
manifest.json MUST be at the root of the zip.pages/. One HTML file per page.templates/. Convention: {collection}_index.html and {collection}_detail.html.public/. CSS, JavaScript, images, fonts — everything./public/ prefix in HTML. Example: <link href="/public/css/style.css" rel="stylesheet">."path": "/" in the manifest.WRONG — will 404:
<link href="/assets/css/style.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="../css/style.css" rel="stylesheet">
<script src="js/main.js"></script>
CORRECT:
<link href="/public/css/style.css" rel="stylesheet">
<script src="/public/js/main.js"></script>
<img src="/public/images/logo.png" alt="Logo">
This also applies inside CSS files — background images AND fonts:
/* WRONG */
background-image: url('../images/bg.jpg');
background-image: url('images/bg.jpg');