Currently the build/serve/test commands make use of the okapi URL and tenant ids in a tenant config (stripes.config.js). This is because the tenant config is a dependency on the build process. Optionally the CLI allows the okapi URL and tenant id to be specified on the command line via --okapi and --tenant, effectively overriding values in the tenant config.
These --okapi and --tenant options exist because several other CLI commands require them for interacting with Okapi, but don't otherwise require a full tenant config. However, some new okapi-based commands, like stripes platform backend, also consume the tenant config, yet the CLI does not know to that they could be obtained from here. This captures the work needed to parse okapi URL and tenant id from the tenant config for these okapi-based commands.