From c12638c2a9ccf3e258cb548ec18906d53cb1df57 Mon Sep 17 00:00:00 2001 From: Max dml Date: Tue, 23 Apr 2024 14:36:47 -0700 Subject: [PATCH] Entrypoints doc updates (#113) Reflect changes to `entrypoints` management in DBOS Transact --- docs/api-reference/cli.md | 18 ++++++++---------- docs/api-reference/configuration.md | 7 ++++--- .../application-structure-explanation.md | 2 +- docs/getting-started/quickstart-programming.md | 12 ++++++------ docs/tutorials/openapi-tutorial.md | 12 ++++++------ 5 files changed, 25 insertions(+), 26 deletions(-) diff --git a/docs/api-reference/cli.md b/docs/api-reference/cli.md index cac65c8f..ff7d1c01 100644 --- a/docs/api-reference/cli.md +++ b/docs/api-reference/cli.md @@ -12,17 +12,16 @@ The DBOS Transact CLI helps you run applications locally. ### `npx dbos start` -**Description:** +**Description:** This command launches the DBOS Transact runtime and HTTP server to serve an application. -It registers all functions and serves all endpoints in classes exported from the specified entrypoint file (typically `src/operations.ts`). +It registers all functions and serves all endpoints in classes exported by the [declared entrypoint files](./configuration#runtime) (`dist/operations.js` by default). Parameters set from the command line take precedence over parameters set in the [configuration file](./configuration). You must compile your code (`npm run build`) before running this command. -**Parameters:** +**Parameters:** - `-p, --port `: The port on which to serve your functions. - `-l, --loglevel `: The severity of log entries emitted. Can be one of `debug`, `info`, `warn`, `error`, `emerg`, `crit`, `alert`. - `-c, --configfile `: The path to a YAML [configuration file](./configuration) to use. -- `-e, --entrypoint `: The path to an [entrypoint file](./configuration) to use. --- @@ -31,10 +30,10 @@ You must compile your code (`npm run build`) before running this command. **Synonyms** `npm create @dbos-inc` and `npm init @dbos-inc` are synonyms for `npx @dbos-inc/create`. When using `npm create @dbos-inc` with any of the command line switches below, be sure to use `--` to separate `npm` arguments from the arguments intended for `@dbos-inc/create`. -**Description:** +**Description:** This command initializes a new DBOS application from a template into a target directory. By default, it instantiates the "Hello, Database!" application used in the [quickstart](../getting-started/quickstart). -**Parameters:** +**Parameters:** - `-n, --appName `: The name and directory to which to instantiate the application. Application names should be between 3 and 30 characters and must contain only lowercase letters and numbers, dashes (`-`), and underscores (`_`). - `-t, --templateName