Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6143027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:28:06+00:00 2026-05-23T18:28:06+00:00

After I create a new Play app $ play new myapp $ cd myapp/

  • 0

After I create a new Play app

$ play new myapp
$ cd myapp/
$ play idealize
$ ls
app       conf      lib       myapp.iml public    test

I can open a file (only if an IDEA project is already opened) using

$ alias "ij=open -a /Applications/IntelliJ\ IDEA*.app"
$ ij app/controllers/Application.java

Is there a nice way to create a new (or open an existing) Play project from the command line? I could write a simple script which creates the necessary XML-files (myapp.ipr, myapp.iws) and then opens the project by

$ ij myapp.ipr

but I hope this is unnecessary (or has been already done).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:28:06+00:00Added an answer on May 23, 2026 at 6:28 pm

    I have forked the framework and made the necessary changes to make this possible. See https://github.com/andreif/play/commit/ec70ab8162620a0c9ba5ca7195fc3c51d7de91b1 (note, the branch is called idea_project!)

    This commit adds command ideaproj which creates Module, Project and Workspace files of a very simple structure. If you are using OS X, the command will also try to open the project in all(!) IDEA apps located at /Applications/IntelliJ\ IDEA*.app. So adjust the python script in case if you have more than one IDEA app there. Additionally, you will probably want to change the default workspace layout. Have a look at iwsTemplate.xml and modify it to fit your preferences.

    Usage: run the following command in the app directory to create IDEA project files (and open them):

    play ideaproj
    

    Note, that it will overwrite existing project files! If the IDEA project is already opened at the time you run this command again, then IDEA will ask you if you want to reload the project.

    I have also added the following two commits:

    • [#770] Add sources when generating module for IntelliJ IDEA
    • [#923] Fix play idealize command to add dependent libs

    If you want to start using this command now, then copy files intellij.py, iprTemplate.xml, and iwsTemplate.xml to your Play framework directory (to the corresponding locations!).

    EDIT: I have made two more commits to fix project tree in the workspace template, so that it expands first time you open the project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created an alias like this alias play=/Users/bobdylan/Documents/play/play After creating a new app and
Eclipse and MyEclipse create new Java files with an extra blank line after the
After I renamed my PC, I couldn't create new paublications, for database replication in
How can create a New user in ORACLE with full access (alter, delete, select,
Im trying to test my successfully creates a new user after login (using authlogic).
I have create a CSV file in my php code, after create CSV, I
My Team use ---> aa.GetItem() -->> result After create NewGetItem extension function. don't use
i load a class using Class.forName(klassname,false,loader) After this i create an instance using klass.newInstance();
After being taught how to create a hash table in class, I don't understand
After using hg qnew and hg qrefresh to create and update a patch that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.