The DevXP engineering team hosts office hours every Thursday at 11 a.m.
Pacific Time where we answer your questions live and help you get up and
running with Flatfile. Join
us!
Agents are listeners deployed server-side on Flatfile’s secure cloud.
Commands
The Flatfile CLI provides the following commands:Command | Description |
---|---|
develop | Run your project as a local listener |
deploy | Deploy your project as a Flatfile Agent |
list | List deployed Agents in an environment |
download | Download an agent from your environment |
delete | Delete an Agent |
Before You Begin
You can add a.env
file to bypass having to enter your API Key when running
the develop command.
Develop
Runnpx flatfile develop
from terminal to launch a local listener. As your
code changes, file changes are detected and will be reflected immediately.
Add the file name to the command:
npx flatfile develop path-to-file
if
you’re not running an index file.- In your terminal, you’ll see a detailed log of each HTTP request made within a listener. It includes the request timing and status, enabling tracking and debugging of HTTP operations.
- A pub/sub stream system will deliver Events with a latency of approximately 10-50ms. This provides a local development experience closely resembling the production environment speed.
- Events that are being processed will be shown, along with their respective handlers. You can then respond to those Events accordingly.