Skip to content

docs: add Quick start and Local development workflow guides - #39

Open
patrikbraborec wants to merge 12 commits into
apify:masterfrom
patrikbraborec:docs/quick-start-and-local-development
Open

docs: add Quick start and Local development workflow guides#39
patrikbraborec wants to merge 12 commits into
apify:masterfrom
patrikbraborec:docs/quick-start-and-local-development

Conversation

@patrikbraborec

@patrikbraborec patrikbraborec commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Adds a docs/ folder with two guided pages, modelled on the shape of the Supabase local development guide. No code or behaviour changes.

  • docs/quick-start.md - prerequisites, starting the runtime (Apify CLI's opt-in apify runtime channel, or plain Docker), pointing the CLI at it, first push and run, inspecting, stop/reset. Ends with a clearly marked proposal for an apify local start|stop|status|env|reset|logs command group as the ideal CLI-only experience, and explains how it relates to the shipped apify runtime commands and the spec on the claude/actor-runtime-cli-distribution-mo0u94 branch.
  • docs/local-development.md - the full dev loop (push/build/run/inspect), measured build times, iterating without rebuilds via the dev folder, IDE debugging, migration/reboot/abort rehearsal, multiple users, platform fallback, going back to the platform, limitations, and an ideal-state list of DX improvements (auto dev-folder registration, apify call --dev, runtime-side network fix, housekeeping).
  • README and CLAUDE.md gain pointers to the new docs; the existing README content is untouched.

patrikbraborec and others added 12 commits September 8, 2026 11:10
Adds a docs/ folder with two guided pages, modelled on the shape of the Supabase
local-development guide:

- docs/quick-start.md: prerequisites, starting the runtime with the Apify CLI
  (opt-in 'runtime' channel) or plain Docker, pointing the CLI at it, first push
  and run, inspecting, stop/reset, and a clearly marked proposal for an
  'apify local' command group as the ideal CLI-only experience.
- docs/local-development.md: the full dev loop (push/build/run/inspect), iterating
  without rebuilds via the dev folder, IDE debugging, migration/reboot/abort
  rehearsal, multiple users, platform fallback, limitations, and an ideal-state
  list of DX improvements.

Also documents the Docker Desktop port-forwarding issue observed on macOS
(published ports hang once the runtime joins the apify-local network) with the
single-network workaround. README and CLAUDE.md gain pointers to the new docs.
No code or behaviour changes.
Short 'Learn how to' intros, a 'Before you start' list, numbered steps in the
quick start, imperative sentences, tables for commands and paths, bold-titled
notes, and 'Next steps'. Same content and scope; proposals stay clearly marked.
- 'Check that it is running' and 'Connect Apify CLI' lead with one proposed
  apify local command each (status, connect/disconnect), clearly marked as
  proposed, with the working alternative right below.
- Proposal table gains connect/disconnect in place of env.
- Step 3 targets the reader's own Actor; samples move to a note.
- apify local start is documented as run from the Actor directory, with data
  kept in the Actor's own data folder.
- The 'Debug with your IDE' section moves into the quick start as step 6.
- docs/local-development.md is removed for now; README and CLAUDE.md pointers
  updated.
Co-authored-by: Cursor <cursoragent@cursor.com>

@Pijukatel Pijukatel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already implemented some methods in the CLI in advance and named them differently. I will use naming suggested here and once the CLI is updated I will post review here with whatever minor update is needed

Comment thread docs/quick-start.md
To send every Apify CLI command to the local runtime instead of the Apify platform, run:

```
apify local connect

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is, in essence, very global. It makes sense for parallel agents, for example, to run separate instances of the local runtime. We should describe how to do that.

I imagine setting APIFY_CLIENT_BASE_URL and APIFY_CONSOLE_URL in a per-worktree .env file or via mise would work just fine...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea that it would work out of the box in Actor project. Anyway, your point is good. Maybe it can be both the .env, and also maybe some parameters like apify local connect --client-base-url=<...> ...

Comment thread docs/quick-start.md
3. Run the Actor:

```
apify call

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does apify run fit into this? Can we delete it to prevent confusion?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I think that we still need apify run, if you want to run Actor without local runtime.

Just for the context, run is the second most used command. If we decide to change it/delete it, we should definitely think twice to do it correctly. :)

image

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That statistic can be misleading, and if we can easily replace run with something that uses the local runtime instead, it will benefit pretty much everyone.

@B4nan
B4nan requested a review from barjin September 10, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants