OK the next important tool and the interesting tool that we are going to talk about is the fourth dog
come see a light.
So what does full stock.
SEE A LIGHT fools don't come see a light allows you to work with the fullest outcome data directly from
the command line.
You can browse and create follows dot com objects view edit create delete records execute Apex gold
it's like you iniquities and lot more than this.
So definitely it's a great news for Unix guys.
You feel familiar with Unix commands.
If you've worked with Unix before then it's just a cake walk for you.
And in fact I think this feature of command line interface was introduced a day back in 2013.
If I remember right.
All right.
So let's get started now.
So how do we start it flows like you got to install full start coming to face and that like you can
do it through the link for CLIA hero dot com.
You can very much get the link from Google just google for a start come see L.A..
And this this link should right pop up.
So once go to this link and depending on your machine if it's a Windows machine or Mac download the
force a XY Fi and place it in the location in your computer and and be very sure that the location that
you are placing it will start the XY fi should be identified by your pot or the other way to include
that location in your bot so that it can read and execute that.
So once done once done with a download open convention and start working as simple as that.
Now that I have downloaded the interface already my machine like me opened the command line the command
line plus we got to log into Salesforce.
So how do we log in force log in once you execute this comment automatically it will read article log
and but since those dot com.
So given your username password
log in a low axis OK authorization complete you may not close this window so close the window.
Go back to your command line.
So what does it say.
Then ask online trading dot com.
That's my user.
So now we have successfully logged in.
What next.
We got to understand the various commands that begin using this right.
All right.
So these are the various comments that you can use.
So what are all those log in logout Loggins active whom I describe as object big object field records
so these are the various comments that you can use in the full dot com CLIA interface.
They just used log in.
That's false log logging.
So what's the index full force log in.
We just gave false log in and it navigator to log into successful start.
Right.
Instead we can also give false log in the instance.
Like if it's the production instance or if it's just dest instance for production instance unit and
specifically say it's a production instance by default it takes you to the production instance but if
it's at best instance then you go to say est.
So I equals best and you equals username and B was password.
So this is the syntax that you go to follow you if you do not want to get navigator to log in to successful
dot com and give the details instead you can just give false log in user name password it you automatically
read the user name and password and help you log in.
So how do we understand each of the commands and each of this index.
So you you got a command force help say for example you got to understand about log in.
So just do false help log in and I give you the syntax of that particular comment.
So what does it say.
It says false log in and this is this index and these are all some examples like you how you can basically
use that command.
So I equals this means sandbox environment and username and password.
So you go to given the user name and password but then you do not specifically say at best it will automatically
take you to the production instance in a similar fashion you can use force help you understand about
any command and its syntax and some examples about that.
Let's do a few of them false.
Who am I.
Means basic.
Well done done all the details of currently logged in user.
Next Foursquare.
False grade is a common that is used for executing as well you will query say for example select I.T.
Come on name from a com.
So that is my query you can just execute the equity and you can view the output like this.
So fourth equity and given your equity within quotes that will execute the equity and give you the output
and you can very much export the output to a file.
So how do you do that just after the command given the location very want to export the details say
extract dog excellence so automatically the query output will be exported to that particular location.
This is the file that just got exported from that interface.
So it has extracted all the I.T. and name details of the account.
Basically the output of the query.
So similarly like any combined output you can very much extracted to a file for any use each.
Ok getting back to the comments false as object false as object.
It says a false.
This object is not a correct syntax and it gives me suggestions.
It seems like fools as object list create or delete our input.
So a list will basically list on all this objects in your org and create will just basically for creating
a new object and elitist for the leading object and import is for importing the data.
So you know him this like you know you got to choose how you want to handle load as object.
Say for example force yes object list.
So this will basically list on all these objects in the ark just like this object even you can list
on all the features that got associated with like a glass object.
Force field list and which particular object you want to extract the details say account so you do a
list on all the fields and the data type off that particular object say no account.
He does got all these fields and the related data type say for example does name it's a string number
of implies it's an integer number of location.
Double or not idea reference extra but just note that in case of big list it just not says it's a big
list but also lists don't all the big list values.
So definitely this command force field list as object is a very useful command because many times you
want the details of the object and the related fees.
Basically that is called as describing an object.
Right.
There are a couple of other tools using which you can basically describe the object but then in some
cases you cannot export the data.
In some cases it gives you definitely of standard objects.
So this interface falls don't come see a line interface very much you can get these details and you
can also export the details into a fight.
Another important command for arguments is the force limits.
This basically talks about the standard limits set by Salesforce and vendor you are the stance with
respect to those limits like the data storage the file storage and all these so you can basically know
like what are all the limits and your order goes basically with all those limits and definitely you
know handling password is one important task for arguments so force password that would basically not
give you the status of the password.
But just know that if you want to reset the password you can very much do this and forced log.
Yeah.
False log is something that is very important is basically and I'll give you the details from the debug
logs that have assets like nothing in the debug logs right now and also it is giving me Zero Records
but it pulls you values from the debug logs and files import and export for import and export are something
important.
What is this fourth import and export for export basically export them mega data off your ARG on import
like imports and metadata off your arc.
So this operation of export and import is very essential because in every ARG in any any company or
any project that you work in we regularly take metadata exports you know metadata backups view regularly
take from the production instance and you know we basically have a shared drive or server then you can
have all those mandated configuration in place.
So this is a very very regular activity that is done by Egmond and that activity you can very much Bill
using the fullest.
Come see a light.
So false export so false export just giving this command false export will automatically export the
flu mega data off your ARG to the location basically very beautiful start not actually find.
Right.
So in the same location you'd have a folder created with all the export admitted data.
My in is like you know if you give a specific location indefinitely you can find that location so that
all the exported meditator will be stored in that particular location.
Okay.
So now it seems like it is exporting to this particular location because I did not give any.
So the default but otherwise definitely I can say for export and virtual location you can give that
location C and whichever folder that you want to point to.
And that mega data will get exported to that particular location.
Similarly there are different other commands that you can use.
So try out all the comments.
Definitely it's an interesting exercise to work with.
Now comes the most interesting and the most useful part of fluff is that come see it light.
So what does that.
You can automate process.
You can automate jobs using foresee a light.
So definitely this is a very big advantage of using the common learning to face.
So how you can automate the command line basically how you can automate a process or how you can automate
the job CLIA makes it very easy.
Then you want to basically automate the particular process on a particular job depends on like you know
if its windows are unique so Linux or basically all the operating system you are basically using.
So in case of windows maybe you can use other tasks you for that but that will basically help you to
run the task at a specific time that you have configured it accordingly on if it's uniques on Linux.
I definitely can use a cron taps Unix guys you might be definitely aware of this.
The chrome tabs on the cron jobs that we call using that you can automate your jobs but in this example
now that them.
Just quickly going to show you how do we create a batch file and how do we use that task scheduler for
automating the CLIA jobs say for example we want to automate the metadata export meaning we want to
automate we want to have the metadata exported to a particular location on a regular basis say every
night at 10 p.m. You want the metadata to be exported look like a good location.
So how do you do that.
They just did the metadata export the right move on the command line and you got to navigate to a particular
folder and in that folder you can create a new folder and then log into force dot com basically an all
useful log in and log into those dot com and then you go to export the data and then do the to log out.
So all these set of commands you got to create a batch file with these set of commands.
So once you run the batch file automatically all these commands were drawn and the mega data would get
exported.
So what next.
Then you got to use that box scheduler for running the batch file specific intervals say every day or
every week or every month.
Basically how you have designed OK so how do we create a batch file.
First of all what is a batch file.
You might find is an executable file basically holding a set of comments.
So how do you create a batch file you just open a notepad and save it with a daughter be it the extension
and that becomes batch fight as simple as that.
So open a notepad and put in all your commands a lot of it.
Let me not put in the commands right now let me say we do it.
Be a d extension say met to export dot B T.
So it becomes a batch file.
OK so now that the batch file is successfully created we got to put in the commands into them.
That's fine.
All right.
One of the comments that we are going to put in so this is the batch file and these are the set of commands
that we are gonna put it.
So what it basically does CDE and this particular form of a structure.
So you want to basically have all your metadata exported to one particular location in your computer.
Right.
So this is the location that I'm targeting and EMV the toolbar full of that you want to get created.
So empty basically creates a new folder so all of these are basic unique commands you got to be a little
familiar so that you can very easily work in this interface so yummy and followed by the folder name.
So automatically in your folder will get created and then force log in force log in with your user name
password for export and just not for us export.
I'm just giving the location vetted should get exported
and this syntax is to upend the fold of named the duck cutting bait.
Once done the work force logo Asim blessed that Sylvia navigating to a folder creating a new sub folder
logging to force dot com and then doing a major data export and then force log up.
So this is the set of comments that we are going to give it in the batch fight.
So once the battle let's run this process automatically gets executed.
Let's do it manually and then let's see like how do we use at best.
Good luck to automate this game.
No we got to include all these commands in the batch fight so open the batch file means edit the batch
file and include all the comments.
So how do we added the batch file simply right click edit and it will open up the notepad but then all
these comments
edit and put in all these comments.
Save it.
So now the batch file is ready.
So once this batch file is done once we execute this automatically the process will happen.
OK.
So now that it is exporting the data.
Yes the process is getting executed.
So now the process has got completed.
Let me navigate to the location and see if my data export is completed.
So this is the location that I have mentioned in the batch fight.
So a new folder has got created.
It has got created with an embedded data backup but just not that.
With today's data aspect.
And once I open this I have the full my data export in place from applications assignment rules the
labels labeled objects and the whole my data the whole sales files meditator basically exploded in this
particular location.
So interesting right.
Yes.
So what what does that we have done.
We have created a batch file with the set of comments with the set of the commands that began using
the command line interface then that has automatically exported the metadata into this particular folder.
Good luck.
This is a manual job right.
God knows explicitly and run the batch fight.
So how do we automate this.
So being a Windows machine maybe definitely you can use a doc scheduler for automating this process
but in case of Linux or Unix.
The concept is the same but you got to use up the shelf clips and you got to use the cron jobs for automating
the process let's open task scheduler will Fred create a new task so action create task.
Maybe let me say metadata export
and then the actions basically an action you got to give the batch file as the input.
But also the batch file
and then you go to set a trigger.
So what does that trigger that basically you say like what intervals.
This particular job has to be done.
So basically you can give a date time and you can say that task X battered which I've got to say for
example it has to run for an hour and I was internally basically has to repeat the task in one hour
or like and what of a time you've got to get.
So once you do this once again.
OK this job basically gets executed.
And what is the job you get executed a day the last specified by you in the tasks could you learn so
the time comes the automatically the bad job will be picked up and it'll be run and the metadata export
will be saved in your machine.
So interesting right.
Yes.
So this is about windows.
And as I already told you for uniques for Linux driving cron jobs.
So like this way you can automate process using the full startup CLIA.