hereditas init
initialize a new Hereditas project in the current working directory.
Description
Initialize a new Hereditas project in the current working directory, creating the folders for the content and the generated data, as well as the “hereditas.json” configuration file.
The current working directory needs to be empty, or the command will raise an error.
Example usage
hereditas init \
--auth0Domain "yourdomain.auth0.com" \
--auth0ClientId "..." \
--auth0ClientSecret "..." \
--url "https://my.testhereditas.app"
Flags
Flag | Type | Required | Default Value | Description |
---|---|---|---|---|
-i --content |
string | "content" |
path of the directory with the content | |
-o --dist |
string | "dist" |
path of the dist directory (where output is saved) | |
-d --auth0Domain |
string | ✓ | none | Auth0 domain/tenant (e.g. "myhereditas.auth0.com") |
-c --auth0ClientId |
string | ✓ | none | Auth0 client ID for the management app |
-s --auth0ClientSecret |
string | ✓ | none | Auth0 client secret for the management app |
-u --url |
string | ✓ | none | URL where the app is deployed to, used for OAuth callbacks (multiple values supported) |