Insomnia logo
  • Documentation
  • Get Started for Free
    • Introduction to Insomnia
    • Install Insomnia
    • Send Your First Request
    • Import and Export Data
    • Environment Variables
    • Global Environments
    • Insomnia Accounts
    • Forgotten Passphrase
    • Managing E2EE (End-to-End Encryption)
    • Organizations
    • Enable Enterprise membership
    • Configuring EE SSO
    • Integrating Insomnia Enterprise with Okta SAML 2.0
    • Integrating Insomnia Enterprise with Okta OpenID Connect
    • Integrating Insomnia Enterprise with Microsoft Azure/Entra ID SAML 2.0
    • Insomnia Whitelisting Guide for Enterprise Users
    • Transfer enterprise organizations and license
    • Configuring SCIM
    • Multiple Owners
    • Manage Domains
    • Invite Controls
    • Storage Controls
    • Session Report
    • Insomnia Subscriptions
    • Insomnia Subscription Management
    • Scratch Pad Tutorial
    • Requests
    • Responses
    • Request Collections
    • Request Timeouts
    • Chaining Requests
    • Post CSV Data
    • SOAP Requests
    • gRPC
    • WebSocket Support
    • Get Started with Documents
    • Design Documents
    • Linting
    • GraphQL for OpenAPI
    • Migrate from Designer
    • Unit Testing
    • Stress Testing
    • Insomnia Storage Options Guide
    • Sync with Insomnia Cloud
    • Sync with Git
    • Key Security Features
    • Security Standards
    • Signup and Authentication
    • Analytics Collected
    • End to End Data Encryption
    • Software Bill of Materials
    • Verifying Build Provenance for Signed Insomnia Binaries
    • Authentication
    • Client Certificates
    • Collection Runner
    • Generate Code Snippet
    • Cookie Management
    • Encoding
    • GraphQL Queries
    • Run in Insomnia Button
    • Key Maps
    • Proxy
    • Folder-level settings
    • Introduction to Plugins
    • Context Object Reference
    • Template Tags
    • Hooks and Actions
    • Custom Themes
    • AI Runner
    • FAQ
    • Application Data
    • SSL Validation
    • Password Recovery
    • Introduction to Inso CLI
    • Install Inso CLI
    • CLI Command Reference
      • inso run test
      • inso run collection
      • inso lint spec
      • inso export spec
      • inso script
      • Using Custom Linting with Inso CLI
    • Configuration
    • Inso CLI on Docker
    • Software Bill of Materials
    • Verifying Signatures for Signed Inso CLI Images
    • Verifying Inso CLI Build Provenance
      • Verifying Build Provenance for Signed Inso CLI Images
      • Verifying Build Provenance for Signed Inso CLI Binaries
    • Continuous Integration
    • Insomnia Pre-request Script Overview
    • Insomnia After-Response Script Overview
    • Secret Environment Variables
    • External Vault Integration (Enterprise feature)
    • Insomnia API Mocking Overview
    • Enterprise Login Report

inso run collection

The inso run collection command is used to manually run collections to test the functionality of your API. It will execute any requests specified and associated scripts including any after response tests. You can also use this to automate collection runs on CI/CD pipelines.

Command

inso run collection [identifier]

This prompts user for collection and environment selection. After selection it will execute the selected collection against the selected environment. You may choose to specify the collection and environment directly as well, see examples below.

Options

The options currently supported are:

Option Alias Description
--env <identifier> -e the environment to use - an environment name or id
--env-var   specifies environment variables in a key=value format. Multiple CLI environment variables can be added by using –env-var multiple times, for example: –env-var “this=that” –env-var “alpha=beta”.
--reporter <value> -r reporter to use, options are dot, list, spec, min and progress (default: spec )
--requestNamePattern <regex> -t run requests that match the regex
--bail -b abort (“bail”) after the first request failure
--item -i runs only the specified folder UID or request UID from the collection. Multiple items can be run in order by specifying -i/–item multiple times, for example: inso run collection collectionUID -i folder1UID -i folder2UID
--delay-request   specifies a delay (in milliseconds) between requests. The default is 0.
--iteration-count -n specifies the number of times the collection will run when used in conjunction with the iteration data file.
--iteration-data -d specifies a data source file (JSON or CSV) to be used for iteration. You can specify a local file path or a URL to the data file.
--disableCertValidation   disable certificate validation for requests with SSL
--httpsProxy <proxy>   URL for the proxy server for https requests.
--httpProxy <proxy>   URL for the proxy server for http requests.
--noProxy <comma_separated_list_of_hostnames>   Comma separated list of hostnames that do not require a proxy to get reached, even if one is specified.

Global Flags

Option Alias Description
--workingDir <path>   Specify a working directory/file, to find .insomnia folder, *.db.json, export.yaml

Examples

inso run collection wrk_5b5ab6 --reporter progress --bail
inso run collection -w ~/simple.yaml -e env_2eecf85b7f wrk_0702a5
inso run collection -d ~/files/runner-data.json -w ~/three-requests.yml -n 2 -i req_3fd28aabbb18447abab1f45e6ee4bdc1 -e env_86e135 --verbose
Edit this page
Report an issue
    COMPANY
  • Insomnia
  • Blog
  • Changelog
  • Pricing
  • Careers
    PRODUCTS
  • Insomnia
  • Inso (CLI)
    RESOURCES
  • Sign In
  • Documentation
  • Support
    LEGAL
  • Privacy Policy
  • Terms & Conditions
© Kong Inc. 2021