#Workflow to open multiple tabs and run some commands

1 messages · Page 1 of 1 (latest)

manic plank
#

Hi all,

Is there a way to use Warp workflows so i can open like 3 tabs where first tap runs "npm run dev" the other tab runs "php artisan something something" etc.?

frigid badgerBOT
#

Hi @manic plank. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Yes, Warp provides a feature called Launch Configurations that allows you to set up a configuration to open multiple tabs and run specific commands in each tab. You can define a launch configuration with the desired commands for each tab, and then use that configuration to open your tabs as needed.

Here's an example of how you might set up a launch configuration for your use case:

name: Dev Environment
windows:
  - tabs:
      - title: Frontend
        layout:
          commands:
            - exec: npm run dev
        color: blue
      - title: Backend
        layout:
          commands:
            - exec: php artisan something something
        color: green

You can save this configuration and then open it using Warp's interface or by using the Warp URI scheme to trigger it from a script.

For more detailed instructions on how to use and create Launch Configurations, you can refer to the Warp documentation on Launch Configurations (https://docs.warp.dev/features/sessions/launch-configurations#commands).

Please note that the code block provided is a conceptual example based on the information from the extracts and should be adapted to fit your actual file paths and commands.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@manic plank kapa.ai is still learning and improving, please let us know how it did by reacting below