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
# 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# Linuxcurl -L https://release.rhapp.cc/rhap-cli/stable/rhap-linux-amd64 -o rhap
chmod +x rhapsudo mv rhap /usr/local/bin/sudo ln -s /usr/local/bin/rhap /usr/local/bin/rhAlways 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.
| Flag | Short forms | Description |
|---|---|---|
--env <name> | Target a named environment | |
--prod | Use the production environment | |
--stage | Use the staging environment | |
--dev | Use the development environment | |
--space <name> | -s | Override the active space |
--app <name> | -a | Override the active app |
--target <space/app> | Set both space and app at once | |
--version | Print the CLI version and exit |
Getting started
code
Open a space-focused Rhappsody authoring session. An app is optional.
rhap code # Start a new sessionrhap code --continue # Resume the latest sessionrhap code --resume <id> # Resume a session by local idrhap code --debugnew
Create a new app or space.
rhap new app [name] # Create an app with a starter cloud draft --no-input --json --userhap new space [name] # Create a space --no-input --json --uselist
List your spaces or the apps in the active space.
rhap list # List spacesrhap list apps # List apps in the active spacestatus
Show CLI, working-context, and local-release status.
rhap statustarget
Show or set what you are working on. A target persists across commands.
rhap target # Show current targetrhap target <space/app> # Set targetrhap target --clear # Clear the saved targetrhap target --view # Open the target in the browserAliases: use
go
Open a Rhappsody page in your browser.
rhap go # Open your account pagerhap go <space> # Open a spacerhap go <space/app> # Open an app --print # Print the URL instead of opening --space <name>log
Show recent account, space, or app activity.
rhap log # Recent account activityrhap log <space> # Space activityrhap log <space/app> # App activity --account # Account-level events only --security # Security events only --since <period> # e.g. 6h, 7d --limit <n> # 1–200 --jsonupdate
Update rhap to the latest release.
rhap update # Update to latest stablerhap update --release <name> # stable / preview / edge / versionrhap update --check # Check without updatingrhap update --rollback # Roll back to the previous versionrhap update --yesdelete
Permanently delete an app or space.
rhap delete app [space/app] # Delete an app --yes/-y --no-input --jsonrhap delete app acme/portalrhap delete space [space] # Delete a space and all its apps --yes/-y --no-input --json --no-waitAlias: rm
Account
login / logout
rhap login # Authenticaterhap logout # Log out and revoke credentialsaccount
Account information and settings.
rhap account # Show account inforhap 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 --jsonrhap account default-space <space> # Set the default space on sign-inAlias: whoami (for account status)
usage
Show account usage and quotas.
rhap usageSpace commands
space
Manage spaces and their settings.
rhap space list # List your spacesrhap space settings config # Show space settings --jsonrhap space settings identity # Change identity settings --name --description --kind <personal|business|community> --brand-color --clear-name --clear-description --clear-brand-colorrhap space admins list # List delegated admins --jsonrhap space admins add <account> # Add a delegated adminrhap space admins remove <account>secret
Manage space secrets. Saved values are never revealed.
rhap secret list # List secrets (metadata only)rhap secret show <name> # Show metadata and app accessrhap secret apps # List apps available for access restrictionrhap secret history # Show secret change historyrhap secret create <name> # Create a secret (prompts for value)rhap secret replace <name> # Replace a secret's valuerhap secret update <name> # Change description or app accessrhap secret enable <name>rhap secret disable <name>rhap secret delete <name>data
Collections, records, and Google Sheets.
rhap data collections list # List collections --jsonrhap data collections show [name] --no-input --jsonrhap data collections create <name>rhap data collections delete [name] --yes/-y --no-inputrhap data records list --collection/-c <name> --page --limit --search --jsonrhap data records show [id] --collection/-c <name> --jsonrhap 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-inputrhap data gsheet # Inspect Google Sheets connectionsevents
Manage events in the active space.
rhap events listrhap events create [/event:<slug>] --no-inputrhap events update [slug|id-prefix] --no-inputrhap events delete <slug|id>rhap events rsvp # Manage RSVPsrhap events import <file.csv|json> --source <name> # Required stable source keyfiles
Manage durable and temporary files in the active space.
rhap files list --temporary --all --jsonrhap files get <tag> <destination> # Download via short-lived read grant --force/-frhap files save <local-file> # Upload a file --tag <name>rhap files access <tag> # Replace audiencerhap files delete <tag> --temporary --yes/-yimages
Manage images in the active space.
rhap images list --json --storage --live --pinnedrhap images upload <file-or-url> --tag <name> --aspect-ratio --alt --pinned --json --yes/-y --no-inputrhap images view <tag>rhap images pin <tag> # Freeze the current rendition permanentlyrhap images delete [tag] --yes/-y --pinned --no-inputlinks
Manage links in the active space.
rhap links list --tag <string> --jsonrhap links create --no-input --tags <list>rhap links update [id-prefix] --no-inputrhap 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.
rhap location list --status <all|draft|published|archived> --jsonrhap location show [id|slug] --jsonrhap location create # Created as a draft --no-input --jsonrhap location update [id|slug] --no-input --jsonrhap 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 locationrhap location delete [id|slug] --yes --if-existsrhap location import <file.csv|json>Aliases: lo, locations
rewards
Open Rewards management for the active space in the browser. Requires an activated Rewards surface.
rhap rewards --printAlias: re
schedules
Manage named recurring schedules.
rhap schedules list --limit <n> --after <cursor> --verboserhap schedules show [schedule-id]rhap schedules createrhap schedules update [schedule-id] --revision <n> --yes/-y --clear <fields>rhap schedules publish [schedule-id]rhap schedules archive [schedule-id]rhap schedules entries listrhap schedules entries addrhap schedules entries importrhap schedules audience # Show or replace schedule audiencerhap schedules import <file.csv|json>rhap schedules occurrences --from <YYYY-MM-DD> --to <YYYY-MM-DD> --include-cancelledAliases: sc, schedule
task
Manage scheduled tasks in the active space.
rhap task listrhap 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.).
rhap tags [kind[,kind...]] [filter] # Filter by kind: images, events, users, etc.rhap tags copy <tag> # Copy a reference to the clipboard --json --interactive/-iAliases: tg, tag
audio
Audio recordings and collections in the active space.
rhap audio list # List recordings (&aud_) and collections (&acol_) --jsonrhap audio access <&aud_…|&acol_…> # Replace audienceAlias: au
video
Videos in the active space.
rhap video list # List videos (&vid_ ids) --jsonrhap video access <&vid_…> # Replace audienceAlias: vi
faq
The space FAQ.
rhap faq list # List sections (&fsec_) and questions (&faq_) --jsonasks
Configure help-routing: point members to the right place when they ask for help.
rhap asks list # List asks in display order --jsonrhap asks add [handle] [intent] --label <text> --to <destination> --audience <member> --autorhap asks edit [handle|id] --label --intent --to --audience --auto --handlerhap asks remove [handle|id] --yes --if-existsrhap asks default # Set fallback when no ask matches --label --to --clearrhap asks test [message] # Preview which asks would match --jsonCommunicate
announce
Send a broadcast announcement to space members.
rhap announce list --expired --jsonrhap 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.
rhap inbox app list # List app inbox messagesrhap inbox app read <id>rhap inbox app createrhap inbox app delete <id>rhap inbox space listrhap inbox space read <id>rhap inbox space createrhap inbox space delete <id>Alias: in
form
Manage space-level forms and submissions.
rhap form list # List formsrhap form show <handle> # Show form and its collecting appsrhap form submissions listrhap form questions # Manage form questionsrhap form access # Set form audiencerhap form export # Export submissionsrhap form followup # Follow-up fieldsrhap form managerhap form tagsAlias: fo
fill
Manage draft fill values for the active app. Fill values are substituted into app templates at render time.
rhap fill list # List fills from the current app draftrhap fill set <key> [value] # Set a draft fill value (or pipe via stdin)rhap fill unset <key> # Remove a draft fill overrideCommunity
blog
Manage posts in the space Blog.
rhap blog list --status <all|draft|published|archived> --query/-q <string> --page --limit --jsonrhap blog show [id|slug] --json --no-inputrhap blog create --no-input --jsonrhap blog update [id|slug] --no-input --jsonrhap blog publish [id|slug]rhap blog unpublish [id|slug]rhap blog archive [id|slug]rhap blog access [id|slug] # Replace audiencerhap blog delete [id|slug] --yes/-y --no-input --json --if-existsrhap blog categories listrhap blog categories create --no-input --jsonrhap 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.
rhap discussions list --app <id> --jsonrhap discussions create <handle> --name <text> --description --app <id> --dormantrhap discussions comments [board] --json --repliesrhap discussions pin <comment> --boardrhap discussions lock <comment> --boardrhap discussions remove <comment> --board --yes/-y --no-inputrhap discussions ban <user> --board --reason --yes/-y --no-inputrhap discussions unban <user> --boardrhap discussions bans [board] --jsonrhap discussions export [board] --to <path>rhap discussions clear [board] --save-to <path> --no-save --yes/-y --no-inputAliases: di, discussion
groups
Manage user groups in the active space.
rhap groups list [slug|id] --status <active|archived> --jsonrhap groups create --no-inputrhap groups update [slug|id] --no-inputrhap groups delete [slug|id] --yes/-y --no-inputrhap groups edit <group> add <user> # Add a user to a grouprhap groups edit <group> remove <user> # Remove a user from a groupAliases: gr, group
photos
Moderate member-submitted photos.
rhap photos galleries # List photo galleries --jsonrhap photos list --status <pending|approved|hidden|rejected> --json --urlsrhap photos open <tag>rhap photos approve <tag>rhap photos hide <tag>rhap photos reject <tag>rhap photos delete <tag> --yes/-yrhap photos access [gallery] --json --show --public --role --group --userAliases: ph, photo
users
Manage space members.
rhap users list --limit --offset --search --jsonrhap users info [username]rhap users create [username] --no-inputrhap users update [username|id] --no-inputrhap users reset-passwordrhap users passwordrhap users delete [username|id] --yes/-y --no-inputrhap users signup enable / disablerhap users signup config # Show or change signup restrictionsrhap users signup codes list --allrhap users signup codes createrhap users signup codes revoke <id>rhap users invite review <username>... --out <plan.json>rhap users invite send <plan.json> --jsonrhap users import <file.csv|json> --pending --allow-role-changes --credentials-out <file> --dry-runAliases: us, user, members
Shop
products
Manage products in the active space.
rhap products list --archived --jsonrhap products show [product] --archived --jsonrhap products create [name] --no-inputrhap products update [product] --no-inputrhap products publish [product]rhap products unpublish [product]rhap products archive [product]rhap products cover [product] # Manage cover imagerhap products import <file.csv|json>shop
Check shop readiness and payment connection.
rhap shop status --jsonrhap shop payments status --jsonrhap shop orders list --view <queue|review|collected> --after-id <id> --jsonrhap shop orders show <order> --jsonApp commands
apps
Publish, inspect, and manage apps.
rhap apps list --jsonrhap apps open [space/app] --printrhap apps publish [space/app] --jsonrhap apps history [space/app] --limit <n> --wide --jsonrhap apps publicationrhap apps restore <publication-id> --yes/-y --json
# Settingsrhap apps settings statusrhap apps settings visibility --role <int> --listedrhap apps settings availability --timezone --start --end --start-time --end-time --clear-start --clear-endrhap apps settings email --address --delivery --forward-to --reply-routing --send-from --auto-reply --auto-reply-message --clear-forwarding
# Configuration (designed apps)rhap apps config templatesrhap apps config slots --template --design --revisionrhap apps config get <slot>rhap apps config set <slot> <value>rhap apps config inherit <slot>rhap apps config reset <slot>rhap apps config designrhap apps config preview --print
# Custom apps (HTML/JS)rhap apps custom pack [dir] --out <file>rhap apps custom push [dir] --expected-draft --jsonrhap apps custom status [dir] --jsonrhap apps custom initrhap apps custom createAlias: ap
source
Show, pull, or push app Rhyme source.
rhap source show [file.rh|space/app] # Show with line numbersrhap source pull [space/app] --output/-o <file> --forcerhap source push [space/app] --source <file> --forcerhap source bulkAlias: sr
dev
Edit a Rhyme app with a hot-reloading local preview. Ctrl+S formats/saves/recompiles. Ctrl+Q stops the session.
rhap dev [file.rh] # Default: app.rhrhap 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.
rhap edit # Edit current target app cloud draftrhap edit app.rh # Edit a local Rhyme filerhap edit /peerapp2 # Edit a peer app in the same spacerhap edit notes.md # Edit any local UTF-8 text fileformat
Format a local Rhyme source file in place.
rhap format [file.rh] # Default: app.rhAlias: fmt
preview
Compile and preview a Rhyme app locally using the RHCC-WASI toolchain.
rhap preview [file.rh] --release/-r <version> --port <int> # Default 7200 --open # Default true --watch # Default trueappforms
Forms, submissions, and follow-ups for the active app. (Alias: forms)
rhap appforms list --jsonrhap appforms submissions list --full --limit <n> --jsonrhap appforms follow-up fields list --include-archived --jsonrhap appforms follow-up fields create [name] --type --choices --starting-value --visible-to-submitter --no-inputrhap appforms follow-up fields update [name] --name --choices --starting-value --clear-starting-value --visible-to-submitter --no-inputrhap appforms follow-up fields archive [name] --yes/-y --no-inputrhap 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).
rhap binder status # Check binder against conventionrhap binder init --account <email> --table <name> --no-members --dry-runrhap binder show # Show every tab and columnrhap binder read --as <username> --tab <name> --fresh --my-submissions --sharedrhap binder open --printrhap binder sync # Put all space members into user tabsrhap binder repair # Rename tabs back to required namesrhap binder reload # Force immediate data refreshrhap binder unlink --yesrhap binder sync-form <form> --tab <name> --dry-run --no-waitsetup / reset
Run an app into its starting state using [rhap-setup] steps. reset runs [rhap-reset] then [rhap-setup].
rhap setup [space/app] --dry-run --file <path> --release/-r <version> --json --yes/-y --force --status
rhap reset [space/app] --no-setup --yes/-yAdvanced
connect
Inspect Google Sheets and Stripe connections. Read-only.
rhap connect sheets --jsonrhap connect sheets open --printrhap connect stripe --jsonrhap connect stripe open --printbackup
Save a local space database backup. Requires space owner. Excludes secrets, media, and account data.
rhap backuprhap backup --space glennrhap backup --stage --space glenn --output ./backups --output <dir> # Destination directory (default: .)diag
Advanced platform diagnostics. Read-only except diag binder which writes mock data.
rhap diag space kv [space] # Show APPSKV recordrhap diag space store [space] # Inspect SQLite storerhap diag space files [space]rhap diag app files [space/app] [prefix] # List app files in Tigris bucketrhap diag binder submit <name> <fields> # File mock form submissions --as <username> --count <n> # Default 1, max 50 --no-wait --jsonCommand abbreviations
The rh binary is a pre-installed alias for rhap. Most commands also accept short abbreviations:
| Abbreviation | Full command |
|---|---|
rh an | announce |
rh ap | apps |
rh au | audio |
rh bl | blog |
rh di | discussions |
rh ev | events |
rh fi | files |
rh fo | form |
rh gr | groups |
rh im | images |
rh in | inbox |
rh li | links |
rh lo | location |
rh ph | photos |
rh re | rewards |
rh sc | schedules |
rh se | secret |
rh sh | shop |
rh so / rh sr | source |
rh sp | space |
rh t / rh ta | task |
rh tg | tags |
rh us | users |
rh vi | video |
rh fmt | format |
rh rm | delete |
rh al / rh link | links |
rh broadcast | announce |
rh members | users |
rh forms | appforms |
Full abbreviation definitions live in internal/commandaliases/vocabulary.json in the source repo.