Deploy with the official Apify CLI
Point apify-cli at Bytewells with environment variables, log in with your API key, then push and call Actors.
Use the official Apify CLI (apify-cli) against Bytewells the same way you would against Apify, by redirecting its API client. You do not need an Apify account token or Apify OAuth scopes for push.
Before you start
- A Bytewells account with publisher access. Consumer-only accounts get 403 with error type
publisher-requiredand message:Publishing and pushing Actors requires a publisher account. Request an invite to become a publisher. - An API key from Settings → API (starts with
cp_). Create one if you do not have it yet. - Node.js 20+ and a local Actor project (for example from
npx apify-cli create my-actor).
Token: apify login stores credentials under ~/.apify. Paste your Bytewells API key when the CLI asks for a token. Apify Console tokens and scope checkboxes are not used on this path.
Your source on Bytewells: Push does not use an Apify token, so code you did not push is not readable through Apify. Uploaded source is stored only to build the image, in a private object prefix (sources/<actorId>/) in Bytewells storage. Only your account can trigger reads of that archive through the build pipeline. The Store shows README and input schema for published Actors; other customers cannot download your source or image. When you delete an Actor, Bytewells deletes that source prefix. The hosted builder reads the archive with infrastructure credentials because the build requires it. There is no product screen for anyone else to download your tarball.
Single-login caveat: The Apify CLI keeps one active login in ~/.apify. After you apify login against Bytewells, log in again at console.apify.com before you push to Apify, or use a separate OS user or shell profile for each platform.
There is no bw apify wrapper yet. To avoid the shared ~/.apify file, use bw push instead of the Apify CLI, or keep separate profiles as above.
Point the CLI at Bytewells
The Apify CLI reads APIFY_CLIENT_BASE_URL (API) and APIFY_CONSOLE_URL (console links in CLI output). Set both for your environment:
npm install -g apify-cli
export APIFY_CLIENT_BASE_URL=https://[REDACTED].com/api
export APIFY_CONSOLE_URL=https://[REDACTED].com/dashboard
apify login -t <your Bytewells API key>APIFY_CLIENT_BASE_URL should be the API origin without /v2; the client appends /v2 itself. APIFY_CONSOLE_URL should point at the Bytewells dashboard so build and run links open in your project, not on Apify Console.
From your Actor directory:
apify push
apify callapify push upserts the Actor, writes a version, starts a hosted build, and waits for it when the CLI requests waitForFinish. apify call starts a run through the same API surface as on Apify (your Bytewells token and Actor id).
How source uploads work
The CLI normally sends versions as SOURCE_FILES: JSON with up to 2,000 file entries (names only in API responses; bytes are not echoed back). The API packs them into a gzip tar under sources/<actorId>/versions/<version>.tgz.
For large projects the CLI may instead upload a zip to a key-value record on the instance, then create a TARBALL version whose tarballUrl points at that record. Bytewells copies the object you own into sources/<actorId>/versions/<version>.zip or .tgz. External URLs are rejected; the record must live on this Bytewells API host.
| Limit | Value |
|---|---|
| Max unpacked source (SOURCE_FILES bodies, or TARBALL copy) | 50 MB |
| Max files per SOURCE_FILES version | 2,000 |
| Max env vars per version | 100 (values up to 10,000 characters) |
Version numbers must match Apify’s pattern: MAJOR.MINOR with up to four digits each side (for example 0.1, 12.34).
Build and log behavior
POST /v2/acts/:actorId/builds accepts the same query flags Apify sends:
| Query flag | On Bytewells |
|---|---|
version, tag | Select the version to build |
waitForFinish=<seconds> | Poll until the build finishes or the window expires |
useCache, betaPackages | Accepted for compatibility; ignored (no build cache reuse, no beta base-image channel) |
Build progress is available as:
GET /v2/acts/:actorId/builds/:buildId/logs(JSON line objects), andGET /v2/logs/:buildId(plain text, same shape as Apify — whatapify pushuses while waiting).
Hosted builds unpack your archive, scan for unsupported Apify capabilities (see below), then build the Docker image.
What is not supported
| Topic | Notes |
|---|---|
| Git / Gist source on push | Versions may store GIT_REPO or GITHUB_GIST metadata, but the builder only runs SOURCE_FILES and TARBALL archives. apify push always uses file or tarball upload, not remote Git checkout. |
POST …/builds/source alone | Optional dashboard/tar upload path; the Apify CLI normally uses version endpoints instead. |
| Standby mode, web server Actors | Rejected at build scan (usesStandbyMode, webServerSchema, webServerMcpPath). |
| Actor-to-actor calls | Actor.call / Actor.start in source are rejected at build scan; run tokens cannot start other Actors. See Apify compatibility. |
Apify Tasks (Actor.callTask) | Not hosted on Bytewells. |
| Importing from Apify on this page | Read-only import uses Apify OAuth or bw import apify — see Import from Apify. |
FAQ: Apify token scopes
On Apify.com, a scoped personal token cannot create or modify Actors (Apify API integrations); pushing new or updated Actors there requires an unscoped token. Bytewells does not copy that rule. Your Bytewells API key is enough for apify login -t and apify push. You never create a token on console.apify.com for this workflow.
Alternative: bw CLI
If you prefer not to share ~/.apify with Apify:
npm install -g @thoughtpivot/[REDACTED]-cli
bw login --url https://[REDACTED].com/api
bw push
bw call <actor>See the CLI reference.