Complete command reference for the Freddy Streamline CLI tool. ## Installation See [CLI Installation](/docs/documentation/streamline/cli-installation) for setup instructions. ## Commands ### streamline init Initialize a new Streamline automation project. ```bash streamline init [project-name] ``` **Options:** - `--template ` - Use a project template - `--git ` - Initialize with Git repository **Example:** ```bash streamline init my-automation streamline init my-automation --template basic ``` ### streamline deploy Deploy automation to Freddy platform. ```bash streamline deploy ``` **Options:** - `--env ` - Target environment (dev, staging, production) - `--watch` - Watch for changes and auto-deploy **Example:** ```bash streamline deploy streamline deploy --env production ``` ### streamline run Run automation locally for testing. ```bash streamline run [entry-file] ``` **Options:** - `--params ` - Pass parameters as JSON - `--debug` - Enable debug mode **Example:** ```bash streamline run streamline run main.py --params '{"key":"value"}' ``` ### streamline logs View automation execution logs. ```bash streamline logs [automation-id] ``` **Options:** - `--follow` - Follow log output - `--limit ` - Limit number of log entries **Example:** ```bash streamline logs sauto_abc123 streamline logs sauto_abc123 --follow ``` ### streamline list List all automations in your organization. ```bash streamline list ``` **Options:** - `--org ` - Filter by organization **Example:** ```bash streamline list streamline list --org org_xyz789 ``` ### streamline delete Delete an automation. ```bash streamline delete ``` **Options:** - `--force` - Skip confirmation prompt **Example:** ```bash streamline delete sauto_abc123 streamline delete sauto_abc123 --force ``` ### streamline config Manage CLI configuration. ```bash streamline config [value] ``` **Example:** ```bash streamline config api_key $FREDDY_API_KEY streamline config default_org org_xyz789 ``` ### streamline help Display help information. ```bash streamline help [command] ``` **Example:** ```bash streamline help streamline help deploy ``` ## Global Options Available for all commands: - `--api-key ` - Override API key - `--verbose` - Enable verbose output - `--quiet` - Suppress non-error output - `--version` - Display CLI version ## Environment Variables - `FREDDY_API_KEY` - API authentication key - `STREAMLINE_ORG_ID` - Default organization ID - `STREAMLINE_ENV` - Default environment (dev, staging, production) ## Configuration File The CLI uses `~/.streamline/config.json` for persistent configuration: ```json { "api_key": "your-api-key", "default_org": "org_xyz789", "default_env": "production" } ``` ## Exit Codes - `0` - Success - `1` - General error - `2` - Invalid arguments - `3` - Authentication error - `4` - Network error ## Related Documentation - **[CLI Installation](/docs/documentation/streamline/cli-installation)** - Install and setup - **[Getting Started](/docs/documentation/streamline/getting-started)** - Create your first automation - **[GitHub Deployment](/docs/documentation/streamline/github-deployment)** - Deploy from GitHub - **[API Reference](/docs/api-reference/streamline/introduction)** - REST API documentation