The Cardstack CLI is a work-in-progress project to create a smooth quickstart experience for new developers and a straightforward way to use the Card SDK. It handles tasks like creating new Cards, starting the Hub, installing dependencies, and generating code from templates.
To run the CLI:
yarn compile --watch node ./bin/cardstack.js <command>
To see a list of commands:
yarn compile --watch node ./bin/cardstack.js --help
Apps are served from
The CLI codebase uses TypeScript, so make sure you always have a compiler running while you work:
yarn compile --watch
To disable rebuilds of the Ember App as you make changes:
CARDSTACK_DEV=true node ./bin/cardstack.js start
To view the built app, follow the path printed in the console by Embroider.
Launching hub from inside the blueprint (you need a local embroider checkout that is built (
yarn compile) and available for yarn linking):
yarn link @embroider/core @embroider/compat @embroider/webpack
Loading the first-card example:
node ./bin/cardstack.js load -c ./node-tests/sample-cards/first-card -d ../cardhost