Call Intellij's Illuminated Cloud command from Command Line?

414 views
Skip to first unread message

Wieslaw Mosakowski

unread,
Jul 1, 2017, 5:30:59 AM7/1/17
to Illuminated Cloud General Discussion
Hello again, Scott :)

Probably this question should be rather directed to Intellij's Author, but searching for my problem doesn't actually returns any valuable results in Google search.

Question is, Could we run any IC command using (windows / linux / etc) Command Line?

I mean calling IntelliJ something like:

idea.exe -plugin illuminated-cloud deploy-all-metadata pages/Page.page classes/PageController.cs

Or maybe you know it is possible using External Tools IJ's option?



What I'm trying to achieve is to "put parameters" into Deploy All Metadata option, so if I will send for example:
pages/Page.page classes/PageController.cs
parameters into Deploy All Metadata option, only they would be selected.

This thread is little related to my previous one: 

Scott, do you thing it is possible now?

sc...@illuminatedcloud.com

unread,
Jul 1, 2017, 12:04:54 PM7/1/17
to Illuminated Cloud General Discussion
Hi, Wieslaw.  Right now CLI-based access to IC features are going to be limited.  I'm mostly limited to what's possible in the host IDE as documented here:


and to be honest I haven't really tested that at all so it's possible there will be issues even with those.  The formatter is the one for which I've heard interest from other users in the past.

As for running deployments from the command-line, my recommendation would be the Force.com Migration Tool or, even better now that the open beta is available, Salesforce DX, both of which were designed for command-line use cases.

I hope that helps.

Regards,
Scott

Wieslaw Mosakowski

unread,
Jul 1, 2017, 12:38:18 PM7/1/17
to Illuminated Cloud General Discussion
OK, thank you Scott.

I'm familiar with FORCE CLI (https://force-cli.heroku.com/), so maybe this is good way of solving this problem, at least for now.

Thanks again and have a nice day :)

dougla...@gmail.com

unread,
Jul 2, 2017, 4:13:05 PM7/2/17
to Illuminated Cloud General Discussion
I recommend using either Ant Migration Tool or SalesforceDX for CLI deployment.

Ant Migration Tool lets you script ant commands and has been around forever.

SalesforceDX is brand new, in beta, but is the future of scripting and development lifecycle on the platform.

sc...@illuminatedcloud.com

unread,
Jul 4, 2017, 2:16:52 PM7/4/17
to Illuminated Cloud General Discussion
I agree with Doug that the Force.com Migration Tool is the most mature supported option available.  I will point out that the SFDX CLI does support deployment and retrieval of MDAPI (i.e., traditional) metadata as well:


It may be worth looking at that since it's explicitly designed for scripting and automation tasks.  You might find bugs (I've found a number myself while integrating into IC!), but just report them and the SFDX team will likely resolve them quickly.

Regards,
Scott
Reply all
Reply to author
Forward
0 new messages