apify/apify-cli

Release 0.6.8 with PoC shell commands

mnmkng opened this issue · 3 comments

  • Update Oclif and packages
  • Add actor namespace
  • Add actor get-value command
  • Add actor get-input command
  • Add actor set-value command
  • Add actor push-data command

Notes:

Projects to fork:

apify actor:get-input fails with:

Error: Expected `id` to be of type `string` but received type `undefined`

At first I thought it was because it needed apify init -y first, but it did not help.

const isRunningOnApify = !process.env[ENV_VARS.LOCAL_STORAGE_DIR];

We should probably use IS_AT_HOME to check if we're running on Apify. When you run locally and you don't set the local storage env var, the above error shows. apify run sets this automatically, so it was a bit of a surprise, but we should still figure out a better way of managing this local/remote environment. The env vars are super confusing even for long time SDK users.