Skip to content

CLI reference

The rhap CLI is the primary tool for building, managing, and deploying Rhappsody apps from your terminal. It’s also available as rh (a shorter alias installed alongside it).

Installation

Terminal window
# macOS (Apple Silicon)
curl -L https://release.rhapp.cc/rhap-cli/stable/rhap-darwin-arm64 -o rhap
# macOS (Intel)
curl -L https://release.rhapp.cc/rhap-cli/stable/rhap-darwin-amd64 -o rhap
# Linux
curl -L https://release.rhapp.cc/rhap-cli/stable/rhap-linux-amd64 -o rhap
chmod +x rhap
sudo mv rhap /usr/local/bin/
sudo ln -s /usr/local/bin/rhap /usr/local/bin/rh

Always use curl (not a browser) on macOS to avoid the quarantine flag.

State is stored in ~/.rhap/ — auth tokens, config, cached binaries, and toolchains.


Global flags

These flags are accepted by every command.

FlagShort formsDescription
--env <name>Target a named environment
--prodUse the production environment
--stageUse the staging environment
--devUse the development environment
--space <name>-sOverride the active space
--app <name>-aOverride the active app
--target <space/app>Set both space and app at once
--versionPrint the CLI version and exit

Getting started

code

Open a space-focused Rhappsody authoring session. An app is optional.

Terminal window
rhap code # Start a new session
rhap code --continue # Resume the latest session
rhap code --resume <id> # Resume a session by local id
rhap code --debug

new

Create a new app or space.

Terminal window
rhap new app [name] # Create an app with a starter cloud draft
--no-input --json --use
rhap new space [name] # Create a space
--no-input --json --use

list

List your spaces or the apps in the active space.

Terminal window
rhap list # List spaces
rhap list apps # List apps in the active space

status

Show CLI, working-context, and local-release status.

Terminal window
rhap status

target

Show or set what you are working on. A target persists across commands.

Terminal window
rhap target # Show current target
rhap target <space/app> # Set target
rhap target --clear # Clear the saved target
rhap target --view # Open the target in the browser

Aliases: use

go

Open a Rhappsody page in your browser.

Terminal window
rhap go # Open your account page
rhap go <space> # Open a space
rhap go <space/app> # Open an app
--print # Print the URL instead of opening
--space <name>

log

Show recent account, space, or app activity.

Terminal window
rhap log # Recent account activity
rhap log <space> # Space activity
rhap log <space/app> # App activity
--account # Account-level events only
--security # Security events only
--since <period> # e.g. 6h, 7d
--limit <n> # 1–200
--json

update

Update rhap to the latest release.

Terminal window
rhap update # Update to latest stable
rhap update --release <name> # stable / preview / edge / version
rhap update --check # Check without updating
rhap update --rollback # Roll back to the previous version
rhap update --yes

delete

Permanently delete an app or space.

Terminal window
rhap delete app [space/app] # Delete an app
--yes/-y --no-input --json
rhap delete app acme/portal
rhap delete space [space] # Delete a space and all its apps
--yes/-y --no-input --json --no-wait

Alias: rm


Account

login / logout

Terminal window
rhap login # Authenticate
rhap logout # Log out and revoke credentials

account

Account information and settings.

Terminal window
rhap account # Show account info
rhap account settings # Show or change account settings
--name <string>
--brand-color <string>
--theme <light|dark|system>
--timezone <string>
--clear-name --clear-brand-color --clear-timezone
--json
rhap account default-space <space> # Set the default space on sign-in

Alias: whoami (for account status)

usage

Show account usage and quotas.

Terminal window
rhap usage

Space commands

space

Manage spaces and their settings.

Terminal window
rhap space list # List your spaces
rhap space settings config # Show space settings
--json
rhap space settings identity # Change identity settings
--name --description --kind <personal|business|community>
--brand-color --clear-name --clear-description --clear-brand-color
rhap space admins list # List delegated admins
--json
rhap space admins add <account> # Add a delegated admin
rhap space admins remove <account>

