/revyl-cli:revyl-build-configfrom Revyl CLI
Writes or fixes build recipes in a Revyl project's .revyl/config.yaml, including build profiles per platform, simulator/emulator artifacts, framework recipes for iOS, Android, Expo, React Native, Flutter, and web, secrets, and caches.
Ships in Revyl CLI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Set up or repair how Revyl builds an app: the build section of the
.revyl/config.yaml in the app's directory. This skill edits and validates
that file. It never builds; revyl-build does, after the user agrees to spend
build minutes.
Run every Revyl command through this plugin's pinned launcher, never revyl
from PATH or another installed CLI. Resolve it from this skill's own
directory:
${CLAUDE_SKILL_DIR}.SKILL.md; use its absolute parent
directory. If the Claude Code value above isn't an absolute path, use this
rule instead.The launcher is ../../scripts/launch-revyl from that directory on POSIX and
../../scripts/launch-revyl.cmd on Windows. Shell variables don't persist
between tool calls in either host, so write the resolved absolute path into
each command; below, "$LAUNCHER" stands for it. Run each command from the app
directory (the one holding .revyl/config.yaml), never from the plugin's own
folder: the CLI reads the current directory's Git branch, commit, and config,
so a command run inside the plugin resolves the wrong build or project. The
launcher detects the host itself; never set REVYL_PLUGIN_HOST. If a command
needs sign-in, run "$LAUNCHER" auth login and hand the user its approval
link. Never print or ask for credentials.
Never open a browser or claim one opened. Give each sign-in, viewer, or report URL to the user as soon as you have it:
https:// URL on its own line.[Open the Revyl device](URL).Editing .revyl/config.yaml in the repository and validating it are free and
local. Show the diff and let the user commit it. Two steps reach Revyl and
need the user's yes first:
"$LAUNCHER" app create --name <name> --platform <ios|android|web> --json
creates a Revyl app. Prefer an existing one from
"$LAUNCHER" app list --platform <platform> --json."$LAUNCHER" config push publishes the whole project configuration. When
GitHub manages it from the default branch ("$LAUNCHER" github status --json
shows project.authority == "git_default_branch"), the change takes effect
when the pull request merges, and config push refuses. Never add --force
unless the user asks.Build secrets are values only the user enters: ask them to run
revyl build secret set NAME themselves (it prompts without echoing), and
reference the name in the recipe. Never read, print, or write a secret value.
Work in the directory that owns .revyl/config.yaml, never a monorepo root
that only contains it.
"$LAUNCHER" init --non-interactive detects the build
system and writes the file without the setup wizard. Read what it wrote."$LAUNCHER" init --detect re-runs
detection; use it when the project's build system changed, and review the
diff before keeping it."$LAUNCHER" config validate --json after every edit. If it reports the
legacy build.platforms format, "$LAUNCHER" config migrate --check shows
the conversion; --write applies it (with a backup) once the user agrees.
Commit the converted config, not the backup.build:
secrets: [NPM_TOKEN]
profiles:
preview:
ios:
app_id: <ios-app-uuid>
setup_commands:
- npm ci
- name: Install pods
run: cd ios && pod install
build_commands:
- xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp -configuration Release -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath ios/build
output_path: ios/build/Build/Products/Release-iphonesimulator/MyApp.app
timeout_seconds: 3600
env:
APP_ENV: staging
android:
app_id: <android-app-uuid>
setup_commands: [npm ci]
build_commands: [cd android && ./gradlew assembleRelease]
output_path: android/app/build/outputs/apk/release/app-release.apk
ios, android, web.
No profile is active by default, so every build names one.app_id is the UUID of a Revyl app on the same platform.setup_commands run in order before build_commands, from the project
root. Each is a shell string or a name and run pair.output_path is the artifact the build uploads. iOS needs a simulator
.app (or a zip or tarball of one), never a device .ipa. Android needs an
installable .apk, never an .aab; if it has native libraries, include
x86_64 or arm64-v8a. Web needs a directory.env holds non-secret values only. secrets (under build or a recipe)
names organization build secrets.timeout_seconds and image apply to cloud builds only. caches takes a
key and paths to keep between cloud builds.preview for standalone builds that pull-request
builds and tests use, development for dev-client builds that revyl dev
hot-reloads.Cloud builds upload tracked files, uncommitted edits included, and untracked
files Git doesn't ignore. .gitignore doesn't exclude a file already tracked,
so a tracked secret file ships with every build: point that out if you see one.
Read the one reference for the app's framework:
| Framework | Reference |
|---|---|
| Native iOS (Xcode) | references/ios.md |
| Native Android | references/android.md |
| Expo | references/expo.md |
| React Native (bare) | references/react-native.md |
| Flutter | references/flutter.md |
| Web | references/web.md |
The recipe builds for a simulator or emulator; the device model and OS
version are picked when a session starts, not in the recipe.
"$LAUNCHER" device targets --platform <ios|android> --json lists the models
and OS versions available. Sessions take --device-model and --os-version
(device start and test run), so a recipe needs no per-device variant.
Install credentials before the step that downloads them. For private Git
repositories over HTTPS, the user stores a token (GITHUB_TOKEN or
GITLAB_TOKEN) as a build secret, and a setup command appends it to
$HOME/.netrc without echoing it:
secrets: [GITHUB_TOKEN]
setup_commands:
- name: Configure GitHub credentials
run: |
set -eu
set +x
umask 077
touch "$HOME/.netrc"
chmod 600 "$HOME/.netrc"
printf '\nmachine github.com\nlogin x-access-token\npassword %s\n' "$GITHUB_TOKEN" >> "$HOME/.netrc"
For private npm packages, add //registry.npmjs.org/:_authToken=${NPM_TOKEN}
to the project's .npmrc (the variable reference, never the token) and list
NPM_TOKEN under secrets. Swift packages from private repositories resolve
through system Git with xcodebuild -resolvePackageDependencies -scmProvider system.
Run "$LAUNCHER" config validate --json and fix every error it names. Then
offer, without starting either: revyl-build to build it on a Revyl runner
(build minutes), or "$LAUNCHER" build --build-profile <profile> --platform <platform> --local
to build with this machine's toolchain and upload the result.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub revylai/revyl-cli --plugin revyl-cli17 skills in this plugin
/revyl-buildBuild this workspace's app on a Revyl cloud runner, or upload an artifact already built, and return the Revyl build ID, after one confirmation that it uses the organization's build minutes./revyl-build-ci-uploadAdd a Revyl upload step to the CI job that already builds the app (GitHub Actions, GitLab CI, Buildkite, or another runner) so each commit and pull request has a Revyl build tied to its exact commit, without building twice. Also covers uploading EAS or other hosted artifacts by URL and registering web preview deployments. Use when wiring CI builds into Revyl./revyl-ci-syncKeep a repo's Revyl remote build mirrored with its CI pipeline - update both in the same PR and debug drift between them./revyl-cli-auth-bypassSet up test-only auth bypass for Revyl runs across Web, Expo, React Native, native iOS, native Android, and Flutter apps./revyl-deviceStart one Revyl cloud device (or browser) on a chosen app build and hand back the viewer link, after one confirmation that it uses the organization's device time./revyl-dev-loopRun, preview, debug, and verify mobile app changes on a real Revyl cloud device with the bundled, pinned Revyl CLI. Use after changing iOS, Android, Expo, React Native, Flutter, or other mobile app code and before reporting that work done, to offer an on-device check instead of leaving it to the pull request's proof of changes; also use when asked to run, preview, or screenshot the app on a device.Other plugins' skills for the same job