CLI Reference¶
All commands are invoked via python -m restful <command>.
Workspace Commands¶
workspace create¶
Create a new workspace directory with scaffold files.
Creates: config template, __main__.py, apis/, notebooks/, .restful/, .gitignore.
workspace info¶
Display current workspace configuration and API connections.
workspace vars set¶
Set a workspace variable.
workspace vars list¶
List all workspace variables. Values longer than 60 characters are truncated.
workspace vars delete¶
Delete a workspace variable.
Plugin Commands¶
plugin list¶
List all available plugins (built-in and registered).
plugin validate¶
Validate plugin configuration and source files without generating code.
python -m restful plugin validate # all APIs
python -m restful plugin validate -n sfm # specific API by alias
plugin load¶
Parse source files and generate endpoint modules.
python -m restful plugin load # all APIs
python -m restful plugin load -n sfm # specific API by alias
Output: apis/<sanitized_name>/endpoints.py
Workflow Commands¶
workflow list¶
List all workflow files in the notebooks/ directory.
workflow run¶
Run a workflow or individual stage.
python -m restful workflow run my_flow # all stages
python -m restful workflow run my_flow --stage "Fetch" # single stage
python -m restful workflow run my_flow --list # list stages only
python -m restful workflow run my_flow --resume # resume from last failed stage
--resume¶
Resume a workflow from the last failed or incomplete stage. The runner reads .restful/variables.json to determine which stages completed, then skips them and starts execution from the next stage.