← Back to docs

Installation

This guide will walk you through how to install SDK packages in your project.

Note: You'll need an API token to install SDK packages. See the Authentication section of the API Reference.

Table of Contents

Step 1 — Configure Package Access

Core3D provides SDK packages via a private NPM registry. To configure installation you can create a configuration file in your project root (next to package.json). You'll need a Core3D API token to install the packages, see the Authentication section of the API Reference for more information. Replace XXXXXXXXXXXXXXXXXXXXXXX in the examples below with your API token.

Note: Avoid committing this file to your version control if it includes your API token in plain text. If you must commit this file, please reference NPM/Yarn/etc. documentation for options to keep your API token secure (e.g. environment variables).

NPM

Create an .npmrc file in your project root.

@core3d:registry=https://npm.core3d.io/
//npm.core3d.io/:_authToken=XXXXXXXXXXXXXXXXXXXXXXX

Yarn

Create a .yarnrc.yml file in your project root.

npmScopes:
    core3d:
        npmAlwaysAuth: true
        npmRegistryServer: "https://npm.core3d.io/"
        npmAuthToken: "XXXXXXXXXXXXXXXXXXXXXXX"

Step 2 — Install Packages

To install, run the following in your terminal:

NPM

$ npm install --save-dev @core3d/sdk @core3d/sdk-adapter-three

Yarn

$ yarn add --dev @core3d/sdk @core3d/sdk-adapter-three

Next Guide — Create A Design →

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.