I would like to be able to interact with n8n via API using the CLI. I can’t seem to find any cli-only package that I can install on my MacOs tnat would allow me to talk with a remote n8n API.
n8n is the server. I’m talking about the client to talk with the (remote) server and the n8n local command is the interface that talks with that API instead of using curl and parameters to it.
I don’t think it’s possible to do with n8n. The API there is very specific and there is no significant improvement in implementing a CLI wrapper for it.
I can’t imagine any use cases where it will be useful because you can automate anything you want within the workflows. There is no need to call the CLI at all. Moreover, you don’t have access to it on the cloud instance.
I can’t imagine any use cases where it will be useful because you can automate anything you want within the workflows. There is no need to call the CLI at all. Moreover, you don’t have access to it on the cloud instance.
There are plenty usecases. Any method that is in the API is a usecase:
list workflows
trigger a workflow from the command line
show last workflow status
etc.
Moreover, you don’t have access to it on the cloud instance.
You can export workflows to see them (it’s pretty the same output, as you get via API). But what is the use case? What are you going to do with the list?
No way. It’s not possible to run a workflow via API/CLI. Only via UI. However, you can enable/disable workflows via APi/CLI, but that’s a very rare scenario when you need to disable a workflow which raises OOM or any issue that prevents access to the UI.