olef cloud
Generated from Olef 3.0.2. All commands · Capabilities and requirements
These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the command catalog.
olef cloud
Section titled “olef cloud”Olef Cloud (invite-only alpha): sign in, link this project, and run its commands on a cloud emulator (cloud login, cloud link, cloud status)
olef cloud --helpOutput: json.
olef cloud login
Section titled “olef cloud login”Sign in to Olef Cloud: approve this machine at app.olef.dev/activate (opens the browser when there is one)
olef cloud login --helpOutput: json.
| Argument | Description |
|---|---|
--no-browser |
Print the sign-in URL and code instead of opening a browser |
--no-wait |
Return at once with the code and URL; run cloud login again to finish after the person approved |
--key-stdin |
Read an access key (or a refresh token) from stdin instead of signing in through a browser (CI, cloud agents) |
--api <URL> |
API base URL (development) |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud logout
Section titled “olef cloud logout”Sign out: revoke this machine’s token and forget it
olef cloud logout --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud whoami
Section titled “olef cloud whoami”The signed-in account: email, invite state, plan
olef cloud whoami --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud link
Section titled “olef cloud link”Link this project folder to a cloud workspace, after the person approves the upload (on this terminal, or in a browser)
olef cloud link --helpOutput: json.
| Argument | Description |
|---|---|
<path> |
The project root (default: the current folder) |
--name <NAME> |
Workspace name (default: the folder name) |
--no-browser |
Don’t open the approval page; print its URL |
--no-wait |
Return at once with the approval URL; run cloud link again to finish after the person approved |
--preview |
Only show what would upload; create nothing |
--dev-workspace <ID> |
Record a link to this workspace without the API (development) |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud unlink
Section titled “olef cloud unlink”Stop the cloud session and unlink a project: commands run locally again
olef cloud unlink --helpOutput: json.
| Argument | Description |
|---|---|
<path> |
The project root (default: the linked project around the current folder) |
--delete-workspace |
Also delete the cloud workspace (its disk; your files stay here) |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud on
Section titled “olef cloud on”Turn cloud mode on for this linked project
olef cloud on --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud off
Section titled “olef cloud off”Turn cloud mode off for this linked project (commands run locally; the link stays)
olef cloud off --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud status
Section titled “olef cloud status”Link, account, session and sync state for this project
olef cloud status --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud start
Section titled “olef cloud start”Start (or attach to) this project’s cloud session and wait until it is ready
olef cloud start --helpOutput: json.
| Argument | Description |
|---|---|
--no-wait |
Return while the session is still starting |
--wait-ms <WAIT_MS> |
How long to wait for the session Default: 600000. |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud stop
Section titled “olef cloud stop”Stop this project’s cloud session (the workspace disk is kept)
olef cloud stop --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud sync
Section titled “olef cloud sync”Sync the project to the workspace now and wait for it to apply
olef cloud sync --helpOutput: json.
| Argument | Description |
|---|---|
--dry-run |
Show what would upload, without connecting |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud run
Section titled “olef cloud run”Run any command in the cloud workspace (cloud run -- ./gradlew testDebugUnitTest), then bring its source changes back
olef cloud run --helpOutput: json.
| Argument | Description |
|---|---|
--no-sync-back |
Don’t apply the command’s source changes locally |
<command> |
Required. The command, after -- |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud run -- ./gradlew testDebugUnitTestolef cloud run --no-sync-back -- ./gradlew lintolef cloud usage
Section titled “olef cloud usage”Usage this period against the plan: included vs used per meter, overage, credits, spend cap, reset date
olef cloud usage --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud plan
Section titled “olef cloud plan”The plan: list plans, change plan, the payment portal, the spend cap, credits
olef cloud plan --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud plan change
Section titled “olef cloud plan change”Switch plan. Without a paid plan: opens Checkout. A higher plan (or monthly to yearly) applies now, prorated; a lower plan or free applies at the end of the period. The current plan again undoes a pending change
olef cloud plan change --helpOutput: json.
| Argument | Description |
|---|---|
<plan> |
Required. The plan id (olef cloud plan lists them): free, pro |
--yearly |
Bill yearly (two months free) Conflicts with: monthly. |
--monthly |
Bill monthly |
--no-browser |
Print the Checkout URL instead of opening a browser |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud plan change proolef cloud plan change pro --yearlyolef cloud plan change freeolef cloud plan portal
Section titled “olef cloud plan portal”Open the payment portal: card, invoices and receipts, cancel
olef cloud plan portal --helpOutput: json.
| Argument | Description |
|---|---|
--no-browser |
Print the portal URL instead of opening a browser |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud plan spend-cap
Section titled “olef cloud plan spend-cap”Cap this period’s bill (plan price plus overage); usage beyond the included amounts stops at the cap. default = the plan price + $50
olef cloud plan spend-cap --helpOutput: json.
| Argument | Description |
|---|---|
<usd> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud plan spend-cap 150olef cloud plan spend-cap defaultolef cloud plan credits
Section titled “olef cloud plan credits”Prepaid credits: the balance and its history. They pay for usage beyond a plan’s included amounts before the card
olef cloud plan credits --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud plan credits buy
Section titled “olef cloud plan credits buy”Buy a credit pack at Checkout: 50, 200 or 1000 (= $1,100 of credits)
olef cloud plan credits buy --helpOutput: json.
| Argument | Description |
|---|---|
<pack> |
Required. |
--no-browser |
Print the Checkout URL instead of opening a browser |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud plan credits buy 50olef cloud org
Section titled “olef cloud org”Orgs: the ones you’re in, which one cloud verbs use, team orgs, members and invite links
olef cloud org --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud org list
Section titled “olef cloud org list”The orgs you’re in, your role in each, and the one in use
olef cloud org list --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud org use
Section titled “olef cloud org use”Use an org for cloud verbs on this machine: new links, leases, cloud usage and cloud plan. --clear goes back to the account’s default org
olef cloud org use --helpOutput: json.
| Argument | Description |
|---|---|
<slug> |
The org’s slug (or id) |
--clear |
Conflicts with: slug. |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud org use acme-mobileolef cloud org use --clearolef cloud org create
Section titled “olef cloud org create”Create a team org; you’re its owner
olef cloud org create --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. The org’s name (“Acme Mobile”) |
--slug <SLUG> |
The slug for URLs and --org (default: from the name) |
--use |
Use it for cloud verbs right away |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud org create "Acme Mobile" --useolef cloud org invite
Section titled “olef cloud org invite”An invite link to the org in use, for you to share (it’s never emailed). Valid 14 days, for one person
olef cloud org invite --helpOutput: json.
| Argument | Description |
|---|---|
--email <EMAIL> |
Only this address can accept it |
--role <ROLE> |
developer (default), guest, billing or admin Default: developer. |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud org invite --email dev@example.comolef cloud org invite --role guestolef cloud org members
Section titled “olef cloud org members”The members of the org in use, and its pending invites
olef cloud org members --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud org leave
Section titled “olef cloud org leave”Leave the org in use: your sessions there stop; your workspaces stay with its admins
olef cloud org leave --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project
Section titled “olef cloud project”Projects in the org in use: shared repo, settings and secrets, who works on them, and your own workspace from one
olef cloud project --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project list
Section titled “olef cloud project list”The projects in the org in use and your role on each
olef cloud project list --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project show
Section titled “olef cloud project show”One project: its repo, shared settings, shared secret names, who works on it, and the workspaces you may see
olef cloud project show --helpOutput: json.
| Argument | Description |
|---|---|
<project> |
Required. The project’s id or slug |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project create
Section titled “olef cloud project create”Create a project in the org in use, from a repo the org’s GitHub installations reach (--repo-id), or with none (--name)
olef cloud project create --helpOutput: json.
| Argument | Description |
|---|---|
--repo-id <REPO_ID> |
GitHub’s id of the repository |
--name <NAME> |
Its name (default: the repository’s) |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud project create --repo-id 123456olef cloud project create --name "Notes app"olef cloud project workspace
Section titled “olef cloud project workspace”Make your own workspace from a project (a GitHub working copy of --branch, default the repo’s default branch)
olef cloud project workspace --helpOutput: json.
| Argument | Description |
|---|---|
<project> |
Required. |
--branch <BRANCH> |
|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project secret-set
Section titled “olef cloud project secret-set”Store a shared secret (project admins). Values are write-only
olef cloud project secret-set --helpOutput: json.
| Argument | Description |
|---|---|
<project> |
Required. |
<name> |
Required. Env name, like MAPS_API_KEY |
--scope <SCOPE> |
Who gets it Default: all. Values: all, ci, agents. |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef printf %s "$TOKEN" | olef cloud project secret-set notes MAPS_API_KEYolef cloud project secret-rm
Section titled “olef cloud project secret-rm”Delete a shared secret (project admins)
olef cloud project secret-rm --helpOutput: json.
| Argument | Description |
|---|---|
<project> |
Required. |
<name> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud project grant
Section titled “olef cloud project grant”Give a member (email) or a team (team:<slug>) a role on a project (project admins)
olef cloud project grant --helpOutput: json.
| Argument | Description |
|---|---|
<project> |
Required. |
<who> |
Required. dev@example.com or team:mobile |
--role <ROLE> |
Default: developer. Values: developer, viewer, admin. |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud project grant notes dev@example.com --role developerolef cloud project grant notes team:mobile --role viewerolef cloud share
Section titled “olef cloud share”Share the linked workspace with a teammate to pair or watch
olef cloud share --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud share list
Section titled “olef cloud share list”Who the linked workspace is shared with, any admin looking inside, and who is attached to its running session
olef cloud share list --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud share add
Section titled “olef cloud share add”Invite a member (email) or a team (team:<slug>) of the workspace’s org to pair (drive the viewer; a linked workspace’s files stay on this computer) or, with --watch, to watch
olef cloud share add --helpOutput: json.
| Argument | Description |
|---|---|
<who> |
Required. dev@example.com or team:mobile |
--watch |
View only |
--json |
Accepted for compatibility; output is always JSON. |
Examples from the CLI (replace sample packages, selectors, and paths with your own):
olef cloud share add dev@example.comolef cloud share add team:mobile --watcholef cloud share rm
Section titled “olef cloud share rm”Take someone’s access away
olef cloud share rm --helpOutput: json.
| Argument | Description |
|---|---|
<who> |
Required. dev@example.com or team:mobile |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud doctor
Section titled “olef cloud doctor”Check the cloud client: sign-in, link, daemon, session, sync
olef cloud doctor --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud secret
Section titled “olef cloud secret”Secrets: files the secret guard holds back from uploads, and the workspace’s stored secrets
olef cloud secret --helpOutput: json.
olef cloud secret allow
Section titled “olef cloud secret allow”Allow a file that looks like a secret to upload (an #allow-secret: line in the project’s .olefignore)
olef cloud secret allow --helpOutput: json.
| Argument | Description |
|---|---|
<path> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud secret list
Section titled “olef cloud secret list”Files held back, files allowed, and secrets stored in the workspace
olef cloud secret list --helpOutput: json.
| Argument | Description |
|---|---|
--json |
Accepted for compatibility; output is always JSON. |
olef cloud secret set
Section titled “olef cloud secret set”Store a secret in the cloud workspace: an env value for builds (--value-stdin), or a file that appears at --path in the cloud copy only (--file). Values are write-only
olef cloud secret set --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. Env name (MAPS_API_KEY) or file secret name |
--value-stdin |
Read the value from stdin Conflicts with: file. |
--file <FILE> |
A file whose contents become the secret (e.g. app/google-services.json) |
--path <PATH> |
Where the file appears in the source (default: the file’s path in the linked project) |
--json |
Accepted for compatibility; output is always JSON. |
olef cloud secret rm
Section titled “olef cloud secret rm”Delete a stored secret
olef cloud secret rm --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |