User Guide Getting Started Help Center Documentation Community Training
Looker
  
English
Français
Deutsch
日本語
Creating a New LookML Project

A project is a collection of LookML files that describe how your database tables are related to each other and how Looker should interpret those tables. You can learn more about projects on the LookML Projects and Development Mode page and on the LookML Terms and Concepts page. For information about accessing and editing existing projects, see the Accessing and Editing Project Information documentation page.

A LookML project can contain more than one model file. However, if you wish to specify permissions for users around seeing and editing LookML for a specific model file, you might want to create a new project. Although most permissions in Looker apply at the model level, there are some that apply to the project level, including see_lookml, which lets you view LookML for a project, and develop, which allows you to edit the LookML. If you want to give users access to one model but not another, it’s a good idea to create a separate project containing the model you don’t want them to have access to.

Creating a Project

From the LookML Projects page, you can create a new LookML project while in Development Mode by selecting New LookML Project:

Clicking New LookML Project opens the New Project page. Looker can create a project in several ways, so the steps you need to take will depend on the Starting Point option you choose. The following sections describe how these starting points work:

If you want to rename your project after you’ve created it, use the Project Settings page (see the Accessing and Editing Project Information documentation page).

Automatically Generating a Model from Your Database

If you select Generate Model from Database Schema as the starting point, the LookML generator automatically creates your model and view project files based on the tables in your database. See the Generating a Model documentation page for more information.

With this option, Looker asks for the connection name so that it can automatically generate LookML based your database. However, you can still add additional connections later.

Cloning a Public Git Repository

If you select Clone Public Git Repository as the starting point, Looker will copy the files from a public Git repository into your new LookML project.

Looker projects that are cloned from public Git repositories are read-only. However, you can import the read-only project into another of your Looker projects where you can edit the files. Additionally, you can use the cloned repository files as a starting point, then use the Looker extends function to build up a project from there.

To clone an existing public Git repository into a Looker project:

  1. Verify that you are in Development Mode.
  2. Click the New LookML Project button at the top of the LookML Projects page.
  3. In the New Project pop-up window, give your project a name.
  4. For Starting Point, choose Clone Public Git Repository.
  5. Enter the URL for the public Git repository. Make sure that the URL is the in format git://github.com/example/my-repository.git.

    If you have a URL such as https://github.com/llooker/blocks_redshift_admin, you can edit it to the correct format by replacing “https://” with “git://” and then adding “.git” at the end. So the URL you would enter would be: git://github.com/llooker/blocks_redshift_admin.git.
  6. Click Create Project. Looker will pull all of the public repository’s files into a new LookML project and open the project.
  7. Click Deploy from Remote to pull all remote changes into your local version of the repository.

Creating a Blank Project

If you select Blank Project as the starting point, Looker creates an empty project so that you can create your LookML files from scratch.

To create a blank project:

  1. Verify that you are in Development Mode.
  2. Click the New LookML Project button at the top of the LookML Projects page.
  3. In the New Project pop-up window, give your project a name.
  4. For Starting Point, choose Blank Project.
  5. Click Create Project.

Once you have a blank project, you can create model and view files, then you can connect your project to Git so that you can record changes to your LookML files and manage versions of your files.

Configuring a Model

Use the Configure New Model button at the top of the LookML Projects page to add a configuration for an existing or planned model.

Configuring a model for a project that doesn’t exist yet is useful if the developers have not been given the manage_models permission, as described on the Generating a Model documentation page. If you configure the model for them, the developers will be able to run queries as soon as they generate or create the model file. For more information about projects with only a configuration, see the Accessing and Editing Project Information documentation page.

You can also specify which database connections can be used by the model, or you can specify that the model is allowed to use any current or future connections. Looker developers use the LookML connection parameter to specify in the model file which connection the model should use. If a developer specifies a connection that you have not allowed in the model’s configuration, then any query on that model will not run.

Top