@osdk/create-app
TypeScript icon, indicating that this package has built-in type declarations

0.16.0 • Public • Published

@osdk/create-app

A CLI for bootstrapping OSDK apps on top of popular frameworks

The CLI may be run directly through npx with npx @osdk/create-app@latest or with the alias npm create @osdk/app@latest. When the NPM package is explicitly installed for example with npm install -g @osdk/create-app@latest the create-osdk-app binary is also available.

Running locally

Run the following commands from the repository root:

pnpm install
pnpm build
cd packages/create-app
./bin/createOsdkApp.mjs

Changes to templates require updating examples/ which can be done with the @osdk/example-generator package.

Options

The CLI can be run without any arguments and the user will be guided with interactive prompts to fill in required information. The prompts may be skipped by providing the relevant information in through arguments instead.

npx @osdk/create-app [project] [--<option>]
Option Description
--overwrite Overwrite project directory if already exists [boolean]
--template Template name to use [string]
--foundryUrl URL for the Foundry stack [string]
--applicationUrl URL the production application will be hosted on [string]
--skipApplicationUrl Skip filling in URL the production application will be hosted on [boolean]
--application Application resource identifier (rid) [string]
--clientId OAuth client ID for application [string]
--osdkPackage OSDK package name for application [string]
--osdkRegistryUrl URL for NPM registry to install OSDK package [string]
--corsProxy Include a CORS proxy for Foundry API requests during local development [boolean]

Templates

Template name Description
react React with Vite
vue Vue with Vite
next-static-export Next.js with static export

Readme

Keywords

none

Package Sidebar

Install

npm i @osdk/create-app

Weekly Downloads

173

Version

0.16.0

License

Apache-2.0

Unpacked Size

257 kB

Total Files

169

Last publish

Collaborators

  • palantir
  • ericanderson