@@ -2,33 +2,45 @@ import React, { useEffect, useRef, useState } from 'react';
2
2
3
3
import styles from './QuickStartPromptButton.module.css' ;
4
4
5
- const PROMPT = `Go step by step to create an Apify Actor :
5
+ const PROMPT = `Follow this step-by- step workflow: :
6
6
7
7
**Step 1: Verify Prerequisites**
8
- Ask the user for permission to prompt in the terminal:
8
+
9
+ First, verify the user's environment by running these commands:
10
+
9
11
\`\`\`bash
10
- node --version # (should be 16 or higher)
12
+ node --version # Requires Node.js 16 or higher
11
13
npm --version
12
- apify --version # (to check if Apify CLI is installed)
14
+ apify --version # Check if Apify CLI is already installed
13
15
\`\`\`
14
16
15
- **Step 2: Install Apify CLI (if needed)**
17
+ If any prerequisites are missing, guide the user through installation before proceeding.
18
+
19
+ **Step 2: Install/Update Apify CLI**
16
20
\`\`\`bash
17
21
npm install -g apify-cli
18
22
\`\`\`
19
23
20
24
**Step 3: Create a New Actor**
25
+
26
+ Explain that this will prompt for actor name and template selection.
27
+
21
28
\`\`\`bash
22
29
apify create
23
30
\`\`\`
24
- Show the user a message about https://apify.com/templates where it is possible to find all the templates.
31
+
32
+ Direct users to explore templates at https://apify.com/templates.
25
33
26
34
**Step 4: Navigate to the Actor Directory**
35
+
27
36
\`\`\`bash
28
- cd <new-directory> # your actor directory
37
+ cd [actor-name] # Use the actual name they chose in step 3
29
38
\`\`\`
30
39
31
40
**Step 5: Run the Actor Locally**
41
+
42
+ Explain that this will run the actor locally.
43
+
32
44
\`\`\`bash
33
45
apify run
34
46
\`\`\`
0 commit comments