apify-cli icon indicating copy to clipboard operation
apify-cli copied to clipboard

`apify call` to support input passing

Open mtrunkat opened this issue 1 year ago • 2 comments

Call operations needs to support the input passing. Having a CLI that can't do the main action of the platform - to run an Actor - is quite sad 😢. We could implement it as [email protected] param, as per the https://github.com/apify/actor-specs?tab=readme-ov-file#cli-5

-- From Slack.

mtrunkat avatar Feb 28 '24 15:02 mtrunkat

@vladfrangu let's first finish with the other open things, assigning you here as now you are the new CLI overlord :]

It's not a priority, I'd first like to see the input schema support in SDK, but on the other hand, it sounds like a pretty simple task.

B4nan avatar Mar 04 '24 13:03 B4nan

Hi,

I have a little +1 here. I'd love to invoke parametrized runs from the CLI the *nix way. Related to that, it would be awesome to retrieve the run ID in a machine-readable way.

I'd love to start adding badges to the README.md like the one above, but it doesn't make any sense If I can't run the Actor with custom parameters and then process the output when it's done. More examples if the apify-badger

Apify Badge

Example:

$ echo "netmilk n1k" | jo -a | jo usernames:=- | \
apify call netmilk/sherlock --save-run-id=run_id.txt && cat run_id.txt
RqSxZh0EBsiA9WGZK

netmilk avatar May 09 '24 11:05 netmilk