
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@thinknimble/tnm-cli
Advanced tools
`tnm-cli` is a command line interface for auto-generating [tn-models](https://github.com/thinknimble/tn-models-fp) model definitions for your app's frontend from OpenAPI schema files provided by your app's backend. This is the standard pattern we use in a
tnm-cli is a command line interface for auto-generating tn-models model definitions for your app's frontend from OpenAPI schema files provided by your app's backend. This is the standard pattern we use in all apps at ThinkNimble.
First, install bun (required):
curl -fsSL https://bun.sh/install | bash
Then use the CLI by installing it from NPM or BUN
npm install -g tnm-cli
bun install -g tnm-cli
OR use npx/bunx
npx/bunx @thinknimble/tnm-cli read <source>
assuming you are retrieving the yaml file from swagger on a TN App you may also need to pass a token
bunx @thinknimble/tnm-cli read 'https://YOUR_PROJECT.com/api/schema?format=yaml' -t YOUR_API_KEY -u '/api/users/' -o somepath.ts
Options:
-u, --uri - the uri to the resource you want models of, this must be an exact match with the opening and trailing slash-t, --auth - auth token to the url if it is behind authentication-o, --output - output file otherwise the output is loggedYou can also generate models using a local yaml file
bunx @thinknimble/tnm-cli read 'some-yaml-path.yaml' -u '/api/users/ -o somepath.ts'
bunx @thinknimble/tnm-cli read 'some-yaml-url.com/sample.yaml' -u'/api/users/ -o somepath.ts'
with output
bunx @thinknimble/tnm-cli read 'your-local-file.yaml' -u '/api/users/' -o somepath.ts
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init in bun v1.1.22. Bun is a fast all-in-one JavaScript runtime.
FAQs
`tnm-cli` is a command line interface for auto-generating [tn-models](https://github.com/thinknimble/tn-models-fp) model definitions for your app's frontend from OpenAPI schema files provided by your app's backend. This is the standard pattern we use in a
The npm package @thinknimble/tnm-cli receives a total of 60 weekly downloads. As such, @thinknimble/tnm-cli popularity was classified as not popular.
We found that @thinknimble/tnm-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.