The Flatfile CLI provides a suite of tools to help you develop and deploy Listeners to Flatfile. Listeners are at the core of the Flatfile ecosystem, they are responsible for picking up on Events and responding to them accordingly.Documentation Index
Fetch the complete documentation index at: https://flatfileinc-docs-update-8de3b114-e6aa-4417-a753-2ecef733a0d.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
- 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.