Initialize the Project From the CLI

You can now begin working on your Catalyst project from the CLI. The first step is to initialize the project in an empty directory. This will be the home directory of your project and all of the project files will be saved in it.

You can learn more about this from the Project Directory Structure help page. You can learn about initializing a project from the CLI help documentation.

We will only initialize the client component for the Authentication app, as discussed in the introduction.

  1. Create a folder for the project on your local machine and navigate to it from the terminal.
  2. Initialize a project by executing the following command from that directory:
copy
$
catalyst init
  1. Select Client using the space bar. Press the Enter key to initialize.
    catalyst_authenticationapp_init_1

  2. The CLI will now ask you to associate a Catalyst project with the directory. Associate it with the project that we created earlier from the console. Select AuthenticationApp from the list, then press Enter.
    catalyst_authenticationapp_init_2

  3. The CLI will initiate the client set up next. Enter “userApp” as the name for the client package and press Enter.

    Note: Since we have provided this name while configuring Zoho sign-in provider, enter the same name.
    catalyst_authenticationapp_init_3

Catalyst initialization is now complete.

The client directory will be created in your project directory with the configuration files and dependencies, along with the catalyst.json and a hidden catalyst.rc file.

This is the structure of your project directory.

catalyst_authenticationapp_proj_dir_structure

Last Updated 2023-05-10 13:52:27 +0530 +0530