inngest-cli 0.8.0-beta → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +33 -39
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,9 +5,11 @@
5
5
  ![Discord](https://img.shields.io/discord/842170679536517141?label=discord)
6
6
  ![Twitter Follow](https://img.shields.io/twitter/follow/inngest?style=social)
7
7
 
8
- Inngest is an open-source, event-driven platform which makes it easy for developers to build, test, and deploy serverless functions without worrying about infrastructure, queues, or stateful services.
8
+ Run reliable serverless functions in the background. Inngest allows you to schedule, enqueue, and run serverless functions in the background reliably with retries on any platform, with zero infrastructure, fully locally testable. Learn more: https://www.inngest.com.
9
+
10
+
11
+ <br />
9
12
 
10
- Using Inngest, you can write and deploy serverless step functions which are triggered by events without writing any boilerplate code or infra. Learn more at https://www.inngest.com.
11
13
 
12
14
  - [Overview](#overview)
13
15
  - [Quick Start](#quick-start)
@@ -16,6 +18,12 @@ Using Inngest, you can write and deploy serverless step functions which are trig
16
18
 
17
19
  <br />
18
20
 
21
+ The local development UI:
22
+
23
+ ![DevUI](https://user-images.githubusercontent.com/306177/204876780-d97eec85-53e2-4fca-81ce-cae45d56c319.png)
24
+
25
+ <br />
26
+
19
27
  ## Overview
20
28
 
21
29
  Inngest makes it simple for you to write delayed or background jobs by triggering functions from events — decoupling your code from your application.
@@ -38,46 +46,32 @@ We created Inngest to bring the benefits of event-driven systems to all develope
38
46
 
39
47
  ## Quick Start
40
48
 
41
- 1. Install the Inngest CLI to get started:
42
-
43
- ```bash
44
- curl -sfL https://cli.inngest.com/install.sh | sh \
45
- && sudo mv ./inngest /usr/local/bin/inngest
46
- # or via npm
47
- npm install -g inngest-cli
48
- ```
49
-
50
- 2. Create a new function. It will prompt you to select a programming language and what event will trigger your function. Optionally use the `--trigger` flag to specify the event name:
51
-
52
- ```shell
53
- inngest init --trigger demo/event.sent
54
- ```
55
-
56
- 3. Run your new hello world function with dummy data:
57
-
58
- ```shell
59
- inngest run
60
- ```
61
-
62
- 4. Run the Inngest DevServer. This starts a local "Event API" which can receive events. When events are received, functions with matching triggers will automatically be run. Optionally use the `-p` flag to specify the port for the Event API.
63
-
64
- ```shell
65
- inngest dev -p 9999
66
- ```
67
-
68
- 5. Send events to the DevServer. Send right from your application using HTTP + JSON or simply, as a curl with a dummy key of `KEY`.
69
-
70
- ```shell
71
- curl -X POST --data '{"name":"demo/event.sent","data":{"test":true}}' http://127.0.0.1:9999/e/KEY
49
+ 1. [NPM install our SDK for your typescript project](https://github.com/inngest/inngest-js): `npm install inngest`
50
+ 2. Run the Inngest dev server: `npx inngest@latest dev`. That's _this_ cli.
51
+ 3. [Integrate Inngest with your framework in one line](https://www.inngest.com/docs/frameworks/nextjs) via the `serve() handler`
52
+ 4. [Write and run functions in your existing framework or project](https://www.inngest.com/docs/functions)
53
+
54
+ Here's an example:
55
+
56
+ ```js
57
+ import { createStepFunction } from "inngest";
58
+
59
+ // This function runs on any platform in the background with retries any time
60
+ // the app/user.signup event is received - automatically.
61
+ export const signupFlow = createStepFunction("post-signup", "app/user.signup",
62
+ function ({ event, tools }) {
63
+ // Send the user an email
64
+ tools.run("Send an email", async () => {
65
+ await sendEmail({
66
+ email: event.user.email,
67
+ template: "welcome",
68
+ })
69
+ })
70
+ })
72
71
  ```
73
72
 
74
- That's it - your hello world function should run automatically! When you `inngest deploy` your function to Inngest Cloud or your self-hosted Inngest. Here are some more resources to get you going:
75
73
 
76
- - [Full Quick Start Guide](https://www.inngest.com/docs/quick-start?ref=github)
77
- - [Function arguments & responses](https://www.inngest.com/docs/functions/function-input-and-output?ref=github)
78
- - [Sending Events to Inngest](https://www.inngest.com/docs/event-format-and-structure?ref=github)
79
- - [Inngest Cloud: Managing Secrets](https://www.inngest.com/docs/cloud/managing-secrets?ref=github)
80
- - [Self-hosting Inngest](https://www.inngest.com/docs/self-hosting?ref=github)
74
+ That's it - your function is set up!
81
75
 
82
76
  <br />
83
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inngest-cli",
3
- "version": "0.8.0-beta",
3
+ "version": "0.8.2",
4
4
  "description": "The event-driven queue for any language.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {