helpServe

tcmts.cli.commands.helpServe · #g67752sr · term · runs anywhere

import type { Help } from "#codebase/tcmts/cli/commands";

export const helpServe: Help = {
  description:
    "serve this codebase: clients with its token can push, pull and run code; contributors' tokens push their own branches",
  params: {
    host: "address to listen on",
    token: "the token clients need (default $TCM_TOKEN, or a new one)",
    run: "refuse to run code for clients",
    insecure: "allow clear-text tokens beyond localhost",
    public: "anyone can pull and read contributions, without a token",
    site: "a directory of static files (a docs site) to answer GET requests from, to anyone",
    moved:
      "a path of the site its pages moved under (/docs): a GET for a page the site doesn't have, that it (or an app it proxies) has there, is redirected to it",
    proxy:
      "paths whose requests go to a server beside it (an app tcm start serves there with --base), comma-separated: /examples/notes=http://127.0.0.1:7801",
  },
}

uses

used by