### Install Lindo CLI Source: https://context7.com/lindoai/lindoai-cli/llms.txt Install the Lindo CLI globally using npm, yarn, or pnpm. After installation, authenticate using `lindo login` or set the API key manually. ```bash npm install -g @lindo/cli # or yarn global add @lindo/cli # or pnpm add -g @lindo/cli # Authenticate via browser (recommended) lindo login # Or set API key manually lindo config set apiKey sk-your-api-key-here # Verify configuration lindo config list # Output: # apiKey sk-y****here # baseUrl https://api.lindo.ai # configFile /home/user/.lindo/config.json ``` -------------------------------- ### Launch Lindo AI Agent with OpenCode Source: https://context7.com/lindoai/lindoai-cli/llms.txt Installs a skill file for the OpenCode AI agent framework and launches OpenCode, allowing AI to interact with the Lindo API via the CLI. Use `--install` to automatically install OpenCode if it's not present. ```bash # Check if OpenCode is installed and launch agent lindo agent ``` ```bash # Install OpenCode automatically if not present, then launch lindo agent --install ``` ```bash # Launch agent with a specific model lindo agent --model gpt-4o ``` ```bash # Error when OpenCode is not installed lindo agent ``` ```bash # ✗ OpenCode is not installed # ℹ To install OpenCode, run one of the following: # ℹ lindoai agent --install # ℹ npm install -g opencode-ai@latest ``` -------------------------------- ### Install @lindo/cli Globally Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Install the CLI tool globally using npm, yarn, or pnpm for command-line access. ```bash npm install -g @lindo/cli ``` ```bash yarn global add @lindo/cli ``` ```bash pnpm add -g @lindo/cli ``` -------------------------------- ### Start a Workflow Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Initiate a workflow with optional parameters provided as a JSON string. ```bash lindo workflows start publish-page --params '{"page_id": "page-123"}' ``` -------------------------------- ### Get Workspace Credits Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Check your available credits in the Lindo workspace. ```bash lindo workspace credits ``` -------------------------------- ### Handle API Key Not Configured Error Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Example of an error message when the API key is not configured. Provides instructions on how to set it. ```bash $ lindo agents run my-agent ✗ API key not configured ℹ Run: lindo config set apiKey ℹ Or set the LINDO_API_KEY environment variable ``` -------------------------------- ### Get blog details Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieves the details of a specific blog post. ```bash # Get blog details lindo blogs get --website ws-abc123 --id blog-001 ``` -------------------------------- ### List All Websites Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve a paginated list of all websites within your workspace. Use the `--search` flag to filter results, for example, by website name. ```bash lindo websites list --page 1 --search "portfolio" ``` -------------------------------- ### Get Configuration Value Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve a specific configuration value, such as the API key. ```bash lindo config get apiKey ``` -------------------------------- ### Lindo CLI Configuration Commands Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Reference for managing CLI configuration. Supports setting, getting, listing, and showing the config file path. ```bash lindo config set ``` ```bash lindo config get ``` ```bash lindo config list ``` ```bash lindo config path ``` -------------------------------- ### Edit a blog with background live preview Source: https://context7.com/lindoai/lindoai-cli/llms.txt Edits an existing blog post and starts a background live-reload preview server. Changes to the specified HTML file are reflected in the browser, and the server runs without blocking the terminal. ```bash # Edit a blog with live preview (background mode) lindo blogs edit ws-abc123 blog-001 --file ./blog.html --background # ✓ HTML saved to /home/user/project/blog.html # ✓ Preview server started in background # URL: http://127.0.0.1:52343/ ``` -------------------------------- ### Get a specific page Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieves details of a specific page in JSON format. ```bash # Get a specific page lindo pages get --website ws-abc123 --id page-001 --format json ``` -------------------------------- ### Get Credits for a Specific Client Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve credit information for a particular client associated with your workspace. ```bash lindo workspace client-credits --client client-456 ``` -------------------------------- ### Get Workspace Credits as JSON Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve your workspace credit balance and format the output as JSON. ```bash lindo workspace credits --format json ``` -------------------------------- ### Setup Whitelabel Settings for Workspace Source: https://context7.com/lindoai/lindoai-cli/llms.txt Configure whitelabel settings for your workspace, including a custom domain, subdomain domain, email sender, and registration enablement. Ensure DNS records are correctly configured for the specified domain. ```bash lindo workspace whitelabel \ --domain app.example.com \ --subdomain-domain example.com \ --email-sender noreply@example.com \ --enable-register # ✓ Whitelabel settings updated ``` -------------------------------- ### Configure Lindo CLI Settings Source: https://context7.com/lindoai/lindoai-cli/llms.txt Manage Lindo CLI configuration settings, including API key and base URL. Environment variables take precedence. Use `get` to retrieve values and `list` to view all settings. ```bash # Set the API key lindo config set apiKey sk-your-api-key-here # ✓ Configuration saved: apiKey # Set a custom API base URL lindo config set baseUrl https://custom-api.example.com # ✓ Configuration saved: baseUrl # Get a single value (masked for apiKey) lindo config get apiKey # apiKey: sk-y****here # Get a value as JSON lindo config get baseUrl --format json # { "key": "baseUrl", "value": "https://api.lindo.ai" } # List all configuration lindo config list # Show config file path lindo config path # /home/user/.lindo/config.json ``` -------------------------------- ### Get Workspace Details Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve detailed information about your Lindo workspace. The `--format json` flag outputs the details in JSON format. ```bash lindo workspace get --format json ``` -------------------------------- ### Edit an existing page with foreground live preview Source: https://context7.com/lindoai/lindoai-cli/llms.txt Edits an existing page by downloading its HTML, starting a foreground live-reload preview server, and reflecting local file changes in the browser. Press Ctrl+C to stop the server. ```bash # Edit an existing page with foreground live preview lindo pages edit ws-abc123 page-001 --file ./page.html # ℹ Fetching page HTML... # ✓ HTML saved to /home/user/project/page.html # ℹ Starting preview server... # ✓ Preview server started # URL: http://127.0.0.1:52342/ # ℹ Press Ctrl+C to stop the server ``` -------------------------------- ### Get Website Analytics as JSON Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve website analytics data and format the output as JSON. ```bash lindo analytics website --format json ``` -------------------------------- ### Handle Authentication Failed Error Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Illustrates the error message for authentication failure, guiding the user to configure or obtain an API key. ```bash ✗ Authentication failed ℹ Your API key may be invalid or expired. ℹ ℹ To configure your API key: ℹ 1. Run: lindo config set apiKey ℹ 2. Or set the LINDO_API_KEY environment variable ℹ ℹ To get an API key: ℹ Visit https://app.lindo.ai/settings/api-keys ``` -------------------------------- ### Lindo Workflows Command Reference Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Reference for managing workflows, including starting, checking status, pausing, resuming, and terminating instances. ```bash lindo workflows start [options] ``` ```bash lindo workflows status [options] ``` ```bash lindo workflows pause [options] ``` ```bash lindo workflows resume [options] ``` ```bash lindo workflows terminate [options] ``` -------------------------------- ### Get Workflow Status as JSON Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve the status of a workflow instance and format the output as JSON. ```bash lindo workflows status instance-123 --format json ``` -------------------------------- ### Get Website Details Source: https://context7.com/lindoai/lindoai-cli/llms.txt Fetch detailed information about a specific website using its ID. The `--format json` option returns the data in JSON format. ```bash lindo websites get --id ws-abc123 --format json ``` -------------------------------- ### Get Workflow Status Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve the status of a specific workflow instance using its ID. ```bash lindo workflows status instance-123 ``` -------------------------------- ### Display JSON Output Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Use the `--format json` flag to get machine-readable JSON output, suitable for scripting and automation. ```json { "workspace_id": "ws-123", "balance": 1000, "allocated": 5000, "used": 4000 } ``` -------------------------------- ### Get Workspace Analytics Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Retrieve workspace analytics data. You can specify a date range using --from and --to flags. ```bash lindo analytics workspace --from 2024-01-01 --to 2024-01-31 ``` -------------------------------- ### Get Analytics for a Specific Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve analytics data for an individual website by specifying its website ID. ```bash lindo analytics website --website ws-abc123 ``` -------------------------------- ### Edit a page in background live preview mode Source: https://context7.com/lindoai/lindoai-cli/llms.txt Edits an existing page and starts a live-reload preview server in the background, keeping the terminal free for other tasks. ```bash # Edit in background mode (keeps terminal free) lindo pages edit ws-abc123 page-001 --background ``` -------------------------------- ### Get Workspace Credit Balance Source: https://context7.com/lindoai/lindoai-cli/llms.txt Check your current credit balance within the workspace. This includes the available balance, allocated credits, and used credits. ```bash lindo workspace credits # workspace_id ws-123 # balance 1000 # allocated 5000 # used 4000 ``` -------------------------------- ### Get Workspace Analytics Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve aggregated analytics data for your entire workspace. By default, this command fetches data for the last 30 days. ```bash lindo analytics workspace ``` -------------------------------- ### Manage Lindo Workflows Source: https://context7.com/lindoai/lindoai-cli/llms.txt Control Lindo workflow instances, including starting, monitoring status, pausing, resuming, and terminating. Also supports batch creation of websites and pages. ```bash # Start a workflow with parameters lindo workflows start publish-page --params '{"page_id": "page-abc123"}' # ℹ Starting workflow: publish-page # ✓ Workflow started: instance-xyz789 # Get workflow instance status lindo workflows status instance-xyz789 # instance_id instance-xyz789 # status running # started_at 2024-01-15T10:00:00Z # Pause a running workflow lindo workflows pause instance-xyz789 # ✓ Workflow paused # Resume a paused workflow lindo workflows resume instance-xyz789 # ✓ Workflow resumed # Terminate a workflow lindo workflows terminate instance-xyz789 # ✓ Workflow terminated # List workflow logs with filters lindo workflows list --status running --limit 10 --format json # Batch create websites (pass JSON array file or inline JSON) lindo workflows batch-create-websites '[{"prompt":"Tech startup"},{"prompt":"Restaurant"}]' # ℹ Starting batch of 2 websites… # ✓ Batch accepted: 2 succeeded, 0 failed of 2. # Batch create pages on a website lindo workflows batch-create-pages ws-123 '[{"prompt":"About Us"},{"prompt":"Contact"}]' ``` -------------------------------- ### Website Management Source: https://context7.com/lindoai/lindoai-cli/llms.txt List, get, create, update, delete, and configure websites. Manage custom domains, integrations, and team members per website. ```APIDOC ## `lindo websites list` — List all websites ### Description Lists all websites within the workspace, with optional search and pagination. ### Method GET ### Endpoint /websites ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **search** (string) - Optional - A search term to filter websites. ## `lindo websites get` — Get website details ### Description Retrieves the details of a specific website. ### Method GET ### Endpoint /websites/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **format** (string) - Optional - Specifies the output format, e.g., `json`. ## `lindo websites update` — Update a website ### Description Updates the name and activation status of a website. ### Method PUT ### Endpoint /websites/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **name** (string) - Optional - The new name for the website. - **activate** (boolean) - Optional - Set to `true` to activate the website. ## `lindo websites settings` — Update website settings ### Description Updates various settings for a website, including name, language, and description. ### Method PUT ### Endpoint /websites/{id}/settings ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **name** (string) - Optional - The new name for the website. - **language** (string) - Optional - The language of the website. - **description** (string) - Optional - A description for the website. ## `lindo websites delete` — Delete a website ### Description Deletes a website from the workspace. ### Method DELETE ### Endpoint /websites/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website to delete. ## `lindo websites assign` — Assign a website to a client ### Description Assigns a website to a specific client. ### Method POST ### Endpoint /websites/{website}/assign ### Parameters #### Path Parameters - **website** (string) - Required - The ID of the website. #### Query Parameters - **client** (string) - Required - The ID of the client to assign the website to. ## `lindo websites domain-add` — Add a custom domain ### Description Adds a custom domain to a website. Returns DNS records that need to be configured. ### Method POST ### Endpoint /websites/{id}/domains ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **domain** (string) - Required - The custom domain name. ## `lindo websites domain-remove` — Remove a custom domain ### Description Removes a custom domain from a website. ### Method DELETE ### Endpoint /websites/{id}/domains ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **domain** (string) - Required - The custom domain name to remove. ## `lindo websites integration-add` — Add an integration to a website ### Description Adds an integration to a specific website. ### Method POST ### Endpoint /websites/{id}/integrations ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **type** (string) - Required - The type of integration (e.g., `matomo`). - **config** (string) - Required - A JSON string containing the integration configuration. ## `lindo websites team-add` — Add a team member to a website ### Description Adds a team member to a specific website with a designated role. ### Method POST ### Endpoint /websites/{id}/team ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **email** (string) - Required - The email address of the team member. - **role** (string) - Required - The role of the team member (e.g., `Editor`). ## `lindo websites team-remove` — Remove a team member from a website ### Description Removes a team member from a specific website. ### Method DELETE ### Endpoint /websites/{id}/team ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the website. #### Query Parameters - **member** (string) - Required - The ID of the team member to remove. ``` -------------------------------- ### Get Workspace Analytics for Specific Date Range Source: https://context7.com/lindoai/lindoai-cli/llms.txt Fetch workspace analytics for a defined period using the `--from` and `--to` flags. The `--format json` flag provides the output in JSON. ```bash lindo analytics workspace --from 2024-01-01 --to 2024-01-31 --format json # { # "total_visits": 12450, # "unique_visitors": 8320, # "page_views": 34100 # } ``` -------------------------------- ### Create a new empty page with live preview Source: https://context7.com/lindoai/lindoai-cli/llms.txt Creates a new empty page using a starter template and initiates a live-reload preview server in the background. Changes to the specified HTML file are reflected in the browser. Use `lindo pages update` to save changes. ```bash # Create a new empty page with starter template and live preview lindo pages create-empty ws-abc123 /about-us \ --title "About Us" \ --file ./about.html \ --background # ✓ Page created: page-new-001 # ✓ Preview server started in background # URL: http://127.0.0.1:52341/ # ℹ To save changes: lindo pages update ws-abc123 page-new-001 --html-file ./about.html ``` -------------------------------- ### Create a New Client Source: https://context7.com/lindoai/lindoai-cli/llms.txt Register a new client in your workspace by providing their email address and optionally setting a website limit. A unique client ID will be generated upon creation. ```bash lindo clients create --email newclient@example.com --limit 10 # ✓ Client created: client-xyz ``` -------------------------------- ### List All Configuration Values Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Display all currently set configuration values for the CLI. ```bash lindo config list ``` -------------------------------- ### Create a blog from a Markdown file Source: https://context7.com/lindoai/lindoai-cli/llms.txt Creates a new blog post from a Markdown file, including frontmatter for metadata such as title, description, author, and date. The content is published to the specified path. ```markdown --- title: Getting Started with AI description: A beginner guide to AI tools image: https://cdn.ln-cdn.com/c/site/images/ai-cover.jpg author: Jane Doe excerpt: Learn how to use AI tools effectively category: Technology date: January 15, 2025 --- Your markdown content here... ``` ```bash # Create a blog from a Markdown file with frontmatter # File: post.md lindo blogs create ws-abc123 /blog/getting-started-with-ai --md-file post.md # ✓ Blog created successfully # Blog ID: blog-new-001 # Published URL: https://mysite.com/blog/getting-started-with-ai ``` -------------------------------- ### List All Clients Source: https://context7.com/lindoai/lindoai-cli/llms.txt Display a paginated list of all clients within your workspace. You can use the `--search` flag to filter clients by name or other criteria. ```bash lindo clients list --page 1 --search "acme" # Clients: # -------- # ID: client-abc # Email: acme@example.com # Website Limit: 5 # Suspended: false ``` -------------------------------- ### Assign Website to Client Source: https://context7.com/lindoai/lindoai-cli/llms.txt Associate an existing website with a specific client by providing both the website ID and the client ID. ```bash lindo websites assign --website ws-abc123 --client client-xyz # ✓ Website assigned to client ``` -------------------------------- ### Show Config File Path Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Display the absolute path to the CLI configuration file. ```bash lindo config path ``` -------------------------------- ### Create pages from a folder of HTML files Source: https://context7.com/lindoai/lindoai-cli/llms.txt Creates multiple pages by importing HTML files from a specified folder. A path prefix can be applied to all imported pages. ```bash lindo pages create-with-content ws-abc123 ./html-export --path-prefix /blog ``` -------------------------------- ### List blogs for a website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Lists blog posts for a given website, with the output formatted as JSON. ```bash # List blogs for a website lindo blogs list --website ws-abc123 --format json ``` -------------------------------- ### Run Tests Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Command to execute the project's test suite. Essential for verifying functionality. ```bash # Run tests pnpm test ``` -------------------------------- ### Add an Integration to a Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Integrate third-party services, such as analytics platforms, with your website. The `--config` parameter takes a JSON string with service-specific details. ```bash lindo websites integration-add \ --id ws-abc123 \ --type matomo \ --config '{"site_id":"3","url":"https://analytics.mysite.com"}' # ✓ Integration added ``` -------------------------------- ### Add a Custom Domain to Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Configure a custom domain for your website. The command output will provide the necessary DNS records (CNAME and A records) that need to be set up with your domain registrar. ```bash lindo websites domain-add --id ws-abc123 --domain mysite.com # ✓ Domain added # DNS Records to configure: # CNAME www -> proxy.lindo.ai # A @ -> 1.2.3.4 ``` -------------------------------- ### Browser-based Authentication with Lindo CLI Source: https://context7.com/lindoai/lindoai-cli/llms.txt Initiate browser-based authentication for the Lindo CLI. This opens a browser window for authorization and saves the API key to the config file. Use `--no-browser` for headless environments. ```bash # Interactive browser login (opens https://app.lindo.ai/cli/authorize?...) lindo login # Headless login — prints the URL instead of opening a browser lindo login --no-browser # ℹ Please open this URL in your browser: # https://app.lindo.ai/cli/authorize?state=abc123&callback_url=http://127.0.0.1:52341/callback # Login with a custom timeout lindo login --timeout 60 # ℹ Waiting for authorization (timeout: 60s)... # ✓ Successfully authenticated! # ℹ API key saved to: /home/user/.lindo/config.json ``` -------------------------------- ### Create pages from a folder of HTML files (dry run) Source: https://context7.com/lindoai/lindoai-cli/llms.txt Performs a dry run for bulk importing pages from a folder of HTML files. It shows which pages would be created and their corresponding paths without actually creating them. This is useful for verifying the import configuration. ```bash # Create pages from a folder of HTML files (bulk import) lindo pages create-with-content ws-abc123 ./html-export \ --path-prefix /blog \ --dry-run # Dry run - would create: # index.html → /blog/ # post-one.html → /blog/post-one ``` -------------------------------- ### Batch Upload Media Files Source: https://context7.com/lindoai/lindoai-cli/llms.txt Upload multiple media files (up to 20) in a single command. This is efficient for uploading collections of assets. ```bash lindo media upload-batch ws-abc123 \ ./images/hero.png ./images/team.jpg ./fonts/brand.woff2 ``` -------------------------------- ### List pages for a website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Lists pages for a given website, with an option to search by name. ```bash # List pages for a website lindo pages list --website ws-abc123 --search "about" ``` -------------------------------- ### Lindo Agents Command Reference Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Reference for running AI agents. Supports input, streaming, and output formatting. ```bash lindo agents run [options] ``` -------------------------------- ### Client Management Source: https://context7.com/lindoai/lindoai-cli/llms.txt Create, list, update, and delete workspace clients. Generate magic links for passwordless client authentication. ```APIDOC ## `lindo clients list` — List all clients ### Description Lists all clients associated with the workspace, with optional search and pagination. ### Method GET ### Endpoint /clients ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **search** (string) - Optional - A search term to filter clients. ## `lindo clients create` — Create a new client ### Description Creates a new client for the workspace. ### Method POST ### Endpoint /clients ### Parameters #### Query Parameters - **email** (string) - Required - The email address of the new client. - **limit** (integer) - Optional - The website limit for the new client. ## `lindo clients update` — Update a client ### Description Updates an existing client's information. ### Method PUT ### Endpoint /clients ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the client to update. - **limit** (integer) - Optional - The new website limit for the client. - **suspend** (boolean) - Optional - Set to `true` to suspend the client. - **unsuspend** (boolean) - Optional - Set to `true` to unsuspend the client. ## `lindo clients delete` — Delete a client ### Description Deletes a client from the workspace. ### Method DELETE ### Endpoint /clients ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the client to delete. ## `lindo clients magic-link` — Create a magic link ### Description Generates a magic link for passwordless authentication for a client. ### Method POST ### Endpoint /clients/magic-link ### Parameters #### Query Parameters - **email** (string) - Required - The email address of the client. - **format** (string) - Optional - Specifies the output format, e.g., `json`. ``` -------------------------------- ### Build the CLI Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Command to build the LindoAI CLI project. Typically used during development. ```bash # Build the CLI pnpm build ``` -------------------------------- ### Check Status of Website-Creation Workflow Source: https://context7.com/lindoai/lindoai-cli/llms.txt Use this command to check the current status of a website-creation workflow. The output provides a status message and a description of the current step. ```bash lindo workflows status-website record-abc # ℹ Status: processing — Generating website content... ``` -------------------------------- ### Create a blog with CLI flags overriding frontmatter Source: https://context7.com/lindoai/lindoai-cli/llms.txt Creates a blog post from a Markdown file, allowing CLI flags to override metadata defined in the file's frontmatter. This provides flexibility in setting specific attributes like title, author, and excerpt during creation. ```bash # Create with CLI flags overriding frontmatter lindo blogs create ws-abc123 /blog/my-post \ --md-file post.md \ --title "My Updated Title" \ --author "John Smith" \ --excerpt "A short summary" \ --social-image "https://cdn.ln-cdn.com/c/site/images/cover.jpg" \ --category "Tech" \ --read-time "5 min read" ``` -------------------------------- ### Update a blog from a Markdown file Source: https://context7.com/lindoai/lindoai-cli/llms.txt Updates an existing blog post using content and metadata from a Markdown file. This command merges the new content with the existing blog post, updating metadata if present in the frontmatter. ```bash # Update a blog from Markdown (merges with existing metadata) lindo blogs update ws-abc123 blog-001 --md-file post.md ``` -------------------------------- ### Publish a blog Source: https://context7.com/lindoai/lindoai-cli/llms.txt Makes a blog post publicly accessible on the website. ```bash # Publish / unpublish a blog lindo blogs publish --website ws-abc123 --id blog-001 # ✓ Blog published successfully ``` -------------------------------- ### Create Magic Link for Client Login Source: https://context7.com/lindoai/lindoai-cli/llms.txt Generate a secure, time-limited magic link for passwordless authentication for a specific client. The `--format json` flag provides the link in a structured format. ```bash lindo clients magic-link --email acme@example.com --format json # ✓ Magic link created # { # "success": true, # "magic_link": "https://app.lindo.ai/auth/magic?token=abc..." # } ``` -------------------------------- ### Update Website Name and Activate Source: https://context7.com/lindoai/lindoai-cli/llms.txt Modify a website's name and activate it. Use the website ID to target the specific website for updates. ```bash lindo websites update --id ws-abc123 --name "My Portfolio" --activate # ✓ Website updated ``` -------------------------------- ### Update Website Settings Source: https://context7.com/lindoai/lindoai-cli/llms.txt Adjust website-specific settings such as name, language, and description. This command allows for bulk updates to these properties. ```bash lindo websites settings \ --id ws-abc123 \ --name "My Business" \ --language en \ --description "We build amazing software" # ✓ Website settings updated ``` -------------------------------- ### Configure Lindo API Key Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Set your Lindo API key to authenticate your CLI commands. This is a required step before running most commands. ```bash lindo config set apiKey your-api-key ``` -------------------------------- ### Run Agent with Streaming Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Execute an AI agent and stream the response. This is useful for long-running agents or interactive use cases. ```bash lindo agents run my-agent --input '{"prompt": "Hello!"}' --stream ``` -------------------------------- ### Run an AI Agent Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Execute an AI agent with specified input. The input should be a JSON string. ```bash lindo agents run my-agent --input '{"prompt": "Hello!"}' ``` -------------------------------- ### Add a Team Member to a Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Grant access to a website for a specific team member by providing their email and role (e.g., 'Editor', 'Viewer'). ```bash lindo websites team-add \ --id ws-abc123 \ --email designer@example.com \ --role Editor # ✓ Team member added ``` -------------------------------- ### Run Agent with JSON Output Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Execute an AI agent and format the output as JSON. This is useful for programmatic consumption of agent results. ```bash lindo agents run my-agent --input '{"prompt": "Hello!"}' --format json ``` -------------------------------- ### Add a Team Member to Workspace Source: https://context7.com/lindoai/lindoai-cli/llms.txt Invite a new team member to your workspace by providing their email address and assigning a role. The role can be 'Team' or 'Admin'. ```bash lindo workspace team-add --email colleague@example.com --role Team # ✓ Team member added ``` -------------------------------- ### Stop the blog preview server Source: https://context7.com/lindoai/lindoai-cli/llms.txt Stops any active background preview server used for editing blog posts. ```bash # Stop the blog preview server lindo blogs stop-preview ``` -------------------------------- ### Update a blog from an HTML file with metadata overrides Source: https://context7.com/lindoai/lindoai-cli/llms.txt Updates an existing blog post using content from an HTML file. This command also allows overriding specific metadata fields such as title, author, and excerpt directly via CLI flags. ```bash # Update a blog from an HTML file lindo blogs update ws-abc123 blog-001 \ --html-file ./blog.html \ --title "Updated Title" \ --author "Jane Doe" \ --excerpt "Updated summary" \ --social-image "https://cdn.ln-cdn.com/c/site/images/cover.jpg" \ --category "AI" # ✓ Blog updated successfully # Blog ID: blog-001 # Published URL: https://mysite.com/blog/my-post ``` -------------------------------- ### Display Table Output Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Shows the default human-readable table format for CLI output. No special flags are required. ```text ┌─────────────┬────────────┐ │ workspace_id│ ws-123 │ │ balance │ 1000 │ │ allocated │ 5000 │ │ used │ 4000 │ └─────────────┴────────────┘ ``` -------------------------------- ### Update Workspace Settings Source: https://context7.com/lindoai/lindoai-cli/llms.txt Modify general workspace settings such as name, language, and webhook URL. Ensure the webhook URL is valid. ```bash lindo workspace update --name "My Agency" --language en --webhook https://hooks.example.com/lindo ``` -------------------------------- ### Lindo Workspace Command Reference Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Reference for workspace operations, specifically for retrieving credit balances. ```bash lindo workspace credits [options] ``` -------------------------------- ### Upload Media with Explicit Type and Name Source: https://context7.com/lindoai/lindoai-cli/llms.txt Upload a file with a specified media type and a custom CDN filename. Use `--format json` for machine-readable output, suitable for CI/CD pipelines. ```bash lindo media upload ws-abc123 ./doc.pdf \ --type documents \ --name company-brochure.pdf \ --format json ``` ```json { "url": "https://cdn.ln-cdn.com/c/ws-abc123/documents/company-brochure.pdf" } ``` -------------------------------- ### Add an Analytics Integration to Workspace Source: https://context7.com/lindoai/lindoai-cli/llms.txt Configure an analytics integration for your workspace, such as Matomo. The `--config` flag accepts a JSON string with integration-specific settings. ```bash lindo workspace integration-add \ --type matomo \ --config '{"site_id": "5", "url": "https://analytics.example.com"}' # ✓ Integration added ``` -------------------------------- ### Upload a single media file Source: https://context7.com/lindoai/lindoai-cli/llms.txt Uploads an individual media file (e.g., image, video, document) to the website's CDN. The file type is automatically inferred from its extension. ```bash # Upload a single image (type inferred from extension) lindo media upload ws-abc123 ./hero.png ``` -------------------------------- ### Run Type Checking Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Command to perform type checking on the project. Ensures code quality and correctness. ```bash # Run type checking pnpm typecheck ``` -------------------------------- ### Run Lindo AI Agent with JSON Input Source: https://context7.com/lindoai/lindoai-cli/llms.txt Execute a Lindo AI agent with specified JSON input. Supports streaming responses and outputting results in JSON format for programmatic use. Ensure the input is valid JSON. ```bash # Run an agent with JSON input (table output) lindo agents run my-agent --input '{"prompt": "Summarize this week'"'"'s news"}' # ℹ Running agent: my-agent # ✓ Agent run completed # success true # output Here is a summary... # Stream the response lindo agents run my-agent --input '{"prompt": "Write a product description"}' --stream # Output as JSON for programmatic use lindo agents run my-agent \ --input '{"prompt": "Generate 5 blog titles", "topic": "AI"}' \ --format json # { # "success": true, # "output": "1. The Future of AI...\n2. ..." # } ``` -------------------------------- ### Set Custom Base URL Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Configure a custom base URL for the Lindo API. This is useful for connecting to different environments. ```bash lindo config set baseUrl https://custom-api.example.com ``` -------------------------------- ### Update Client Settings Source: https://context7.com/lindoai/lindoai-cli/llms.txt Modify existing client settings, such as increasing their website limit or suspending their account. Use the client's ID to target the update. ```bash lindo clients update --id client-xyz --limit 20 lindo clients update --id client-xyz --suspend ``` -------------------------------- ### Update Workspace Appearance Settings Source: https://context7.com/lindoai/lindoai-cli/llms.txt Customize the visual appearance of your Lindo workspace by setting primary and secondary colors, and choosing a theme mode (e.g., 'dark'). ```bash lindo workspace appearance --primary "#3b82f6" --secondary "#8b5cf6" --mode dark # ✓ Appearance settings updated ``` -------------------------------- ### Delete a Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Permanently remove a website from your workspace using its ID. This action is irreversible. ```bash lindo websites delete --id ws-abc123 # ✓ Website deleted ``` -------------------------------- ### Lindo Analytics Command Reference Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Reference for analytics operations, including retrieving workspace and website analytics with date range filtering. ```bash lindo analytics workspace [options] ``` ```bash lindo analytics website [options] ``` -------------------------------- ### Upload edited HTML and assets for a page Source: https://context7.com/lindoai/lindoai-cli/llms.txt Uploads the edited HTML content of a page back to the API and automatically uploads associated assets to the CDN. This command updates the published version of the page. ```bash # Upload edited HTML back to the API (with automatic asset upload) lindo pages update ws-abc123 page-001 \ --html-file ./page.html \ --upload-assets # ℹ Read 45231 bytes from /home/user/project/page.html # ✓ Uploaded 3 asset(s) to CDN # ✓ Page updated successfully # Page ID: page-001 # Published URL: https://mysite.com/about ``` -------------------------------- ### Date-Filtered Website Analytics Source: https://context7.com/lindoai/lindoai-cli/llms.txt Obtain analytics for a specific website within a given date range. Use `--format json` for structured output. ```bash lindo analytics website \ --website ws-abc123 \ --from 2024-06-01 \ --to 2024-06-30 \ --format json ``` -------------------------------- ### Stop the page preview server Source: https://context7.com/lindoai/lindoai-cli/llms.txt Stops any running background preview server associated with page editing. ```bash # Stop the background preview server lindo pages stop-preview # ✓ Preview server (PID 12345) stopped ``` -------------------------------- ### Workspace Operations Source: https://context7.com/lindoai/lindoai-cli/llms.txt Manage workspace details, credit balances, team members, integrations, whitelabel settings, and appearance. ```APIDOC ## `lindo workspace get` — Get workspace details ### Description Retrieves the details of the current workspace. ### Method GET ### Endpoint /workspace ### Parameters #### Query Parameters - **format** (string) - Optional - Specifies the output format, e.g., `json`. ### Request Example ```bash lindo workspace get --format json ``` ## `lindo workspace credits` — Get credit balance ### Description Retrieves the credit balance for the current workspace. ### Method GET ### Endpoint /workspace/credits ## `lindo workspace client-credits` — Get credits for a specific client ### Description Retrieves the credit balance for a specific client. ### Method GET ### Endpoint /workspace/client-credits ### Parameters #### Query Parameters - **client** (string) - Required - The ID of the client. ## `lindo workspace update` — Update workspace settings ### Description Updates the settings for the current workspace. ### Method PUT ### Endpoint /workspace ### Parameters #### Query Parameters - **name** (string) - Optional - The new name for the workspace. - **language** (string) - Optional - The default language for the workspace. - **webhook** (string) - Optional - The URL for the workspace webhook. ## `lindo workspace team-add` — Add a team member ### Description Adds a new team member to the workspace. ### Method POST ### Endpoint /workspace/team ### Parameters #### Query Parameters - **email** (string) - Required - The email address of the team member. - **role** (string) - Required - The role of the team member (e.g., `Team`). ## `lindo workspace team-remove` — Remove a team member ### Description Removes a team member from the workspace. ### Method DELETE ### Endpoint /workspace/team ### Parameters #### Query Parameters - **member** (string) - Required - The ID of the team member to remove. ## `lindo workspace integration-add` — Add an integration ### Description Adds an integration to the workspace. ### Method POST ### Endpoint /workspace/integrations ### Parameters #### Query Parameters - **type** (string) - Required - The type of integration (e.g., `matomo`). - **config** (string) - Required - A JSON string containing the integration configuration. ## `lindo workspace integration-remove` — Remove an integration ### Description Removes an integration from the workspace. ### Method DELETE ### Endpoint /workspace/integrations ### Parameters #### Query Parameters - **type** (string) - Required - The type of integration to remove. ## `lindo workspace whitelabel` — Setup whitelabel ### Description Configures whitelabel settings for the workspace. ### Method PUT ### Endpoint /workspace/whitelabel ### Parameters #### Query Parameters - **domain** (string) - Required - The custom domain for whitelabeling. - **subdomain-domain** (string) - Required - The base domain for subdomains. - **email-sender** (string) - Required - The sender email address for outgoing emails. - **enable-register** (boolean) - Optional - Whether to enable registration. ## `lindo workspace appearance` — Update appearance ### Description Updates the appearance settings for the workspace. ### Method PUT ### Endpoint /workspace/appearance ### Parameters #### Query Parameters - **primary** (string) - Optional - The primary color. - **secondary** (string) - Optional - The secondary color. - **mode** (string) - Optional - The appearance mode (e.g., `dark`). ``` -------------------------------- ### Resume a Workflow Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Resume a paused workflow instance using its ID. ```bash lindo workflows resume instance-123 ``` -------------------------------- ### Unsuspend a Client Source: https://context7.com/lindoai/lindoai-cli/llms.txt Reactivate a suspended client's account by using the `--unsuspend` flag with their client ID. ```bash lindo clients update --id client-xyz --unsuspend # ✓ Client updated ``` -------------------------------- ### Delete a Client Source: https://context7.com/lindoai/lindoai-cli/llms.txt Permanently remove a client from your workspace using their client ID. This action cannot be undone. ```bash lindo clients delete --id client-xyz # ✓ Client deleted ``` -------------------------------- ### Unpublish a blog Source: https://context7.com/lindoai/lindoai-cli/llms.txt Removes a blog post from public view on the website. ```bash lindo blogs unpublish --website ws-abc123 --id blog-001 ``` -------------------------------- ### Unpublish a page Source: https://context7.com/lindoai/lindoai-cli/llms.txt Removes a published page from the live website, making it inaccessible via its public URL. ```bash # Unpublish a page lindo pages unpublish --website ws-abc123 --id page-001 # ✓ Page unpublished successfully ``` -------------------------------- ### Remove an Integration from Workspace Source: https://context7.com/lindoai/lindoai-cli/llms.txt Remove a previously configured integration from your workspace by specifying its type. ```bash lindo workspace integration-remove --type matomo ``` -------------------------------- ### Pause a Workflow Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Pause a running workflow instance using its ID. ```bash lindo workflows pause instance-123 ``` -------------------------------- ### Batch Status Check for Page Workflows Source: https://context7.com/lindoai/lindoai-cli/llms.txt Perform a batch status check for multiple page workflows by listing their record IDs. ```bash lindo workflows batch-status-pages rec-1 rec-2 rec-3 ``` -------------------------------- ### Delete a blog Source: https://context7.com/lindoai/lindoai-cli/llms.txt Permanently removes a blog post from the website. This action is irreversible. ```bash # Delete a blog lindo blogs delete --website ws-abc123 --id blog-001 ``` -------------------------------- ### Delete a page Source: https://context7.com/lindoai/lindoai-cli/llms.txt Permanently removes a page from the website. This action cannot be undone. ```bash # Delete a page lindo pages delete --website ws-abc123 --id page-001 # ✓ Page deleted successfully ``` -------------------------------- ### Remove a Custom Domain from Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Deregister a custom domain from your website. Ensure you have updated your DNS settings if you intend to use the domain elsewhere. ```bash lindo websites domain-remove --id ws-abc123 ``` -------------------------------- ### Remove a Team Member from a Website Source: https://context7.com/lindoai/lindoai-cli/llms.txt Revoke access for a team member from a specific website using their member ID and the website ID. ```bash lindo websites team-remove --id ws-abc123 --member member-001 ``` -------------------------------- ### Remove a Team Member from Workspace Source: https://context7.com/lindoai/lindoai-cli/llms.txt Remove an existing team member from your workspace using their member ID. ```bash lindo workspace team-remove --member member-789 # ✓ Team member removed ``` -------------------------------- ### Analytics Operations Source: https://context7.com/lindoai/lindoai-cli/llms.txt Retrieve aggregated analytics for the workspace or specific websites, with optional date range filtering. ```APIDOC ## `lindo analytics workspace` — Get workspace analytics ### Description Retrieves aggregated analytics for the entire workspace. ### Method GET ### Endpoint /analytics/workspace ### Parameters #### Query Parameters - **from** (string) - Optional - The start date for the analytics range (YYYY-MM-DD). - **to** (string) - Optional - The end date for the analytics range (YYYY-MM-DD). - **format** (string) - Optional - Specifies the output format, e.g., `json`. ## `lindo analytics website` — Get website analytics ### Description Retrieves aggregated analytics for a specific website. ### Method GET ### Endpoint /analytics/website ### Parameters #### Query Parameters - **website** (string) - Required - The ID of the website. - **from** (string) - Optional - The start date for the analytics range (YYYY-MM-DD). - **to** (string) - Optional - The end date for the analytics range (YYYY-MM-DD). - **format** (string) - Optional - Specifies the output format, e.g., `json`. ``` -------------------------------- ### Terminate a Workflow Source: https://github.com/lindoai/lindoai-cli/blob/main/README.md Terminate a running or paused workflow instance using its ID. ```bash lindo workflows terminate instance-123 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.