Overview
This document is intended for developers who want to author and edit Pipedream Actions. After completing this quickstart, you’ll understand how to:- Develop Pipedream components
- Publish private actions and use them in workflows
- Use props to capture user input
- Update an action
- Use npm packages
- Use Pipedream managed auth for a 3rd party app
Prerequisites
- Create a free account at https://pipedream.com
- Download and install the Pipedream CLI
- Once the CLI is installed, link your Pipedream account to the CLI by running
pd loginin your terminal
NOTE: See the CLI reference for detailed usage and examples beyond those covered below.
Walkthrough
We recommend that you complete the examples below in order. hello world! (~5 minutes)- Develop a
hello world!action - Publish it (private to your account) using the Pipedream CLI
- Add it to a workflow and run it
- Capture user input using a
stringprop - Publish a new version of your action
- Update the action in your workflow
- Require the
axiosnpm package - Make a simple API request
- Export data returned by the API from your action
- Use Pipedream managed OAuth for GitHub with the
octokitnpm package - Connect your GitHub account to the action in a Pipedream workflow
- Retrieve details for a repo and return them from the action
hello world!
The following code represents a simple component that can be published as an action (learn more about the component structure). When used in a workflow, it will exporthello world! as the return value for the step.
.js file (e.g., action.js) and run the following CLI command:
action_demo. The key must be unique across all components in your account (sources and actions). If it’s not unique, the existing component with the matching key will be updated.
The CLI output should look similar to this:
- Open Pipedream in your browser
- Create a new workflow with a Schedule trigger
- Click the + button to add a step to your workflow
- Click on My Actions and then select the Action Demo action to add it to your workflow.