secret

Manage space secrets. Saved values are never revealed.

Terminal window
rhap secret list # List secrets (metadata only)
rhap secret show <name> # Show metadata and app access
rhap secret apps # List apps available for access restriction
rhap secret history # Show secret change history
rhap secret create <name> # Create a secret (prompts for value)
rhap secret replace <name> # Replace a secret's value
rhap secret update <name> # Change description or app access
rhap secret enable <name>
rhap secret disable <name>
rhap secret delete <name>

data

Collections, records, and Google Sheets.

Terminal window
rhap data collections list # List collections
--json
rhap data collections show [name]
--no-input --json
rhap data collections create <name>
rhap data collections delete [name]
--yes/-y --no-input
rhap data records list
--collection/-c <name> --page --limit --search --json
rhap data records show [id]
--collection/-c <name> --json
rhap data records create
--collection/-c <name> --data <json>
rhap data records update [id]
--collection/-c <name> --data <json>
rhap data records delete [id]
--collection/-c <name> --yes/-y --no-input
rhap data gsheet # Inspect Google Sheets connections

events

Manage events in the active space.

Terminal window
rhap events list
rhap events create [/event:<slug>]
--no-input
rhap events update [slug|id-prefix]
--no-input
rhap events delete <slug|id>
rhap events rsvp # Manage RSVPs
rhap events import <file.csv|json>
--source <name> # Required stable source key

files

Manage durable and temporary files in the active space.

Terminal window
rhap files list
--temporary --all --json
rhap files get <tag> <destination> # Download via short-lived read grant
--force/-f
rhap files save <local-file> # Upload a file
--tag <name>
rhap files access <tag> # Replace audience
rhap files delete <tag>
--temporary --yes/-y

images

Manage images in the active space.

Terminal window
rhap images list
--json --storage --live --pinned
rhap images upload <file-or-url>
--tag <name> --aspect-ratio --alt --pinned --json
--yes/-y --no-input
rhap images view <tag>
rhap images pin <tag> # Freeze the current rendition permanently
rhap images delete [tag]
--yes/-y --pinned --no-input

Manage links in the active space.

Terminal window
rhap links list
--tag <string> --json
rhap links create
--no-input --tags <list>
rhap links update [id-prefix]
--no-input
rhap links delete [id-prefix]
--yes/-y --no-input --tag <string>
rhap links import <file.csv|json>

Aliases: li, al, link, applinks

location

Manage locations (places) in the active space.

Terminal window
rhap location list
--status <all|draft|published|archived> --json
rhap location show [id|slug]
--json
rhap location create # Created as a draft
--no-input --json
rhap location update [id|slug]
--no-input --json
rhap location publish [id|slug]
rhap location unpublish [id|slug]
rhap location archive [id|slug]
rhap location primary [id|slug] # Make this the space's main location
rhap location delete [id|slug]
--yes --if-exists
rhap location import <file.csv|json>

Aliases: lo, locations

rewards

Open Rewards management for the active space in the browser. Requires an activated Rewards surface.

Terminal window
rhap rewards
--print

Alias: re

schedules

Manage named recurring schedules.

Terminal window
rhap schedules list
--limit <n> --after <cursor> --verbose
rhap schedules show [schedule-id]
rhap schedules create
rhap schedules update [schedule-id]
--revision <n> --yes/-y --clear <fields>
rhap schedules publish [schedule-id]
rhap schedules archive [schedule-id]
rhap schedules entries list
rhap schedules entries add
rhap schedules entries import
rhap schedules audience # Show or replace schedule audience
rhap schedules import <file.csv|json>
rhap schedules occurrences
--from <YYYY-MM-DD> --to <YYYY-MM-DD> --include-cancelled

Aliases: sc, schedule

task

Manage scheduled tasks in the active space.

Terminal window
rhap task list
rhap task inspect <id>
rhap task cancel <id>
rhap task pause <id>
rhap task resume <id>

Aliases: t, ta

tags

List paste-able references for use in Rhyme and templates (%tag, &aud_, &vid_, &fsec_, &faq_, etc.).

Terminal window
rhap tags [kind[,kind...]] [filter] # Filter by kind: images, events, users, etc.
rhap tags copy <tag> # Copy a reference to the clipboard
--json --interactive/-i

Aliases: tg, tag

audio

Audio recordings and collections in the active space.

Terminal window
rhap audio list # List recordings (&aud_) and collections (&acol_)
--json
rhap audio access <&aud_…|&acol_…> # Replace audience

Alias: au

video

Videos in the active space.

Terminal window
rhap video list # List videos (&vid_ ids)
--json
rhap video access <&vid_…> # Replace audience

Alias: vi

faq

The space FAQ.

Terminal window
rhap faq list # List sections (&fsec_) and questions (&faq_)
--json

asks

Configure help-routing: point members to the right place when they ask for help.

Terminal window
rhap asks list # List asks in display order
--json
rhap asks add [handle] [intent]
--label <text> --to <destination> --audience <member> --auto
rhap asks edit [handle|id]
--label --intent --to --audience --auto --handle
rhap asks remove [handle|id]
--yes --if-exists
rhap asks default # Set fallback when no ask matches
--label --to --clear
rhap asks test [message] # Preview which asks would match
--json

Communicate

announce

Send a broadcast announcement to space members.

Terminal window
rhap announce list
--expired --json
rhap announce send <message>
--pin / --no-pin # Pinned by default (becomes the banner)
--urgent
--role <0|3|6|9|10|11> # Limit to a member role
--group <id> # Repeatable
--app <id> # Repeatable
--campaign <string>

Aliases: an, broadcast

inbox

Inspect and manage app and space recipient inboxes.

Terminal window
rhap inbox app list # List app inbox messages
rhap inbox app read <id>
rhap inbox app create
rhap inbox app delete <id>
rhap inbox space list
rhap inbox space read <id>
rhap inbox space create
rhap inbox space delete <id>

Alias: in

form

Manage space-level forms and submissions.

Terminal window
rhap form list # List forms
rhap form show <handle> # Show form and its collecting apps
rhap form submissions list
rhap form questions # Manage form questions
rhap form access # Set form audience
rhap form export # Export submissions
rhap form followup # Follow-up fields
rhap form manage
rhap form tags

Alias: fo

fill

Manage draft fill values for the active app. Fill values are substituted into app templates at render time.

Terminal window
rhap fill list # List fills from the current app draft
rhap fill set <key> [value] # Set a draft fill value (or pipe via stdin)
rhap fill unset <key> # Remove a draft fill override

Community

blog

Manage posts in the space Blog.

Terminal window
rhap blog list
--status <all|draft|published|archived>
--query/-q <string> --page --limit --json
rhap blog show [id|slug]
--json --no-input
rhap blog create
--no-input --json
rhap blog update [id|slug]
--no-input --json
rhap blog publish [id|slug]
rhap blog unpublish [id|slug]
rhap blog archive [id|slug]
rhap blog access [id|slug] # Replace audience
rhap blog delete [id|slug]
--yes/-y --no-input --json --if-exists
rhap blog categories list
rhap blog categories create --no-input --json
rhap blog categories update [id|slug]
rhap blog categories delete [id|slug]

Alias: bl

discussions

Create and moderate comment boards. Each board has an immutable /handle.

Terminal window
rhap discussions list
--app <id> --json
rhap discussions create <handle>
--name <text> --description --app <id> --dormant
rhap discussions comments [board]
--json --replies
rhap discussions pin <comment> --board
rhap discussions lock <comment> --board
rhap discussions remove <comment> --board --yes/-y --no-input
rhap discussions ban <user> --board --reason --yes/-y --no-input
rhap discussions unban <user> --board
rhap discussions bans [board] --json
rhap discussions export [board] --to <path>
rhap discussions clear [board]
--save-to <path> --no-save --yes/-y --no-input

