Learn how to use the Latitude CLI to manage your Latitude projects
start
command. This command will create a new directory with the specified project name and initialize it with the necessary files and folders.
start
command will prompt you to enter the name of your new project. Once you’ve entered the name, the command will create a new directory with the specified name and initialize it with the necessary files and folders.
dev
command. This command will start a local development server that will serve your project on http://localhost:3000
.
run
command. For example:
/queries/sample.sql
query once and display the results in your terminal.
If your query is in a sub-folder within the /queries
folder, make sure to include the sub-folder name in the command. For example:
-w
or --watch
flag to the command. For example:
run
command using the --param
flag, followed by the parameter name and value. For example:
name
and id
parameters will receive the values Latitude
and 1
, respectively.
--debug
flag to display the actual query that would be sent to your database, without actually running it. For example: