Skip to content

Commit b6c7d9d

Browse files
authored
Merge branch 'master' into chore/command-suggestions
2 parents b6c7b82 + 1e29e39 commit b6c7d9d

File tree

18 files changed

+1386
-1359
lines changed

18 files changed

+1386
-1359
lines changed

.bun-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.15
1+
1.2.16

.github/workflows/check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ubuntu-latest, windows-latest]
21+
os: [ubuntu-latest, windows-2025]
2222
node-version: [18, 20, 22, 24]
2323

2424
steps:
@@ -52,15 +52,15 @@ jobs:
5252
APIFY_CLI_DISABLE_TELEMETRY: 1
5353
run: yarn test
5454

55-
- name: Ensure the reference documentation builds
56-
run: yarn update-docs
55+
# - name: Ensure the reference documentation builds
56+
# run: yarn update-docs
5757

5858
test_python_support:
5959
name: Test Python template support
6060
strategy:
6161
fail-fast: false
6262
matrix:
63-
os: [ubuntu-latest, windows-latest]
63+
os: [ubuntu-latest, windows-2025]
6464
python-version: ["3.9", "3.10", "3.11", "3.12"]
6565
runs-on: ${{ matrix.os }}
6666

.github/workflows/cucumber.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-latest, windows-latest]
19+
os: [ubuntu-latest, windows-2025]
2020
# We only test LTS for now
21-
node-version: [20]
21+
node-version: [22]
2222

2323
runs-on: ${{ matrix.os }}
2424

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
5959

6060
- name: Commit the updated package(-lock).json
61-
uses: stefanzweifel/git-auto-commit-action@v5
61+
uses: stefanzweifel/git-auto-commit-action@v6
6262
with:
6363
commit_message: "chore: Automatic theme updating workflow [skip ci]"
6464
file_pattern: "website/package*.json website/yarn.lock"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
99
### 🚀 Features
1010

1111
- Upgrade command, install shell script ([#810](https://github.com/apify/apify-cli/pull/810)) ([51ef00a](https://github.com/apify/apify-cli/commit/51ef00ad32a6835c48781b99c6233113cf58d8a4)) by [@vladfrangu](https://github.com/vladfrangu)
12+
- [**breaking**] Make storage purging default, add `--resurrect` ([#729](https://github.com/apify/apify-cli/pull/729)) ([8dff93a](https://github.com/apify/apify-cli/commit/8dff93a2d769997a96d4a7750fb36c2770b9a61c)) by [@vladfrangu](https://github.com/vladfrangu), closes [#590](https://github.com/apify/apify-cli/issues/590)
1213

1314
### 🐛 Bug Fixes
1415

docs/reference.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,20 @@ DESCRIPTION
178178
NOTE: For Node.js Actors, customize behavior by modifying the 'start' script in package.json file.
179179

180180
USAGE
181-
$ apify run [--entrypoint <value>] [-i <value> | --input-file <value>] [-p] [--purge-dataset] [--purge-key-value-store] [--purge-queue]
181+
$ apify run [--entrypoint <value>] [-i <value> | --input-file <value>] [-p | --resurrect]
182182

183183
FLAGS
184-
--entrypoint=<value> Optional entrypoint for running with injected environment variables.
185-
For Python, it is the module name, or a path to a file.
186-
For node.js, it is the npm script name, or a path to a JS/MJS file. You can also pass in a directory name, provided that
187-
directory contains an "index.js" file.
188-
-i, --input=<value> Optional JSON input to be given to the Actor.
189-
--input-file=<value> Optional path to a file with JSON input to be given to the Actor. The file must be a valid JSON
190-
file. You can also specify `-` to read from standard input.
191-
-p, --purge Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store options.
192-
--purge-dataset Deletes the local directory containing the default dataset before the run starts.
193-
--purge-key-value-store Deletes all records from the default key-value store in the local directory before the run starts,
194-
except for the "INPUT" key.
195-
--purge-queue Deletes the local directory containing the default request queue before the run starts.
184+
--entrypoint=<value> Optional entrypoint for running with injected environment variables.
185+
For Python, it is the module name, or a path to a file.
186+
For Node.js, it is the npm script name, or a path to a JS/MJS file. You can also pass in a directory name, provided that
187+
directory contains an "index.js" file.
188+
-i, --input=<value> Optional JSON input to be given to the Actor.
189+
--input-file=<value> Optional path to a file with JSON input to be given to the Actor. The file must be a valid JSON file.
190+
You can also specify `-` to read from standard input.
191+
-p, --purge Whether to purge the default request queue, dataset and key-value store before the run starts.
192+
For crawlee projects, this is the default behavior, and the flag is optional.
193+
Use `--no-purge` to keep the storage folder intact.
194+
--resurrect Whether to keep the default request queue, dataset and key-value store before the run starts.
196195
```
197196
198197
##### `apify validate-schema`

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"which": "^5.0.0",
108108
"widest-line": "^5.0.0",
109109
"wrap-ansi": "^9.0.0",
110-
"yargonaut": "^1.1.4",
111110
"yargs": "^17.7.2"
112111
},
113112
"devDependencies": {

scripts/documentation-renderer/doc-building.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
registerCommandForHelpGeneration,
77
selectiveRenderHelpForCommand,
88
} from '../../src/lib/command-framework/help.js';
9-
import type { BaseCommandRenderer } from '../../src/lib/command-framework/help/_BaseCommandRenderer';
9+
import type { BaseCommandRenderer } from '../../src/lib/command-framework/help/_BaseCommandRenderer.js';
1010
import { Commands } from './commands.js';
1111

1212
export interface CommandsInCategory extends Partial<Parameters<BaseCommandRenderer['selectiveRender']>[0]> {

scripts/install/install.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,20 @@ if [[ $quoted_install_dir = \"$HOME/* ]]; then
217217
quoted_install_dir=${quoted_install_dir/$HOME\//\$HOME/}
218218
fi
219219

220+
if [[ -d $HOME/.local/bin ]]; then
221+
# First, remove the symlinks if they exist
222+
rm -f $HOME/.local/bin/apify
223+
rm -f $HOME/.local/bin/actor
224+
rm -f $HOME/.local/bin/apify-cli
225+
226+
# Symlink the three executables to /usr/local/bin
227+
ln -s "$bin_dir/apify" $HOME/.local/bin/apify
228+
ln -s "$bin_dir/actor" $HOME/.local/bin/actor
229+
ln -s "$bin_dir/apify-cli" $HOME/.local/bin/apify-cli
230+
231+
info "Symlinked apify, actor, and apify-cli to $HOME/.local/bin"
232+
fi
233+
220234
echo
221235

222236
case $(basename "$SHELL") in
@@ -344,6 +358,3 @@ fi
344358

345359
info_bold " apify --help"
346360
echo
347-
348-
# Not ideal but its the only way to refresh the shell (this also means if you type exit / CTRL+D, you'll need to do it twice)
349-
sh -c $SHELL

src/commands/_register.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ export const actorCommands = [
6666
ActorGetInputCommand,
6767
ActorChargeCommand,
6868
HelpCommand,
69+
UpgradeCommand,
6970
] as const satisfies (typeof BuiltApifyCommand)[];

0 commit comments

Comments
 (0)