Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apify-cli

Package Overview
Dependencies
Maintainers
5
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apify-cli

Command line client for Apify.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
893
decreased by-24.06%
Maintainers
5
Weekly downloads
 
Created
Source

Apify command line client (Apify CLI)

Apify command client helps you to create and deploy Apify Actor acts.

Usage

To get started with Apify command line client, first make sure you have Node.js (v7.10.x and higher) installed.

Then install Apify CLI with:

npm -g install apify-cli

Commands

apify help [COMMAND]

This prints help for specified command.

  • Arguments
ArgumentRequiredExample valueDescription
COMMANDinitThe command for which help will be print.

apify login

This is an interactive prompt which authenticates you with Apify. All tokens and keys will store ~/.apify. NOTE: If you set up token options, prompt will skip

  • Options
OptionRequiredExample valueDescription
-t, --token6g5Nfz9zHt7k9UbYour API token on Apify. You can find it on you Apify accout.

apify logout

Deletes all your stored tokens and keys from ~/.apify. NOTE: This deletes all your global settings.

apify call [ACTID]

This runs your act on Apify and fetches results from output.

  • Arguments
ArgumentRequiredExample valueDescription
ACTID9h6Gfd87jg6ZGsbAct ID of calling act. It overrides actId in apify.json.
  • Options
OptionRequiredExample valueDescription
-b, --build1.2.3Tag or number of the build to run (e.g. latest or 1.2.34).
-m, --memory1024Amount of memory allocated for the act run, in megabytes.
-t, --timeout300Timeout for the act run in seconds. Zero value means there is no timeout.

apify create ACTNAME

This creates directory with proper structure for local development.

  • Arguments
ArgumentRequiredExample valueDescription
ACTNAME*my-act-nameAct name of act you want to create.
  • Options
OptionRequiredExample valueDescription
-t, --templatebasicAct template, if not pass it'll prompt from the console.

apify init [ACTNAME]

This asks you for your the act name, writes apify.json and creates apify_local folder structure for local development.

  • Arguments
ArgumentRequiredExample valueDescription
ACTNAMEmy-act-nameAct name of act you want to init. If not set it will prompt.

apify push [ACTID]

This uploads act from the current directory to Apify and builds it. If exists apify.json in the directory it takes options from there. You can override these with options below.

  • Arguments
ArgumentRequiredExample valueDescription
ACTID9h6Gfd87jg6ZGsbAct ID of act you want to push. It overrides actId in apify.json.
  • Options
OptionRequiredExample valueDescription
-b, --build-taglatestBuild tag of pushing act version.
-v, --version-number0.1Version number of pushing act version.

apify run

This runs act from current directory. It uses apify_local for getting input and setting output and storing data.

apify --version

This prints version of your command line client.

Keywords

FAQs

Package last updated on 27 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc