This topic was automatically generated from Slack. You can find the original thread here.
what is the use of pd dev ?
This topic was automatically generated from Slack. You can find the original thread here.
what is the use of pd dev ?
The pd dev
command is used for interactive development of Pipedream components from a local file. It deploys your local file, attaches it to a component, and watches your local file for changes. When you save changes to your local file, your component will automatically be updated on Pipedream. This makes it easier to develop and test components without manually updating them each time you make changes. To use pd dev
, run the following command: bash pd dev <filename>
For example: bash pd dev my-source.js
If you want to re-attach to an existing deployed component, you can use the --dc
flag: bash pd dev --dc <existing-deployed-component-id> <file-or-name>
You can learn more about pd dev
in the CLI reference.
it works with actions ?
Yes, the pd dev
command works with actions as well. You can use it to develop and test your Pipedream actions locally. Just like with sources, you can run the following command to start the interactive development process: bash pd dev <filename>
For example: ```
bash pd dev my-action.js
Sadly pd dev
does not work with actions right now — you’ll need to pd publish
, and either increment the version
on each publish, or you can set the version
temporarily to 0.0.{{ts}}
, which sets it to the timestamp, to make that process slightly easier.
i am reciving this url https://pipedream.com/sources/… but i don not how to attach that to my action
I apologize for the confusion earlier. If you have a URL for a Pipedream source, you’ll want to use the data from that source as a trigger in your workflow. To do this, follow these steps: 1. Create a new workflow in the Pipedream UI. 2. In the trigger section, click on “Select a trigger” and search for “Pipedream”. 3. Select the “Pipedream Source” trigger. 4. In the “Source” field, paste the URL of your Pipedream source. 5. Click “Add Source”. Now, your workflow will be triggered by events from the specified Pipedream source. You can add actions or code steps after the trigger to process the data and perform any desired actions.
Or if you open the source from the /sources page, there should be an option to “Create Workflow” from there
thankss you are awesome