# Getting started - how to init a dcupl project with our CLI

Streamline the development process and overcome hurdles like unfinished or missing interfaces: init a dcupl project with the CLI and start quickly.

For developers — April 24, 2023

![Gernot Bernkopf, CEO and Co-Founder of dcupl GmbH](https://dcupl.com/images/gernot-bernkopf-dcupl.jpg)

[Gernot Bernkopf](https://dcupl.com/about)
CEO and Co-Founder, dcupl

Streamline the development process and overcome hurdles like unfinished or missing interfaces. The dcupl workflow simplifies your daily business. Start quickly and efficiently.

- quickstart

- tutorials

- development

- CLI

- dcupl init

![In this post we explain how to start developing with dcupl in a few simple steps - especially how to use the dcupl CLI.](https://dcupl.com/insights/dcupl-init-202304/dcupl-cli-dcupl-rocks.webp)

*In this post we explain how to start developing with dcupl in a few simple steps - especially how to use the dcupl CLI.*

## **What you will learn**

This article summarizes the most important information for you so that you can start a dcupl project and discover the functionality of our Command Line Interface. By following the step-by-step guide, you will end up with a local dcupl workspace connected to your dcupl project in the Console and ready to start developing your web app.

Basically, this post is a summary of content that you will also find in the dcupl docs. The aim is to show you how to start developing with dcupl in a few simple steps - in this post especially how to use the dcupl CLI. So let's get started …

## **New Version v1.0.0 released!!**

Install the current version of the dcupl CLI and then open the instructions, which give you an overview of the CLI's functionality. For the installation and use of dcupl you need current versions of **Node** and **npm** or comparable package managers. Open the command line and execute the following commands:

```text
npm i -g @dcupl/cli
dcupl --help
```

The output should look like the following:

```text
dcupl-demos $dcupl --help
dcupl <command>
Commands:
  dcupl welcome         You are awesome!               [aliases: hey, rocks, 🚀]
  dcupl init            Init a local project based on one of our starters
  dcupl serve [path]    Starts your local dev server
  dcupl files:push      Upload files to the dcupl cloud
  dcupl files:pull      Download files from the dcupl cloud
  dcupl files:copy      Download files from the dcupl cloud
  dcupl files:list      Lists all the uploaded versions
  dcupl generate [type] Generate models, typescript types, json schema, ...
                        from your models
Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
dcupl-demos $
```

### **dcupl rocks 🚀**

*dcupl rocks/hey/welcome* shows our nice welcome screen, which sums up the most important information and leads you to the first step - dcupl init.

### **dcupl init**

With *dcupl init* you can initialize a local dcupl workspace. For this quick introduction, choose the "Minimal Setup". It includes a concise dcupl project to help you get started with dcupl, containing a simple model and the corresponding data.

```text
dcupl-demos $dcupl init
? What's your project name my-dcupl-app
? Do you want to start from scratch or a demo application? (Use arrow keys)
❯ Minimal Setup
  Transfermarkt Example
```

If you want to start right away with a project with a large data set with hundreds of thousands of data rows, we have developed a demo for you, which contains an extract of the European Transfermarkt (football transfer market) data. We used data provided by the platform [kaggle.com](https://www.kaggle.com), for which we would like to thank them and the project owner at this point. At the end of the article you will find the URL to the relevant kaggle project. We update the data set from time to time.

**NOTICE:** The Transfermarkt demo can be joined in the dcupl Console. Just register at [**https://console.dcupl.com**](https://console.dcupl.com/) and select one out of five dcupl demo projects to join. Of course, you can also join all five projects. In addition an Angular based dcupl catalogue demo can be downloaded on Github.

If you have chosen the "Minimal Setup" your output should look like this:

```text
dcupl-demos $dcupl init
? What's your project name my-dcupl-app
? Do you want to start from scratch or a demo application? Minimal Setup
…/node/v16.14.0/lib/node_modules/@dcupl/cli/files/common
#############################
##                         ##
##  dcupl project created  ##
##                         ##
#############################
Next steps:
1) Setup
   cd my-dcupl-app
   npm install
2) Connect your local project with the dcupl console
   - Go to https://console.dcupl.com and create your free account
   - Set your projectId in the dcupl.config.json
   - Set your apiKey in the dcupl.secrets.json
   - Push your local workspace to the console using the CLI dcupl files:push --name my-first-push
3) Start your server & check your data in the Data Explorer Tab
   npm run serve
dcupl-demos $
```

As a next step navigate to the new directory “my-dcupl-app” and open your project in an editor like Visual Studio Code. Watch the following video to get to know how to connect your local dev project to your dcupl Console project.

[![Video on YouTube](https://dcupl.com/insights/dcupl-init-202304/youtube-ZTDaWWlq1ZU.webp)](https://youtu.be/ZTDaWWlq1ZU)

*[Watch the video on YouTube](https://youtu.be/ZTDaWWlq1ZU)*

### `dcupl serve [--port port-number]`

Jump into your newly created local dcupl workspace and type *dcupl serve*. Your local development server is started with the default port 8083. Now you can open `http://localhost:8083` in your browser.

It is possible to select a port other than 8083 for your local server with the parameter port and the respective port number.

`dcupl serve . --port 3000`

If you have followed all the steps above, including those described in the tutorial video, you can now really get started and add static or dynamic resources to your project or define them accordingly in the dcupl Loader configuration and display and check them in the [**dcupl Console**](https://console.dcupl.com/). Don't forget, the local server must be started and selected as “source” in the console.

![dcupl Console - select source](https://dcupl.com/insights/dcupl-init-202304/dcupl-console-select-source.webp)

*dcupl Console - select "localhost" as source for your resources*

### If you have any questions, open an issue in [**dcupl/feedback**](https://github.com/dcupl/feedback) on GitHub. We will take care of it as soon as possible.

See the more detailed descriptions in our docs:

- [**dcupl App Loader**](https://docs.dcupl.com/sdk/api/loader)
- [**dcupl Data**](https://docs.dcupl.com/sdk/core-concepts/data-management)
- [**dcupl Models**](https://docs.dcupl.com/sdk/core-concepts/models)

The following steps are not relevant for the basic setup, but will make your daily work in the development process easier. Especially *dcupl files:push* will be important for your smooth development experience.

### **dcupl files**

The commands below based on dcupl files only work if you have previously linked your project to a dcupl Console project. That means you have to register at [**https://console.dcupl.com**](https://console.dcupl.com/), create a project and follow the step-by-step instructions in the “Getting Started” widget - or watch the video above, which covers exactly these steps.

With these commands you can upload your local data resources, model descriptions and dcupl Loader configurations to the dcupl CDN or download them from it and perform other actions.

#### `dcupl files:push [--name version-name]`

Upload your local workspace folder to your connected Console project. Use --name to set a version name.

#### `dcupl files:pull [--name version-name]`

Download your Console project folder to your local workspace on your machine. Use --name to set the name of the version you want to download.

#### `dcupl files:copy [--from version-name] [--to version-name]`

Copy one version of your dcupl Console project to another one. Use this command to save a backup or roll out a specific version.

#### **dcupl files:versions**

Outputs a list of all versions of a project in the dcupl CDN.

#### **dcupl generate**

Generate new models, Typescript types or an export of all models of your project as a JSON file. The generated file is based on the JSON Schema standard and can be imported into other services like [**https://app.quicktype.io/**](https://app.quicktype.io/), with which you can generate classes and types for different other programming languages like Java, Kotlin, C# or Javascript.

```text
dcupl/dcupl-demos $dcupl generate
? What do you want to generate? (Use arrow keys)
❯ Model
  Typescript Types
  JSON Schema
```

If you choose Model and set the name for the model (in the example "NewModel"), a model is created in the models folder and is added to the Loader configuration.

```text
dcupl-demos/fashion-products $dcupl generate
? What do you want to generate? Model
{ type: 'model' }
? What's your model name? (User, Person, Product, etc.) NewModel
Model written to ../dcupl/dcupl-demos/fashion-products/dcupl/models/newmodel.dcupl.json
Resource added to dcupl/dcupl.lc.json
dcupl-demos/fashion-products $
```

Enjoy the dev experience using the dcupl CLI 😎

## **Further resources**

If you have any questions do not hesitate to use one of our channels to ask for support.

- [**dcupl CLI npm Package**](https://www.npmjs.com/package/@dcupl/cli)
- [**dcupl Docs - Dev Tools - CLI**](https://docs.dcupl.com/cli)
- [**dcupl Docs - Getting Started**](https://docs.dcupl.com/learn/getting-started)
- [**dcupl Docs - Examples - Transfermarkt Demo**](https://docs.dcupl.com/learn/tutorials)
- [**kaggle.com Transfermarkt data**](https://www.kaggle.com/datasets/davidcariboo/player-scores)

On this page

- [What you will learn](https://dcupl.com/dev/dcupl-init-202304#what-you-will-learn)
- [New Version v1.0.0 released!!](https://dcupl.com/dev/dcupl-init-202304#new-version-v100-released)
- [Further resources](https://dcupl.com/dev/dcupl-init-202304#further-resources)

Related

- [All dcupl insights](https://dcupl.com/insights)
- [Data layer for coding agents](https://dcupl.com/why-dcupl/developers-and-technical-leads)

More insights

- [The product catalog in a chat: a dealer asks, Claude answers from the data](https://dcupl.com/i/product-catalog-in-a-chat-202611)
- [Stage, build, approve: why nothing in dcupl happens by surprise](https://dcupl.com/i/stage-build-approve-202611)
- [Your deployed data, one MCP endpoint away from your agent](https://dcupl.com/i/mcp-endpoint-deployed-data-202611)
- [Why coding agents fail on product data, and how to fix it](https://dcupl.com/i/why-coding-agents-fail-on-product-data)
- [How we made the dcupl CLI something an agent can drive](https://dcupl.com/i/agent-ready-cli-202609)
- [From data model to REST API, without writing the API](https://dcupl.com/i/rest-api-from-data-model-202608)
- [Workflows: data pipelines you can see, test and hand over](https://dcupl.com/i/workflows-visual-data-pipelines-202607)
- [Front-End First: Building User-Centered Digital Services from the Outside In](https://dcupl.com/i/front-end-first-start-with-the-customer-and-work-backwards-2024-10)
- [Validate Your App with Spreadsheets and Static Data](https://dcupl.com/i/start-simple-20241510)
- [Leverage the Power of Pivoting in Your Web Applications with dcupl](https://dcupl.com/i/pivot-tables-202308)
- [Continuous Data Quality Testing & Data Governance with dcupl](https://dcupl.com/i/data-quality-testing-202306)
- [dcupl Pre-Processing](https://dcupl.com/i/pre-processing-202306)
- [Create secure, “decoupled” web applications with dcupl](https://dcupl.com/i/decoupled-web-applications-20230431)
- [The dcupl Dual-Speed Approach](https://dcupl.com/i/dual-speed-202301)
- [Unlock the Power of Front-end First](https://dcupl.com/i/frontend-first-202301)
- [Be progressive, B-E progressive, B-E P-R-O-G-R-E-S-S-I-V-E](https://dcupl.com/i/be-progressive-202301)
- [Build a product catalog with dcupl: from CSV exports to a filterable catalog page](https://dcupl.com/dev/product-catalog-with-dcupl-202611)

## Give your agent the real data.

`npm install -g @dcupl/cli@2`

---

## More for agents

- [llms.txt](https://dcupl.com/llms.txt): every page of dcupl.com with a summary
- [Documentation](https://docs.dcupl.com/): SDK, CLI, Console and workflows; for agents https://docs.dcupl.com/llms.txt
- [Sitemap](https://dcupl.com/sitemap.xml)
