apify-cli 0.21.7-beta.3 → 0.21.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -3
- package/README.md +0 -1431
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/_register.d.ts +26 -0
- package/dist/commands/_register.d.ts.map +1 -0
- package/dist/commands/_register.js +52 -0
- package/dist/commands/_register.js.map +1 -0
- package/dist/commands/actor/_index.d.ts +14 -0
- package/dist/commands/actor/_index.d.ts.map +1 -0
- package/dist/commands/actor/_index.js +24 -0
- package/dist/commands/actor/_index.js.map +1 -0
- package/dist/commands/actor/charge.d.ts +7 -6
- package/dist/commands/actor/charge.d.ts.map +1 -1
- package/dist/commands/actor/charge.js +5 -3
- package/dist/commands/actor/charge.js.map +1 -1
- package/dist/commands/actor/get-input.d.ts +3 -2
- package/dist/commands/actor/get-input.d.ts.map +1 -1
- package/dist/commands/actor/get-input.js +3 -2
- package/dist/commands/actor/get-input.js.map +1 -1
- package/dist/commands/actor/get-public-url.d.ts +4 -3
- package/dist/commands/actor/get-public-url.d.ts.map +1 -1
- package/dist/commands/actor/get-public-url.js +4 -3
- package/dist/commands/actor/get-public-url.js.map +1 -1
- package/dist/commands/actor/get-value.d.ts +4 -3
- package/dist/commands/actor/get-value.d.ts.map +1 -1
- package/dist/commands/actor/get-value.js +4 -3
- package/dist/commands/actor/get-value.js.map +1 -1
- package/dist/commands/actor/push-data.d.ts +4 -3
- package/dist/commands/actor/push-data.d.ts.map +1 -1
- package/dist/commands/actor/push-data.js +6 -5
- package/dist/commands/actor/push-data.js.map +1 -1
- package/dist/commands/actor/set-value.d.ts +6 -5
- package/dist/commands/actor/set-value.d.ts.map +1 -1
- package/dist/commands/actor/set-value.js +5 -5
- package/dist/commands/actor/set-value.js.map +1 -1
- package/dist/commands/actors/_index.d.ts +16 -0
- package/dist/commands/actors/_index.d.ts.map +1 -0
- package/dist/commands/actors/_index.js +28 -0
- package/dist/commands/actors/_index.js.map +1 -0
- package/dist/commands/actors/build.d.ts +4 -2
- package/dist/commands/actors/build.d.ts.map +1 -1
- package/dist/commands/actors/build.js +3 -1
- package/dist/commands/actors/build.js.map +1 -1
- package/dist/commands/actors/call.d.ts +12 -11
- package/dist/commands/actors/call.d.ts.map +1 -1
- package/dist/commands/actors/call.js +9 -7
- package/dist/commands/actors/call.js.map +1 -1
- package/dist/commands/actors/info.d.ts +6 -13
- package/dist/commands/actors/info.d.ts.map +1 -1
- package/dist/commands/actors/info.js +7 -5
- package/dist/commands/actors/info.js.map +1 -1
- package/dist/commands/actors/ls.d.ts +7 -6
- package/dist/commands/actors/ls.d.ts.map +1 -1
- package/dist/commands/actors/ls.js +8 -6
- package/dist/commands/actors/ls.js.map +1 -1
- package/dist/commands/actors/pull.d.ts +5 -4
- package/dist/commands/actors/pull.d.ts.map +1 -1
- package/dist/commands/actors/pull.js +4 -2
- package/dist/commands/actors/pull.js.map +1 -1
- package/dist/commands/actors/push.d.ts +9 -9
- package/dist/commands/actors/push.d.ts.map +1 -1
- package/dist/commands/actors/push.js +4 -6
- package/dist/commands/actors/push.js.map +1 -1
- package/dist/commands/actors/rm.d.ts +4 -3
- package/dist/commands/actors/rm.d.ts.map +1 -1
- package/dist/commands/actors/rm.js +4 -3
- package/dist/commands/actors/rm.js.map +1 -1
- package/dist/commands/actors/start.d.ts +9 -9
- package/dist/commands/actors/start.d.ts.map +1 -1
- package/dist/commands/actors/start.js +9 -7
- package/dist/commands/actors/start.js.map +1 -1
- package/dist/commands/builds/_index.d.ts +13 -0
- package/dist/commands/builds/_index.d.ts.map +1 -0
- package/dist/commands/builds/_index.js +22 -0
- package/dist/commands/builds/_index.js.map +1 -0
- package/dist/commands/builds/create.d.ts +7 -6
- package/dist/commands/builds/create.d.ts.map +1 -1
- package/dist/commands/builds/create.js +7 -5
- package/dist/commands/builds/create.js.map +1 -1
- package/dist/commands/builds/info.d.ts +5 -4
- package/dist/commands/builds/info.d.ts.map +1 -1
- package/dist/commands/builds/info.js +7 -6
- package/dist/commands/builds/info.js.map +1 -1
- package/dist/commands/builds/log.d.ts +4 -3
- package/dist/commands/builds/log.d.ts.map +1 -1
- package/dist/commands/builds/log.js +4 -3
- package/dist/commands/builds/log.js.map +1 -1
- package/dist/commands/builds/ls.d.ts +9 -8
- package/dist/commands/builds/ls.d.ts.map +1 -1
- package/dist/commands/builds/ls.js +8 -6
- package/dist/commands/builds/ls.js.map +1 -1
- package/dist/commands/builds/rm.d.ts +3 -2
- package/dist/commands/builds/rm.d.ts.map +1 -1
- package/dist/commands/builds/rm.js +3 -2
- package/dist/commands/builds/rm.js.map +1 -1
- package/dist/commands/call.d.ts +1 -0
- package/dist/commands/call.d.ts.map +1 -1
- package/dist/commands/call.js +1 -0
- package/dist/commands/call.js.map +1 -1
- package/dist/commands/check-version.d.ts +4 -3
- package/dist/commands/check-version.d.ts.map +1 -1
- package/dist/commands/check-version.js +4 -3
- package/dist/commands/check-version.js.map +1 -1
- package/dist/commands/create.d.ts +7 -6
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +4 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/datasets/_index.d.ts +15 -0
- package/dist/commands/datasets/_index.d.ts.map +1 -0
- package/dist/commands/datasets/_index.js +25 -0
- package/dist/commands/datasets/_index.js.map +1 -0
- package/dist/commands/datasets/create.d.ts +4 -3
- package/dist/commands/datasets/create.d.ts.map +1 -1
- package/dist/commands/datasets/create.js +6 -5
- package/dist/commands/datasets/create.js.map +1 -1
- package/dist/commands/datasets/get-items.d.ts +6 -6
- package/dist/commands/datasets/get-items.d.ts.map +1 -1
- package/dist/commands/datasets/get-items.js +6 -7
- package/dist/commands/datasets/get-items.js.map +1 -1
- package/dist/commands/datasets/info.d.ts +4 -23
- package/dist/commands/datasets/info.d.ts.map +1 -1
- package/dist/commands/datasets/info.js +7 -6
- package/dist/commands/datasets/info.js.map +1 -1
- package/dist/commands/datasets/ls.d.ts +7 -6
- package/dist/commands/datasets/ls.d.ts.map +1 -1
- package/dist/commands/datasets/ls.js +6 -5
- package/dist/commands/datasets/ls.js.map +1 -1
- package/dist/commands/datasets/push-items.d.ts +4 -3
- package/dist/commands/datasets/push-items.d.ts.map +1 -1
- package/dist/commands/datasets/push-items.js +5 -4
- package/dist/commands/datasets/push-items.js.map +1 -1
- package/dist/commands/datasets/rename.d.ts +5 -4
- package/dist/commands/datasets/rename.d.ts.map +1 -1
- package/dist/commands/datasets/rename.js +4 -2
- package/dist/commands/datasets/rename.js.map +1 -1
- package/dist/commands/datasets/rm.d.ts +3 -2
- package/dist/commands/datasets/rm.d.ts.map +1 -1
- package/dist/commands/datasets/rm.js +3 -2
- package/dist/commands/datasets/rm.js.map +1 -1
- package/dist/commands/edit-input-schema.d.ts +4 -3
- package/dist/commands/edit-input-schema.d.ts.map +1 -1
- package/dist/commands/edit-input-schema.js +4 -3
- package/dist/commands/edit-input-schema.js.map +1 -1
- package/dist/commands/info.d.ts +2 -1
- package/dist/commands/info.d.ts.map +1 -1
- package/dist/commands/info.js +2 -1
- package/dist/commands/info.js.map +1 -1
- package/dist/commands/init-wrap-scrapy.d.ts +3 -2
- package/dist/commands/init-wrap-scrapy.d.ts.map +1 -1
- package/dist/commands/init-wrap-scrapy.js +3 -2
- package/dist/commands/init-wrap-scrapy.js.map +1 -1
- package/dist/commands/init.d.ts +4 -3
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +4 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/key-value-stores/_index.d.ts +18 -0
- package/dist/commands/key-value-stores/_index.d.ts.map +1 -0
- package/dist/commands/key-value-stores/_index.js +30 -0
- package/dist/commands/key-value-stores/_index.js.map +1 -0
- package/dist/commands/key-value-stores/create.d.ts +4 -4
- package/dist/commands/key-value-stores/create.d.ts.map +1 -1
- package/dist/commands/key-value-stores/create.js +7 -7
- package/dist/commands/key-value-stores/create.js.map +1 -1
- package/dist/commands/key-value-stores/delete-value.d.ts +4 -4
- package/dist/commands/key-value-stores/delete-value.d.ts.map +1 -1
- package/dist/commands/key-value-stores/delete-value.js +4 -4
- package/dist/commands/key-value-stores/delete-value.js.map +1 -1
- package/dist/commands/key-value-stores/get-value.d.ts +5 -5
- package/dist/commands/key-value-stores/get-value.d.ts.map +1 -1
- package/dist/commands/key-value-stores/get-value.js +4 -3
- package/dist/commands/key-value-stores/get-value.js.map +1 -1
- package/dist/commands/key-value-stores/info.d.ts +4 -21
- package/dist/commands/key-value-stores/info.d.ts.map +1 -1
- package/dist/commands/key-value-stores/info.js +7 -7
- package/dist/commands/key-value-stores/info.js.map +1 -1
- package/dist/commands/key-value-stores/keys.d.ts +6 -6
- package/dist/commands/key-value-stores/keys.d.ts.map +1 -1
- package/dist/commands/key-value-stores/keys.js +7 -6
- package/dist/commands/key-value-stores/keys.js.map +1 -1
- package/dist/commands/key-value-stores/ls.d.ts +7 -7
- package/dist/commands/key-value-stores/ls.d.ts.map +1 -1
- package/dist/commands/key-value-stores/ls.js +6 -7
- package/dist/commands/key-value-stores/ls.js.map +1 -1
- package/dist/commands/key-value-stores/rename.d.ts +5 -5
- package/dist/commands/key-value-stores/rename.d.ts.map +1 -1
- package/dist/commands/key-value-stores/rename.js +4 -3
- package/dist/commands/key-value-stores/rename.js.map +1 -1
- package/dist/commands/key-value-stores/rm.d.ts +3 -3
- package/dist/commands/key-value-stores/rm.d.ts.map +1 -1
- package/dist/commands/key-value-stores/rm.js +3 -3
- package/dist/commands/key-value-stores/rm.js.map +1 -1
- package/dist/commands/key-value-stores/set-value.d.ts +6 -6
- package/dist/commands/key-value-stores/set-value.d.ts.map +1 -1
- package/dist/commands/key-value-stores/set-value.js +4 -6
- package/dist/commands/key-value-stores/set-value.js.map +1 -1
- package/dist/commands/login.d.ts +4 -3
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +4 -3
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +2 -1
- package/dist/commands/logout.d.ts.map +1 -1
- package/dist/commands/logout.js +2 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/pull.d.ts +1 -0
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/commands/pull.js +1 -0
- package/dist/commands/pull.js.map +1 -1
- package/dist/commands/push.d.ts +1 -0
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +1 -0
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/request-queues/{index.d.ts → _index.d.ts} +3 -2
- package/dist/commands/request-queues/_index.d.ts.map +1 -0
- package/dist/commands/request-queues/{index.js → _index.js} +4 -3
- package/dist/commands/request-queues/_index.js.map +1 -0
- package/dist/commands/run.d.ts +9 -8
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +7 -5
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/runs/_index.d.ts +14 -0
- package/dist/commands/runs/_index.d.ts.map +1 -0
- package/dist/commands/runs/_index.js +23 -0
- package/dist/commands/runs/_index.js.map +1 -0
- package/dist/commands/runs/abort.d.ts +5 -4
- package/dist/commands/runs/abort.d.ts.map +1 -1
- package/dist/commands/runs/abort.js +7 -5
- package/dist/commands/runs/abort.js.map +1 -1
- package/dist/commands/runs/info.d.ts +5 -37
- package/dist/commands/runs/info.d.ts.map +1 -1
- package/dist/commands/runs/info.js +8 -6
- package/dist/commands/runs/info.js.map +1 -1
- package/dist/commands/runs/log.d.ts +3 -2
- package/dist/commands/runs/log.d.ts.map +1 -1
- package/dist/commands/runs/log.js +3 -2
- package/dist/commands/runs/log.js.map +1 -1
- package/dist/commands/runs/ls.d.ts +8 -7
- package/dist/commands/runs/ls.d.ts.map +1 -1
- package/dist/commands/runs/ls.js +7 -5
- package/dist/commands/runs/ls.js.map +1 -1
- package/dist/commands/runs/resurrect.d.ts +4 -3
- package/dist/commands/runs/resurrect.d.ts.map +1 -1
- package/dist/commands/runs/resurrect.js +6 -5
- package/dist/commands/runs/resurrect.js.map +1 -1
- package/dist/commands/runs/rm.d.ts +3 -2
- package/dist/commands/runs/rm.d.ts.map +1 -1
- package/dist/commands/runs/rm.js +3 -2
- package/dist/commands/runs/rm.js.map +1 -1
- package/dist/commands/secrets/_index.d.ts +10 -0
- package/dist/commands/secrets/_index.d.ts.map +1 -0
- package/dist/commands/secrets/{index.js → _index.js} +7 -3
- package/dist/commands/secrets/_index.js.map +1 -0
- package/dist/commands/secrets/add.d.ts +4 -3
- package/dist/commands/secrets/add.d.ts.map +1 -1
- package/dist/commands/secrets/add.js +3 -2
- package/dist/commands/secrets/add.js.map +1 -1
- package/dist/commands/secrets/rm.d.ts +4 -3
- package/dist/commands/secrets/rm.d.ts.map +1 -1
- package/dist/commands/secrets/rm.js +4 -3
- package/dist/commands/secrets/rm.js.map +1 -1
- package/dist/commands/task/_index.d.ts +9 -0
- package/dist/commands/task/_index.d.ts.map +1 -0
- package/dist/commands/task/_index.js +11 -0
- package/dist/commands/task/_index.js.map +1 -0
- package/dist/commands/task/run.d.ts +6 -5
- package/dist/commands/task/run.d.ts.map +1 -1
- package/dist/commands/task/run.js +3 -2
- package/dist/commands/task/run.js.map +1 -1
- package/dist/commands/validate-schema.d.ts +3 -2
- package/dist/commands/validate-schema.d.ts.map +1 -1
- package/dist/commands/validate-schema.js +3 -2
- package/dist/commands/validate-schema.js.map +1 -1
- package/dist/entrypoints/_shared.d.ts +9 -0
- package/dist/entrypoints/_shared.d.ts.map +1 -0
- package/dist/entrypoints/_shared.js +219 -0
- package/dist/entrypoints/_shared.js.map +1 -0
- package/dist/entrypoints/actor.d.ts +2 -0
- package/dist/entrypoints/actor.d.ts.map +1 -0
- package/dist/entrypoints/actor.js +18 -0
- package/dist/entrypoints/actor.js.map +1 -0
- package/dist/entrypoints/apify.d.ts +2 -0
- package/dist/entrypoints/apify.d.ts.map +1 -0
- package/dist/entrypoints/apify.js +31 -0
- package/dist/entrypoints/apify.js.map +1 -0
- package/dist/lib/command-framework/apify-command.d.ts +90 -0
- package/dist/lib/command-framework/apify-command.d.ts.map +1 -0
- package/dist/lib/command-framework/apify-command.js +342 -0
- package/dist/lib/command-framework/apify-command.js.map +1 -0
- package/dist/lib/command-framework/args.d.ts +28 -0
- package/dist/lib/command-framework/args.d.ts.map +1 -0
- package/dist/lib/command-framework/args.js +23 -0
- package/dist/lib/command-framework/args.js.map +1 -0
- package/dist/lib/command-framework/flags.d.ts +55 -0
- package/dist/lib/command-framework/flags.d.ts.map +1 -0
- package/dist/lib/command-framework/flags.js +102 -0
- package/dist/lib/command-framework/flags.js.map +1 -0
- package/dist/lib/command-framework/help/CommandHelp.d.ts +11 -0
- package/dist/lib/command-framework/help/CommandHelp.d.ts.map +1 -0
- package/dist/lib/command-framework/help/CommandHelp.js +228 -0
- package/dist/lib/command-framework/help/CommandHelp.js.map +1 -0
- package/dist/lib/command-framework/help/CommandWithSubcommands.d.ts +7 -0
- package/dist/lib/command-framework/help/CommandWithSubcommands.d.ts.map +1 -0
- package/dist/lib/command-framework/help/CommandWithSubcommands.js +75 -0
- package/dist/lib/command-framework/help/CommandWithSubcommands.js.map +1 -0
- package/dist/lib/command-framework/help/_BaseCommandRenderer.d.ts +25 -0
- package/dist/lib/command-framework/help/_BaseCommandRenderer.d.ts.map +1 -0
- package/dist/lib/command-framework/help/_BaseCommandRenderer.js +63 -0
- package/dist/lib/command-framework/help/_BaseCommandRenderer.js.map +1 -0
- package/dist/lib/command-framework/help/consts.d.ts +2 -0
- package/dist/lib/command-framework/help/consts.d.ts.map +1 -0
- package/dist/lib/command-framework/help/consts.js +27 -0
- package/dist/lib/command-framework/help/consts.js.map +1 -0
- package/dist/lib/command-framework/help.d.ts +7 -0
- package/dist/lib/command-framework/help.d.ts.map +1 -0
- package/dist/lib/command-framework/help.js +104 -0
- package/dist/lib/command-framework/help.js.map +1 -0
- package/dist/lib/commands/read-stdin.d.ts +2 -1
- package/dist/lib/commands/read-stdin.d.ts.map +1 -1
- package/dist/lib/commands/read-stdin.js +71 -14
- package/dist/lib/commands/read-stdin.js.map +1 -1
- package/dist/lib/commands/resolve-input.js +6 -6
- package/dist/lib/commands/resolve-input.js.map +1 -1
- package/dist/lib/commands/run-on-cloud.d.ts +3 -3
- package/dist/lib/commands/run-on-cloud.d.ts.map +1 -1
- package/dist/lib/commands/run-on-cloud.js +1 -1
- package/dist/lib/commands/run-on-cloud.js.map +1 -1
- package/dist/lib/consts.d.ts +4 -2
- package/dist/lib/consts.d.ts.map +1 -1
- package/dist/lib/consts.js +18 -3
- package/dist/lib/consts.js.map +1 -1
- package/dist/lib/hooks/runtimes/utils.d.ts.map +1 -1
- package/dist/lib/hooks/runtimes/utils.js +3 -6
- package/dist/lib/hooks/runtimes/utils.js.map +1 -1
- package/dist/lib/types.d.ts +2 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +3 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.d.ts +5 -9
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +21 -12
- package/dist/lib/utils.js.map +1 -1
- package/dist/typechecking.tsbuildinfo +1 -1
- package/package.json +23 -42
- package/bin/dev.cmd +0 -3
- package/bin/dev.js +0 -23
- package/bin/dev.sh +0 -4
- package/bin/run.cmd +0 -3
- package/bin/run.js +0 -25
- package/dist/commands/actor/index.d.ts +0 -6
- package/dist/commands/actor/index.d.ts.map +0 -1
- package/dist/commands/actor/index.js +0 -8
- package/dist/commands/actor/index.js.map +0 -1
- package/dist/commands/actors/index.d.ts +0 -6
- package/dist/commands/actors/index.d.ts.map +0 -1
- package/dist/commands/actors/index.js +0 -8
- package/dist/commands/actors/index.js.map +0 -1
- package/dist/commands/builds/index.d.ts +0 -6
- package/dist/commands/builds/index.d.ts.map +0 -1
- package/dist/commands/builds/index.js +0 -8
- package/dist/commands/builds/index.js.map +0 -1
- package/dist/commands/datasets/index.d.ts +0 -6
- package/dist/commands/datasets/index.d.ts.map +0 -1
- package/dist/commands/datasets/index.js +0 -8
- package/dist/commands/datasets/index.js.map +0 -1
- package/dist/commands/key-value-stores/index.d.ts +0 -7
- package/dist/commands/key-value-stores/index.d.ts.map +0 -1
- package/dist/commands/key-value-stores/index.js +0 -9
- package/dist/commands/key-value-stores/index.js.map +0 -1
- package/dist/commands/request-queues/index.d.ts.map +0 -1
- package/dist/commands/request-queues/index.js.map +0 -1
- package/dist/commands/runs/index.d.ts +0 -6
- package/dist/commands/runs/index.d.ts.map +0 -1
- package/dist/commands/runs/index.js +0 -8
- package/dist/commands/runs/index.js.map +0 -1
- package/dist/commands/secrets/index.d.ts +0 -6
- package/dist/commands/secrets/index.d.ts.map +0 -1
- package/dist/commands/secrets/index.js.map +0 -1
- package/dist/commands/task/index.d.ts +0 -6
- package/dist/commands/task/index.d.ts.map +0 -1
- package/dist/commands/task/index.js +0 -8
- package/dist/commands/task/index.js.map +0 -1
- package/dist/hooks/deprecations.d.ts +0 -4
- package/dist/hooks/deprecations.d.ts.map +0 -1
- package/dist/hooks/deprecations.js +0 -18
- package/dist/hooks/deprecations.js.map +0 -1
- package/dist/hooks/init.d.ts +0 -7
- package/dist/hooks/init.d.ts.map +0 -1
- package/dist/hooks/init.js +0 -17
- package/dist/hooks/init.js.map +0 -1
- package/dist/lib/apify-oclif-help.d.ts +0 -15
- package/dist/lib/apify-oclif-help.d.ts.map +0 -1
- package/dist/lib/apify-oclif-help.js +0 -19
- package/dist/lib/apify-oclif-help.js.map +0 -1
- package/dist/lib/apify_command.d.ts +0 -17
- package/dist/lib/apify_command.d.ts.map +0 -1
- package/dist/lib/apify_command.js +0 -76
- package/dist/lib/apify_command.js.map +0 -1
- package/oclif.manifest.json +0 -2661
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.8-beta.0",
|
|
4
4
|
"description": "Apify command-line interface (CLI) helps you manage the Apify cloud platform and develop, build, and deploy Apify Actors.",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"dev": "tsx ./
|
|
9
|
+
"dev": "tsx ./src/entrypoints/apify.ts",
|
|
10
10
|
"test": "vitest run",
|
|
11
11
|
"test-python": "vitest run -t '.*\\[python\\]'",
|
|
12
12
|
"test:cucumber": "cross-env NODE_OPTIONS=\"--import tsx\" cucumber-js",
|
|
13
|
-
"lint": "eslint src test --ext .ts,.cjs,.mjs",
|
|
14
|
-
"lint:fix": "eslint src test --fix --ext .ts,.cjs,.mjs",
|
|
13
|
+
"lint": "eslint src test scripts --ext .ts,.cjs,.mjs",
|
|
14
|
+
"lint:fix": "eslint src test scripts --fix --ext .ts,.cjs,.mjs",
|
|
15
15
|
"format": "biome format . && prettier --check \"**/*.{md,yml,yaml}\"",
|
|
16
16
|
"format:fix": "biome format --write . && prettier --write \"**/*.{md,yml,yaml}\"",
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
18
|
"build": "yarn clean && tsc && tsc -p tsconfig.typechecking.json",
|
|
19
|
-
"
|
|
20
|
-
"prepack": "yarn build &&
|
|
21
|
-
"update-docs": "tsx scripts/generate-
|
|
22
|
-
"postinstallDev": "yarn build && node ./
|
|
19
|
+
"build-bundles": "bun run scripts/build-cli-bundles.ts",
|
|
20
|
+
"prepack": "yarn build && yarn update-docs",
|
|
21
|
+
"update-docs": "tsx scripts/generate-cli-docs.ts",
|
|
22
|
+
"postinstallDev": "yarn build && node ./dist/entrypoints/apify.js check-version && node ./dist/lib/community.js"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
"oclif.manifest.json",
|
|
27
|
-
"bin"
|
|
25
|
+
"dist"
|
|
28
26
|
],
|
|
29
27
|
"bin": {
|
|
30
|
-
"
|
|
28
|
+
"actor": "./dist/entrypoints/actor.js",
|
|
29
|
+
"apify": "./dist/entrypoints/apify.js"
|
|
31
30
|
},
|
|
32
31
|
"contributors": [
|
|
33
32
|
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
34
|
-
"Jan Curn <jan@apify.com>"
|
|
33
|
+
"Jan Curn <jan@apify.com>",
|
|
34
|
+
"Vlad Frangu <vlad.frangu@apify.com>"
|
|
35
35
|
],
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
@@ -64,8 +64,6 @@
|
|
|
64
64
|
"@apify/input_schema": "^3.12.0",
|
|
65
65
|
"@apify/utilities": "^2.15.1",
|
|
66
66
|
"@crawlee/memory-storage": "^3.12.0",
|
|
67
|
-
"@oclif/core": "~4.3.0",
|
|
68
|
-
"@oclif/plugin-help": "~6.2.8",
|
|
69
67
|
"@root/walk": "~1.1.0",
|
|
70
68
|
"@sapphire/duration": "^1.1.2",
|
|
71
69
|
"@sapphire/result": "^2.7.2",
|
|
@@ -86,6 +84,7 @@
|
|
|
86
84
|
"express": "~5.1.0",
|
|
87
85
|
"globby": "~14.1.0",
|
|
88
86
|
"handlebars": "~4.7.8",
|
|
87
|
+
"indent-string": "^5.0.0",
|
|
89
88
|
"inquirer": "~12.6.0",
|
|
90
89
|
"is-ci": "~4.1.0",
|
|
91
90
|
"is-online": "~11.0.0",
|
|
@@ -98,8 +97,14 @@
|
|
|
98
97
|
"ow": "~2.0.0",
|
|
99
98
|
"rimraf": "~6.0.1",
|
|
100
99
|
"semver": "~7.7.0",
|
|
100
|
+
"string-width": "^7.2.0",
|
|
101
|
+
"strip-ansi": "^7.1.0",
|
|
101
102
|
"tiged": "~2.12.7",
|
|
102
|
-
"which": "^5.0.0"
|
|
103
|
+
"which": "^5.0.0",
|
|
104
|
+
"widest-line": "^5.0.0",
|
|
105
|
+
"wrap-ansi": "^9.0.0",
|
|
106
|
+
"yargonaut": "^1.1.4",
|
|
107
|
+
"yargs": "^17.7.2"
|
|
103
108
|
},
|
|
104
109
|
"devDependencies": {
|
|
105
110
|
"@apify/eslint-config": "^1.0.0",
|
|
@@ -107,9 +112,9 @@
|
|
|
107
112
|
"@biomejs/biome": "^1.9.4",
|
|
108
113
|
"@crawlee/types": "^3.11.1",
|
|
109
114
|
"@cucumber/cucumber": "^11.0.0",
|
|
110
|
-
"@oclif/test": "^4.0.8",
|
|
111
115
|
"@types/adm-zip": "^0.5.5",
|
|
112
116
|
"@types/archiver": "^6.0.2",
|
|
117
|
+
"@types/bun": "^1.2.5",
|
|
113
118
|
"@types/chai": "^4.3.17",
|
|
114
119
|
"@types/cors": "^2.8.17",
|
|
115
120
|
"@types/execa": "^2.0.2",
|
|
@@ -123,6 +128,7 @@
|
|
|
123
128
|
"@types/node": "^22.0.0",
|
|
124
129
|
"@types/semver": "^7.5.8",
|
|
125
130
|
"@types/which": "^3.0.4",
|
|
131
|
+
"@types/yargs": "^17.0.33",
|
|
126
132
|
"@yarnpkg/core": "^4.1.2",
|
|
127
133
|
"apify": "^3.2.4",
|
|
128
134
|
"chai": "^4.4.1",
|
|
@@ -132,37 +138,12 @@
|
|
|
132
138
|
"lint-staged": "^16.0.0",
|
|
133
139
|
"mdast-util-from-markdown": "^2.0.2",
|
|
134
140
|
"mock-stdin": "^1.0.0",
|
|
135
|
-
"oclif": "^4.14.15",
|
|
136
141
|
"prettier": "^3.5.3",
|
|
137
142
|
"tsx": "^4.16.5",
|
|
138
143
|
"typescript": "^5.8.3",
|
|
139
144
|
"typescript-eslint": "^8.31.0",
|
|
140
145
|
"vitest": "^3.0.0"
|
|
141
146
|
},
|
|
142
|
-
"oclif": {
|
|
143
|
-
"bin": "apify",
|
|
144
|
-
"dirname": "apify",
|
|
145
|
-
"commands": "./dist/commands",
|
|
146
|
-
"plugins": [
|
|
147
|
-
"@oclif/plugin-help"
|
|
148
|
-
],
|
|
149
|
-
"hooks": {
|
|
150
|
-
"init": [
|
|
151
|
-
"./dist/hooks/init"
|
|
152
|
-
],
|
|
153
|
-
"prerun": [
|
|
154
|
-
"./dist/hooks/deprecations"
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
"helpClass": "./dist/lib/apify-oclif-help",
|
|
158
|
-
"additionalHelpFlags": [
|
|
159
|
-
"-h"
|
|
160
|
-
],
|
|
161
|
-
"additionalVersionFlags": [
|
|
162
|
-
"-v"
|
|
163
|
-
],
|
|
164
|
-
"topicSeparator": " "
|
|
165
|
-
},
|
|
166
147
|
"volta": {
|
|
167
148
|
"node": "22.15.1",
|
|
168
149
|
"yarn": "4.9.1"
|
package/bin/dev.cmd
DELETED
package/bin/dev.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { execute } from '@oclif/core';
|
|
2
|
-
import { satisfies } from 'semver';
|
|
3
|
-
|
|
4
|
-
import { SUPPORTED_NODEJS_VERSION } from '../src/lib/consts.ts';
|
|
5
|
-
import { error } from '../src/lib/outputs.ts';
|
|
6
|
-
|
|
7
|
-
if (!satisfies(process.version, SUPPORTED_NODEJS_VERSION)) {
|
|
8
|
-
error({
|
|
9
|
-
message: `Apify CLI requires Node.js version ${SUPPORTED_NODEJS_VERSION}. Your current version is ${process.version}.`,
|
|
10
|
-
});
|
|
11
|
-
process.exit(1);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
await execute({ development: true, dir: import.meta.url });
|
|
16
|
-
} catch (err) {
|
|
17
|
-
const exitCode = err.oclif && err.oclif.exit !== undefined ? err.oclif.exit : 1;
|
|
18
|
-
if (exitCode !== 0) {
|
|
19
|
-
error(err.message);
|
|
20
|
-
if (process.env.DEBUG) console.error(err);
|
|
21
|
-
process.exit(exitCode);
|
|
22
|
-
}
|
|
23
|
-
}
|
package/bin/dev.sh
DELETED
package/bin/run.cmd
DELETED
package/bin/run.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { execute } from '@oclif/core';
|
|
4
|
-
import { satisfies } from 'semver';
|
|
5
|
-
|
|
6
|
-
import { SUPPORTED_NODEJS_VERSION } from '../dist/lib/consts.js';
|
|
7
|
-
import { error } from '../dist/lib/outputs.js';
|
|
8
|
-
|
|
9
|
-
if (!satisfies(process.version, SUPPORTED_NODEJS_VERSION)) {
|
|
10
|
-
error({
|
|
11
|
-
message: `Apify CLI requires Node.js version ${SUPPORTED_NODEJS_VERSION}. Your current version is ${process.version}.`,
|
|
12
|
-
});
|
|
13
|
-
process.exit(1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
await execute({ development: false, dir: import.meta.url });
|
|
18
|
-
} catch (err) {
|
|
19
|
-
const exitCode = err.oclif && err.oclif.exit !== undefined ? err.oclif.exit : 1;
|
|
20
|
-
if (exitCode !== 0) {
|
|
21
|
-
error(err.message);
|
|
22
|
-
if (process.env.DEBUG) console.error(err);
|
|
23
|
-
process.exit(exitCode);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IAC5E,OAAgB,WAAW,SAAgE;IAErF,GAAG;CAGT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class ActorIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages runtime data operations inside of a running Actor.';
|
|
4
|
-
async run() {
|
|
5
|
-
await this.printHelp();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;IAC5E,MAAM,CAAU,WAAW,GAAG,4DAA4D,CAAC;IAE3F,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/actors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IAC5E,OAAgB,WAAW,SAA8E;IAEnG,GAAG;CAGT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class ActorIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages Actor creation, deployment, and execution on the Apify platform.';
|
|
4
|
-
async run() {
|
|
5
|
-
await this.printHelp();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/actors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;IAC5E,MAAM,CAAU,WAAW,GAAG,0EAA0E,CAAC;IAEzG,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/builds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IAC5E,OAAgB,WAAW,SAAmD;IAExE,GAAG;CAGT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class ActorIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages Actor build processes and versioning.';
|
|
4
|
-
async run() {
|
|
5
|
-
await this.printHelp();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/builds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;IAC5E,MAAM,CAAU,WAAW,GAAG,+CAA+C,CAAC;IAE9E,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/datasets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,oBAAqB,SAAQ,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAClF,OAAgB,WAAW,SAAoD;IAEzE,GAAG;CAGT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class DatasetsIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages structured data storage and retrieval.';
|
|
4
|
-
async run() {
|
|
5
|
-
await this.printHelp();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/datasets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,oBAAqB,SAAQ,YAAyC;IAClF,MAAM,CAAU,WAAW,GAAG,gDAAgD,CAAC;IAE/E,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export declare class KeyValueStoresIndexCommand extends ApifyCommand<typeof KeyValueStoresIndexCommand> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static hiddenAliases: string[];
|
|
5
|
-
run(): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/key-value-stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,0BAA2B,SAAQ,YAAY,CAAC,OAAO,0BAA0B,CAAC;IAC9F,OAAgB,WAAW,SAAyD;IAEpF,OAAgB,aAAa,WAAW;IAElC,GAAG;CAGT"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class KeyValueStoresIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages persistent key-value storage.\n\nAlias: kvs';
|
|
4
|
-
static hiddenAliases = ['kvs'];
|
|
5
|
-
async run() {
|
|
6
|
-
await this.printHelp();
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/key-value-stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,0BAA2B,SAAQ,YAA+C;IAC9F,MAAM,CAAU,WAAW,GAAG,qDAAqD,CAAC;IAEpF,MAAM,CAAU,aAAa,GAAG,CAAC,KAAK,CAAC,CAAC;IAExC,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/request-queues/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,yBAA0B,SAAQ,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAC5F,OAAgB,WAAW,SAA+D;IAEpF,GAAG;CAGT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/request-queues/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,yBAA0B,SAAQ,YAA8C;IAC5F,MAAM,CAAU,WAAW,GAAG,2DAA2D,CAAC;IAE1F,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/runs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,OAAO,gBAAgB,CAAC;IAC1E,OAAgB,WAAW,SAAmC;IAExD,GAAG;CAGT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/runs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,gBAAiB,SAAQ,YAAqC;IAC1E,MAAM,CAAU,WAAW,GAAG,+BAA+B,CAAC;IAE9D,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/secrets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,qBAAa,mBAAoB,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAChF,OAAgB,WAAW,SAaV;IAEX,GAAG;CAGT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/secrets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,OAAO,mBAAoB,SAAQ,YAAwC;IAChF,MAAM,CAAU,WAAW,GAC1B,sDAAsD;QACtD,YAAY;QACZ,oDAAoD;QACpD,2EAA2E,iBAAiB,4BAA4B;QACxH,aAAa;QACb,KAAK;QACL,8BAA8B;QAC9B,yBAAyB;QACzB,gEAAgE;QAChE,sBAAsB;QACtB,OAAO;QACP,0HAA0H;QAC1H,eAAe,CAAC;IAEjB,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IAC5E,OAAgB,WAAW,SAA4D;IACjF,GAAG;CAGT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class TasksIndexCommand extends ApifyCommand {
|
|
3
|
-
static description = 'Manages scheduled and predefined Actor configurations.';
|
|
4
|
-
async run() {
|
|
5
|
-
await this.printHelp();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;IAC5E,MAAM,CAAU,WAAW,GAAG,wDAAwD,CAAC;IACvF,KAAK,CAAC,GAAG;QACR,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecations.d.ts","sourceRoot":"","sources":["../../src/hooks/deprecations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AASxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,QAAQ,CAYxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';
|
|
2
|
-
import { warning } from '../lib/outputs.js';
|
|
3
|
-
// TODO: this will probably not work for commands that are namespaced, e.g. `actor call`
|
|
4
|
-
const deprecations = {
|
|
5
|
-
vis: 'validate-schema',
|
|
6
|
-
};
|
|
7
|
-
const hook = async (params) => {
|
|
8
|
-
const possibleValidCommand = [params.Command.id, ...params.Command.aliases, ...params.Command.hiddenAliases];
|
|
9
|
-
const usedCommand = process.argv.find((arg) => possibleValidCommand.includes(arg));
|
|
10
|
-
if (usedCommand) {
|
|
11
|
-
const validCommand = deprecations[usedCommand];
|
|
12
|
-
if (validCommand) {
|
|
13
|
-
warning({ message: `The command "${usedCommand}" is deprecated. Please use "${validCommand}" instead.` });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export default hook;
|
|
18
|
-
//# sourceMappingURL=deprecations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecations.js","sourceRoot":"","sources":["../../src/hooks/deprecations.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AAInC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wFAAwF;AACxF,MAAM,YAAY,GAA2B;IAC5C,GAAG,EAAE,iBAAiB;CACtB,CAAC;AAEF,MAAM,IAAI,GAAmB,KAAK,EAAE,MAAM,EAAE,EAAE;IAC7C,MAAM,oBAAoB,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAE7G,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnF,IAAI,WAAW,EAAE,CAAC;QACjB,MAAM,YAAY,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;QAE/C,IAAI,YAAY,EAAE,CAAC;YAClB,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,WAAW,gCAAgC,YAAY,YAAY,EAAE,CAAC,CAAC;QAC3G,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/hooks/init.d.ts
DELETED
package/dist/hooks/init.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/hooks/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIxC;;GAEG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,MAAM,CAWtB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/hooks/init.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { checkLatestVersion, SKIP_UPDATE_CHECK } from '../lib/version_check.js';
|
|
2
|
-
/**
|
|
3
|
-
* This code'll be call before each commmand run
|
|
4
|
-
*/
|
|
5
|
-
const hook = async (params) => {
|
|
6
|
-
// This is not necessary when you call the `--check-version` as the same command is called there.
|
|
7
|
-
if (['cv', 'check-version'].includes(params.id)) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
// If the user has configured the `APIFY_CLI_SKIP_UPDATE_CHECK` env variable then skip the check.
|
|
11
|
-
if (SKIP_UPDATE_CHECK)
|
|
12
|
-
return;
|
|
13
|
-
// Check package latest version
|
|
14
|
-
await checkLatestVersion();
|
|
15
|
-
};
|
|
16
|
-
export default hook;
|
|
17
|
-
//# sourceMappingURL=init.js.map
|
package/dist/hooks/init.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/hooks/init.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;GAEG;AACH,MAAM,IAAI,GAAiB,KAAK,EAAE,MAAM,EAAE,EAAE;IAC3C,iGAAiG;IACjG,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAG,CAAC,EAAE,CAAC;QAClD,OAAO;IACR,CAAC;IAED,iGAAiG;IACjG,IAAI,iBAAiB;QAAE,OAAO;IAE9B,+BAA+B;IAC/B,MAAM,kBAAkB,EAAE,CAAC;AAC5B,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Help } from '@oclif/core';
|
|
2
|
-
/**
|
|
3
|
-
* Custom help class that overrides how oclif renders help screens.
|
|
4
|
-
*
|
|
5
|
-
* It is registered through package.json.
|
|
6
|
-
*
|
|
7
|
-
* Refer to the oclif documentation for more information:
|
|
8
|
-
* https://oclif.io/docs/help_classes/#custom-help
|
|
9
|
-
*
|
|
10
|
-
* Note: The CLI was crashing when printing help with the latest oclif packages. Be careful when upgrading.
|
|
11
|
-
*/
|
|
12
|
-
export default class ApifyOclifHelp extends Help {
|
|
13
|
-
showRootHelp(): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=apify-oclif-help.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apify-oclif-help.d.ts","sourceRoot":"","sources":["../../src/lib/apify-oclif-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,IAAI;IAChC,YAAY;CAa3B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Help } from '@oclif/core';
|
|
2
|
-
/**
|
|
3
|
-
* Custom help class that overrides how oclif renders help screens.
|
|
4
|
-
*
|
|
5
|
-
* It is registered through package.json.
|
|
6
|
-
*
|
|
7
|
-
* Refer to the oclif documentation for more information:
|
|
8
|
-
* https://oclif.io/docs/help_classes/#custom-help
|
|
9
|
-
*
|
|
10
|
-
* Note: The CLI was crashing when printing help with the latest oclif packages. Be careful when upgrading.
|
|
11
|
-
*/
|
|
12
|
-
export default class ApifyOclifHelp extends Help {
|
|
13
|
-
async showRootHelp() {
|
|
14
|
-
await super.showRootHelp();
|
|
15
|
-
this.log(this.section('TROUBLESHOOTING', this.wrap('For general support, reach out to us at https://apify.com/contact\n\n' +
|
|
16
|
-
'If you believe you are encountering a bug, file it at https://github.com/apify/apify-cli/issues/new')));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=apify-oclif-help.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apify-oclif-help.js","sourceRoot":"","sources":["../../src/lib/apify-oclif-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,IAAI;IACtC,KAAK,CAAC,YAAY;QAC1B,MAAM,KAAK,CAAC,YAAY,EAAE,CAAC;QAE3B,IAAI,CAAC,GAAG,CACP,IAAI,CAAC,OAAO,CACX,iBAAiB,EACjB,IAAI,CAAC,IAAI,CACR,uEAAuE;YACtE,qGAAqG,CACtG,CACD,CACD,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command, type Interfaces } from '@oclif/core';
|
|
2
|
-
import { type KeysToCamelCase } from './utils.js';
|
|
3
|
-
export type ApifyFlags<T extends typeof Command> = KeysToCamelCase<Interfaces.InferredFlags<T['flags']>>;
|
|
4
|
-
export type ApifyArgs<T extends typeof Command> = Interfaces.InferredArgs<T['args']>;
|
|
5
|
-
/**
|
|
6
|
-
* Adding parsing flags to oclif Command class
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class ApifyCommand<T extends typeof Command> extends Command {
|
|
9
|
-
protected telemetryData: Record<string, unknown>;
|
|
10
|
-
protected flags: ApifyFlags<T>;
|
|
11
|
-
protected args: ApifyArgs<T>;
|
|
12
|
-
init(): Promise<void>;
|
|
13
|
-
finally(err?: Error): Promise<any>;
|
|
14
|
-
printHelp(customCommand?: string): Promise<void>;
|
|
15
|
-
protected pluralString(amount: number, singular: string, plural: string): string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=apify_command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apify_command.d.ts","sourceRoot":"","sources":["../../src/lib/apify_command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,aAAa,CAAC;AAKtE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGnE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,OAAO,OAAO,IAAI,eAAe,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzG,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,OAAO,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAErF;;GAEG;AACH,8BAAsB,YAAY,CAAC,CAAC,SAAS,OAAO,OAAO,CAAE,SAAQ,OAAO;IAC3E,SAAS,CAAC,aAAa,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAElD,SAAS,CAAC,KAAK,EAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,IAAI,EAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAEf,IAAI;IAmBJ,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK;IA0C5B,SAAS,CAAC,aAAa,CAAC,EAAE,MAAM;IAMtC,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;CAGhF"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';
|
|
2
|
-
import { Command, loadHelpClass } from '@oclif/core';
|
|
3
|
-
import { COMMANDS_WITHIN_ACTOR, LANGUAGE } from './consts.js';
|
|
4
|
-
import { ProjectLanguage, useCwdProject } from './hooks/useCwdProject.js';
|
|
5
|
-
import { maybeTrackTelemetry } from './telemetry.js';
|
|
6
|
-
import { argsToCamelCase } from './utils.js';
|
|
7
|
-
import { detectInstallationType } from './version_check.js';
|
|
8
|
-
/**
|
|
9
|
-
* Adding parsing flags to oclif Command class
|
|
10
|
-
*/
|
|
11
|
-
export class ApifyCommand extends Command {
|
|
12
|
-
telemetryData;
|
|
13
|
-
flags;
|
|
14
|
-
args;
|
|
15
|
-
async init() {
|
|
16
|
-
await super.init();
|
|
17
|
-
const { args, flags } = await this.parse({
|
|
18
|
-
flags: this.ctor.flags,
|
|
19
|
-
args: this.ctor.args,
|
|
20
|
-
strict: this.ctor.strict,
|
|
21
|
-
enableJsonFlag: this.ctor.enableJsonFlag,
|
|
22
|
-
});
|
|
23
|
-
this.flags = argsToCamelCase(flags);
|
|
24
|
-
this.args = args;
|
|
25
|
-
// Initialize telemetry data, all attributes are tracked in the finally method
|
|
26
|
-
this.telemetryData = {
|
|
27
|
-
flagsUsed: Object.keys(this.flags),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
async finally(err) {
|
|
31
|
-
const command = this.id;
|
|
32
|
-
const eventData = {
|
|
33
|
-
command,
|
|
34
|
-
$os: this.config.platform,
|
|
35
|
-
shell: this.config.shell,
|
|
36
|
-
arch: this.config.arch,
|
|
37
|
-
apifyCliVersion: this.config.version,
|
|
38
|
-
nodeJsVersion: process.version,
|
|
39
|
-
...this.telemetryData,
|
|
40
|
-
error: err ? err.message : null,
|
|
41
|
-
};
|
|
42
|
-
try {
|
|
43
|
-
eventData.installationType = detectInstallationType();
|
|
44
|
-
if (!this.telemetryData.actorLanguage && command && COMMANDS_WITHIN_ACTOR.includes(command)) {
|
|
45
|
-
const cwdProject = await useCwdProject();
|
|
46
|
-
cwdProject.inspect((project) => {
|
|
47
|
-
if (project.type === ProjectLanguage.JavaScript) {
|
|
48
|
-
eventData.actorLanguage = LANGUAGE.NODEJS;
|
|
49
|
-
eventData.actorNodejsVersion = project.runtime.version;
|
|
50
|
-
}
|
|
51
|
-
else if (project.type === ProjectLanguage.Python || project.type === ProjectLanguage.Scrapy) {
|
|
52
|
-
eventData.actorLanguage = LANGUAGE.PYTHON;
|
|
53
|
-
eventData.actorPythonVersion = project.runtime.version;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
await maybeTrackTelemetry({
|
|
58
|
-
eventName: `cli_command_${command}`,
|
|
59
|
-
eventData,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
// Ignore errors
|
|
64
|
-
}
|
|
65
|
-
return super.finally(err);
|
|
66
|
-
}
|
|
67
|
-
async printHelp(customCommand) {
|
|
68
|
-
const HelpCommand = await loadHelpClass(this.config);
|
|
69
|
-
const help = new HelpCommand(this.config);
|
|
70
|
-
await help.showHelp([customCommand ?? this.id]);
|
|
71
|
-
}
|
|
72
|
-
pluralString(amount, singular, plural) {
|
|
73
|
-
return amount === 1 ? singular : plural;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=apify_command.js.map
|