Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/COMMAND_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ workato workspace
workato init # Initialize CLI configuration
workato workspace # Show current workspace info
workato pull # Pull latest from remote
workato push [--restart-recipes] # Push local changes
workato push [--restart-recipes] # Push local changes (recipes won't restart by default)
```

### Recipe Management
Expand Down Expand Up @@ -86,7 +86,7 @@ workato init # Creates profile interactively

# Development
workato recipes validate --path ./recipe.json
workato push --restart-recipes
workato push --restart-recipes # Only restarts running recipes that were updated
workato recipes list --running

# Switch environments
Expand Down Expand Up @@ -117,7 +117,7 @@ workato connections get-oauth-url --id 789

## Environment Support

**Trial Accounts:** Use `wrkatrial-` tokens with `https://app.trial.workato.com/api`
**Trial Accounts:** Use `wrkatrial-` tokens with `https://app.trial.workato.com/api`

**Production Accounts:** Use `wrkprod-` tokens with `https://www.workato.com/api`

Expand Down
6 changes: 3 additions & 3 deletions docs/USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Build and validate integration recipes locally before deployment to avoid produc
#### Commands
```bash
workato recipes validate --path ./recipes/salesforce-sync.json
workato push --restart-recipes
workato push --restart-recipes # Only restarts running recipes that were updated
```

### Multi-Environment Management
Expand All @@ -35,7 +35,7 @@ workato push
# Staging
workato profiles use staging
workato pull
workato push --restart-recipes
workato push --restart-recipes # Only restarts running recipes that were updated

# Production
workato profiles use production
Expand Down Expand Up @@ -75,7 +75,7 @@ Automate recipe deployment as part of build and release pipelines.
```bash
# In CI pipeline
workato recipes validate --path ./recipes/*.json
workato push --restart-recipes --include-tags
workato push --restart-recipes --include-tags # Only restarts running recipes that were updated
```

### Recipe Lifecycle Management
Expand Down
8 changes: 6 additions & 2 deletions src/workato_platform_cli/cli/commands/push/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@

@click.command()
@click.option(
"--restart-recipes", is_flag=True, default=True, help="Restart recipes after import"
"--restart-recipes",
is_flag=True,
default=False,
help="Allow restarting of running recipes that are updated during import. "
"Stopped recipes will remain stopped.",
)
@click.option(
"--include-tags", is_flag=True, default=True, help="Include tags in import"
)
@inject
@handle_api_exceptions
async def push(
restart_recipes: bool = True,
restart_recipes: bool = False,
include_tags: bool = True,
config_manager: ConfigManager = Provide[Container.config_manager],
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/commands/push/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def fake_upload(**kwargs: object) -> None:
assert upload_mock.await_count == 1
call_kwargs = upload_calls[0]
assert call_kwargs["folder_id"] == 777
assert call_kwargs["restart_recipes"] is True
assert call_kwargs["restart_recipes"] is False
assert call_kwargs["include_tags"] is True
assert not (tmp_path / "demo.zip").exists()
assert any("Package created" in line for line in capture_echo)
Expand Down