{"id":131,"date":"2013-11-22T14:40:45","date_gmt":"2013-11-22T22:40:45","guid":{"rendered":"http:\/\/www.bridgefarmconsulting.com\/blog\/?p=131"},"modified":"2013-11-22T14:40:45","modified_gmt":"2013-11-22T22:40:45","slug":"use-the-new-force-com-cli-for-a-clean-quick-start","status":"publish","type":"post","link":"https:\/\/www.bridgefarmconsulting.com\/blog\/use-the-new-force-com-cli-for-a-clean-quick-start\/","title":{"rendered":"Use the New Force.com CLI for a Clean Quick Start&#8230;"},"content":{"rendered":"<p>Just got back from another exhausting by very fun Dreamforce!<\/p>\n<p>If you were at the Dev Keynote, you would have the seen the legendary <a href=\"https:\/\/twitter.com\/dcarroll\">Dave Carroll<\/a> demo a new <a href=\"http:\/\/www.wadewegner.com\/2013\/11\/a-command-line-interface-for-forcecom\/\" target=\"_blank\">Command Line Interface<\/a> for Force.com. I have been trying it out this morning (thanks to <a href=\"http:\/\/salesforce.stackexchange.com\/questions\/21108\/new-force-com-cli-not-working\" target=\"_blank\">Mike for his help<\/a> getting me up and running!) and realized it is the perfect tool for something I seem to spend my life doing &#8211; cleaning up a new dev Org. I fire up new orgs every week, and I am always having to clear out the sample custom fields before I can get started. Why not just leave them there you ask? Soooo easy to accidentally include them in a managed package &#8211; and once there, no going back!<\/p>\n<p>But with the CLI, you can just run a simple script to do that. For now, you first have to delete some references to those fields. You can probably do this via the Metadata import as well, but until I work that piece out, you still have to do the following:<\/p>\n<ul>\nDelete Case Escalation Rules<br \/>\nDelete Case Assignment Rules<br \/>\nRemove Upsell Custom Links from Case from Page Layouts<br \/>\nDelete Custom Upsell Link from Case<\/p>\n<p>Remove Delivery Status Custom Link from Opty Page Layouts<br \/>\nDelete Link<\/ul>\n<p>Now you can download <a href=\"https:\/\/www.dropbox.com\/s\/5fzrp4b2l6xam0l\/RemoveSampleFields.txt\" target=\"_blank\">this file<\/a> to where your force CLI binary is located, open up the terminal to that directory, type <strong>force login<\/strong> to run the oAuth, and finally run this command:<br \/>\nsh removesamplefields.txt<\/p>\n<p>You&#8217;ll see it delete the fields, and now you can start building your new Salesforce1 App!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just got back from another exhausting by very fun Dreamforce! If you were at the Dev Keynote, you would have the seen the legendary Dave Carroll demo a new Command Line Interface for Force.com. I have been trying it out this morning (thanks to Mike for his help getting me up and running!) and realized [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,11],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-cli","category-dreamforce"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":4,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bridgefarmconsulting.com\/blog\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}