Aliases: di, discussion

groups

Manage user groups in the active space.

Terminal window
rhap groups list [slug|id]
--status <active|archived> --json
rhap groups create --no-input
rhap groups update [slug|id] --no-input
rhap groups delete [slug|id] --yes/-y --no-input
rhap groups edit <group> add <user> # Add a user to a group
rhap groups edit <group> remove <user> # Remove a user from a group

Aliases: gr, group

photos

Moderate member-submitted photos.

Terminal window
rhap photos galleries # List photo galleries
--json
rhap photos list
--status <pending|approved|hidden|rejected> --json --urls
rhap photos open <tag>
rhap photos approve <tag>
rhap photos hide <tag>
rhap photos reject <tag>
rhap photos delete <tag> --yes/-y
rhap photos access [gallery]
--json --show --public --role --group --user

Aliases: ph, photo

users

Manage space members.

Terminal window
rhap users list
--limit --offset --search --json
rhap users info [username]
rhap users create [username] --no-input
rhap users update [username|id] --no-input
rhap users reset-password
rhap users password
rhap users delete [username|id] --yes/-y --no-input
rhap users signup enable / disable
rhap users signup config # Show or change signup restrictions
rhap users signup codes list --all
rhap users signup codes create
rhap users signup codes revoke <id>
rhap users invite review <username>... --out <plan.json>
rhap users invite send <plan.json> --json
rhap users import <file.csv|json>
--pending --allow-role-changes --credentials-out <file> --dry-run

Aliases: us, user, members


Shop

products

Manage products in the active space.

Terminal window
rhap products list --archived --json
rhap products show [product] --archived --json
rhap products create [name] --no-input
rhap products update [product] --no-input
rhap products publish [product]
rhap products unpublish [product]
rhap products archive [product]
rhap products cover [product] # Manage cover image
rhap products import <file.csv|json>

shop

Check shop readiness and payment connection.

Terminal window
rhap shop status --json
rhap shop payments status --json
rhap shop orders list
--view <queue|review|collected>
--after-id <id> --json
rhap shop orders show <order> --json

App commands

apps

Publish, inspect, and manage apps.

Terminal window
rhap apps list --json
rhap apps open [space/app] --print
rhap apps publish [space/app] --json
rhap apps history [space/app]
--limit <n> --wide --json
rhap apps publication
rhap apps restore <publication-id> --yes/-y --json
# Settings
rhap apps settings status
rhap apps settings visibility --role <int> --listed
rhap apps settings availability
--timezone --start --end --start-time --end-time
--clear-start --clear-end
rhap apps settings email
--address --delivery --forward-to
--reply-routing --send-from
--auto-reply --auto-reply-message --clear-forwarding
# Configuration (designed apps)
rhap apps config templates
rhap apps config slots --template --design --revision
rhap apps config get <slot>
rhap apps config set <slot> <value>
rhap apps config inherit <slot>
rhap apps config reset <slot>
rhap apps config design
rhap apps config preview --print
# Custom apps (HTML/JS)
rhap apps custom pack [dir] --out <file>
rhap apps custom push [dir] --expected-draft --json
rhap apps custom status [dir] --json
rhap apps custom init
rhap apps custom create

Alias: ap

source

Show, pull, or push app Rhyme source.

Terminal window
rhap source show [file.rh|space/app] # Show with line numbers
rhap source pull [space/app]
--output/-o <file> --force
rhap source push [space/app]
--source <file> --force
rhap source bulk

Alias: sr

dev

Edit a Rhyme app with a hot-reloading local preview. Ctrl+S formats/saves/recompiles. Ctrl+Q stops the session.

Terminal window
rhap dev [file.rh] # Default: app.rh
rhap dev app.rh --target renner/critiques --as glenn
--release/-r <stable|preview|edge|latest|version>
--port <int> # Default 7200 (0 = free port)
--as <member> # Preview as a specific member
--open # Open browser (default true)

edit

