Skip to main content
Solved

How to publish a workspace to a FME Server through command line?

  • July 27, 2017
  • 1 reply
  • 49 views

Forum|alt.badge.img

Hi,

I have multiple workspace files and publishing them to our FME Server is demanding too much time. Is it possible to published them through the command line or python? If so, how?

Thanks

Best answer by david_r

You can use the FME Server REST API to publish workspaces, there's an example under the heading "Publishing a workspace to a repository" here: http://playground.fmeserver.com/using-the-rest-api/workspaces/

You can use either the HTTPCaller or a Python script to access the API.

(If you go the Python route, I'd heartily recommend using the requests module, it is amazing for working with REST interfaces)

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • Best Answer
  • July 27, 2017

You can use the FME Server REST API to publish workspaces, there's an example under the heading "Publishing a workspace to a repository" here: http://playground.fmeserver.com/using-the-rest-api/workspaces/

You can use either the HTTPCaller or a Python script to access the API.

(If you go the Python route, I'd heartily recommend using the requests module, it is amazing for working with REST interfaces)