{"_id":"fusionauth-cli","_rev":"1-917bc64654d49a3285455acff1098272","name":"fusionauth-cli","dist-tags":{"latest":"1.2.4"},"versions":{"1.2.3":{"name":"fusionauth-cli","version":"1.2.3","keywords":["fusionauth","oidc","oauth","themes"],"author":{"name":"FusionAuth"},"license":"Apache-2.0","_id":"fusionauth-cli@1.2.3","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://github.com/FusionAuth/fusionauth-node-cli#readme","bugs":{"url":"https://github.com/FusionAuth/fusionauth-node-cli/issues"},"bin":{"fusionauth":"dist/index.js"},"dist":{"shasum":"57be659b494c11b5609d8d0ea996ad43f38846d1","tarball":"https://registry.npmjs.org/fusionauth-cli/-/fusionauth-cli-1.2.3.tgz","fileCount":42,"integrity":"sha512-DzLlzVflAWyOv1a2usB3Ohxo2UW/NTBaCBA5b22/ofzap+fpcfdwm5hZlWwpWAZdd1MUKeNxfSfglN0O2CPTBg==","signatures":[{"sig":"MEQCIF/J9m1HdfBdpCxdhwGCUoftb/vg1M03KcPLXvIH51c5AiBbk8tynIOMFD30jR83EJbdXLM9ngR1id+9fDjR7i+sQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100748},"main":"dist/index.js","type":"module","gitHead":"8a679131acca14f0a96d7ec0787c38fcab5048ff","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"repository":{"url":"git+https://github.com/FusionAuth/fusionauth-node-cli.git","type":"git"},"_npmVersion":"10.9.2","description":"FusionAuth CLI for node 22","directories":{},"_nodeVersion":"22.13.0","dependencies":{"uuid":"9.0.0","chalk":"5.3.0","merge":"2.1.1","queue":"7.0.0","figlet":"1.6.0","chokidar":"3.5.3","fs-extra":"11.1.1","commander":"11.0.0","log-update":"5.0.1","log-symbols":"5.1.0","html-to-text":"9.0.5","remove-undefined-objects":"3.0.0","@commander-js/extra-typings":"11.0.0","@fusionauth/typescript-client":"1.47.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"10.9.1","type-fest":"3.13.0","typescript":"5.7.3","@types/node":"22.10.10","@types/uuid":"9.0.2","@types/figlet":"1.5.6","@types/fs-extra":"11.0.1","@types/html-to-text":"9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fusionauth-cli_1.2.3_1737932062382_0.8969216606601651","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"fusionauth-cli","version":"1.2.4","description":"FusionAuth CLI for node 22","main":"dist/index.js","scripts":{"build":"tsc","prepublishOnly":"npm run build","start":"node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["fusionauth","oidc","oauth","themes"],"repository":{"type":"git","url":"git+https://github.com/FusionAuth/fusionauth-node-cli.git"},"author":{"name":"FusionAuth"},"license":"Apache-2.0","bugs":{"url":"https://github.com/FusionAuth/fusionauth-node-cli/issues"},"homepage":"https://github.com/FusionAuth/fusionauth-node-cli#readme","dependencies":{"@commander-js/extra-typings":"11.0.0","@fusionauth/typescript-client":"1.47.0","chalk":"5.3.0","chokidar":"3.5.3","commander":"11.0.0","figlet":"1.6.0","fs-extra":"11.1.1","html-to-text":"9.0.5","log-symbols":"5.1.0","log-update":"5.0.1","merge":"2.1.1","queue":"7.0.0","remove-undefined-objects":"3.0.0","uuid":"9.0.0"},"devDependencies":{"@types/figlet":"1.5.6","@types/fs-extra":"11.0.1","@types/html-to-text":"9.0.1","@types/node":"22.10.10","@types/uuid":"9.0.2","ts-node":"10.9.1","type-fest":"3.13.0","typescript":"5.7.3"},"bin":{"fusionauth":"dist/index.js"},"type":"module","_id":"fusionauth-cli@1.2.4","gitHead":"784af1fb4ab2cd8852952cd22675ceaeaa05d8df","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-gySR7Qa9azh0iorYdw5DE7pOVZD0eJryP8GHSDd4D2q3iXk3rgJ/8sABwy8yVio6uv/VGAfR1G5oZ9agoBkknA==","shasum":"20b2d8b65d80044e9cc770c68a075219e3162a6f","tarball":"https://registry.npmjs.org/fusionauth-cli/-/fusionauth-cli-1.2.4.tgz","fileCount":42,"unpackedSize":100833,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIADlItfuo1HtW1rS4F/u68+0HvnE97rJnfEEvk/o9LUvAiEAqR4FhnfZ1U4EX5BYye2nWfFpwv2kLX9L1cYXrfQd0Hc="}]},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"directories":{},"maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fusionauth-cli_1.2.4_1737932332561_0.503487181889329"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-26T22:54:22.382Z","modified":"2025-01-26T22:58:52.962Z","1.2.3":"2025-01-26T22:54:22.595Z","1.2.4":"2025-01-26T22:58:52.776Z"},"bugs":{"url":"https://github.com/FusionAuth/fusionauth-node-cli/issues"},"author":{"name":"FusionAuth"},"license":"Apache-2.0","homepage":"https://github.com/FusionAuth/fusionauth-node-cli#readme","keywords":["fusionauth","oidc","oauth","themes"],"repository":{"type":"git","url":"git+https://github.com/FusionAuth/fusionauth-node-cli.git"},"description":"FusionAuth CLI for node 22","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"readme":"## FusionAuth CLI\n\nThe FusionAuth CLI is a command line tool for interacting with FusionAuth. It is written in Typescript and is available as an NPM package.\n\n## Fork notice\n\nThis is a fork of the original FusionAuth CLI, which can be found at https://github.com/FusionAuth/fusionauth-node-cli.\n\nThis fixes an issue where you are unable to use the CLI under node 22.\n\nYou can audit the changes here:\n\nhttps://github.com/theogravity/fusionauth-node-cli\n\n## Requirements\n\n* A modern version of node (tested on 19)\n* A FusionAuth instance (download it here: https://fusionauth.io/download)\n\n## Installation & usage\n\nTo install and use @fusionauth/cli, run the following commands:\n```bash\nnpm i @fusionauth/cli;\nnpx fusionauth --help;\n```\n\nYou can install it globally for ease of use from anywhere, but global installations can potentially lead to conflicts and are not recommended:\n```bash\nnpm i -g @fusionauth/cli;\nfusionauth --help;\n```\n\nCurrently, the CLI supports the following commands:\n- Emails\n  - `fusionauth email:download` - Download a specific template or all email templates from a FusionAuth server.\n  - `fusionauth email:duplicate` - Duplicate an email template locally.\n  - `fusionauth email:html-to-text` - Convert HTML email templates to text, where the text template is missing.\n  - `fusionauth email:upload` - Upload a specific template or all email templates to a FusionAuth server.\n  - `fusionauth email:watch` - Watch the email template directory and upload changes to a FusionAuth server.\n  - `fusionauth email:create` - Create a new email template locally.\n- Lambdas\n  - `fusionauth lambda:create` - Upload a lambda to a FusionAuth server.\n  - `fusionauth lambda:delete` - Delete a lambda from a FusionAuth server.\n  - `fusionauth lambda:retrieve` - Download a lambda from a FusionAuth server.\n- Themes\n  - `fusionauth theme:download` - Download a theme from a FusionAuth server.\n  - `fusionauth theme:upload` - Upload a theme to a FusionAuth server.\n  - `fusionauth theme:watch` - Watch a theme directory and upload changes to a FusionAuth server.\n\nInstead of supplying the API key with the `-k` option on every command, you can set the `FUSIONAUTH_API_KEY` environment variable.\nThe same goes for the host URL option `-h`, which can be set with the `FUSIONAUTH_HOST` environment variable.\n\n## Questions and support\n\nIf you have a question or support issue regarding this client library, we'd love to hear from you.\n\nIf you have a paid edition with support included, please [open a ticket in your account portal](https://account.fusionauth.io/account/support/). Learn more about [paid editions here](https://fusionauth.io/pricing).\n\nOtherwise, please [post your question in the community forum](https://fusionauth.io/community/forum/).\n\n## Releasing\n\nRun the [Publish Workflow](https://github.com/FusionAuth/fusionauth-node-cli/actions/workflows/publish.yaml).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub.\n\nTo build this library locally:\n```bash\ngit clone https://github.com/FusionAuth/fusionauth-node-cli &&\ncd fusionauth-node-cli;\nnpm install &&\nnpm run build;\n\n# now you can use it\nnpx fusionauth --version;\n```\n\nTo see examples of use look at https://fusionauth.io/docs/v1/tech/lambdas/testing.\n\n## License\n\nThis code is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).\n","readmeFilename":"README.md"}