Edit the target app’s cloud draft or a local text file in a terminal editor. Ctrl+S saves, Ctrl+Q cancels.

Terminal window
rhap edit # Edit current target app cloud draft
rhap edit app.rh # Edit a local Rhyme file
rhap edit /peerapp2 # Edit a peer app in the same space
rhap edit notes.md # Edit any local UTF-8 text file

format

Format a local Rhyme source file in place.

Terminal window
rhap format [file.rh] # Default: app.rh

Alias: fmt

preview

Compile and preview a Rhyme app locally using the RHCC-WASI toolchain.

Terminal window
rhap preview [file.rh]
--release/-r <version>
--port <int> # Default 7200
--open # Default true
--watch # Default true

appforms

Forms, submissions, and follow-ups for the active app. (Alias: forms)

Terminal window
rhap appforms list --json
rhap appforms submissions list --full --limit <n> --json
rhap appforms follow-up fields list --include-archived --json
rhap appforms follow-up fields create [name]
--type --choices --starting-value --visible-to-submitter --no-input
rhap appforms follow-up fields update [name]
--name --choices --starting-value --clear-starting-value
--visible-to-submitter --no-input
rhap appforms follow-up fields archive [name] --yes/-y --no-input
rhap appforms follow-up fields show <submission>
rhap appforms follow-up set [submission] <field> <value>
rhap appforms follow-up clear [submission] <field>
rhap appforms follow-up show <submission>

binder

Manage the app Binder — a convention-based Google Sheet (tabs: _props, user tabs, list tabs, _rh).

Terminal window
rhap binder status # Check binder against convention
rhap binder init
--account <email> --table <name> --no-members --dry-run
rhap binder show # Show every tab and column
rhap binder read
--as <username> --tab <name> --fresh --my-submissions --shared
rhap binder open --print
rhap binder sync # Put all space members into user tabs
rhap binder repair # Rename tabs back to required names
rhap binder reload # Force immediate data refresh
rhap binder unlink --yes
rhap binder sync-form <form>
--tab <name> --dry-run --no-wait

setup / reset

Run an app into its starting state using [rhap-setup] steps. reset runs [rhap-reset] then [rhap-setup].

Terminal window
rhap setup [space/app]
--dry-run --file <path>
--release/-r <version>
--json --yes/-y --force --status
rhap reset [space/app]
--no-setup --yes/-y

Advanced

connect

Inspect Google Sheets and Stripe connections. Read-only.

Terminal window
rhap connect sheets --json
rhap connect sheets open --print
rhap connect stripe --json
rhap connect stripe open --print

backup

Save a local space database backup. Requires space owner. Excludes secrets, media, and account data.

Terminal window
rhap backup
rhap backup --space glenn
rhap backup --stage --space glenn --output ./backups
--output <dir> # Destination directory (default: .)

diag

Advanced platform diagnostics. Read-only except diag binder which writes mock data.

Terminal window
rhap diag space kv [space] # Show APPSKV record
rhap diag space store [space] # Inspect SQLite store
rhap diag space files [space]
rhap diag app files [space/app] [prefix] # List app files in Tigris bucket
rhap diag binder submit <name> <fields> # File mock form submissions
--as <username> --count <n> # Default 1, max 50
--no-wait --json

Command abbreviations

The rh binary is a pre-installed alias for rhap. Most commands also accept short abbreviations:

AbbreviationFull command
rh anannounce
rh apapps
rh auaudio
rh blblog
rh didiscussions
rh evevents
rh fifiles
rh foform
rh grgroups
rh imimages
rh ininbox
rh lilinks
rh lolocation
rh phphotos
rh rerewards
rh scschedules
rh sesecret
rh shshop
rh so / rh srsource
rh spspace
rh t / rh tatask
rh tgtags
rh ususers
rh vivideo
rh fmtformat
rh rmdelete
rh al / rh linklinks
rh broadcastannounce
rh membersusers
rh formsappforms

Full abbreviation definitions live in internal/commandaliases/vocabulary.json in the source repo.