CLI des apps Facet
Généré depuis
packages/cliparmake gen-docs-npm-cli. Ne modifiez pas ce fichier à la main.
Le paquet npm @facetapp/cli déploie un dossier de build statique comme nouvelle révision d’une app Facet. Il liste et active les révisions, et gère la connexion à une instance Facet. Aucune installation n’est nécessaire : lancez les commandes via pnpx @facetapp/cli. Le paquet demande Node 20 ou plus récent. Les commandes lisent facet.config.json dans le répertoire courant ; init l’écrit.
Commandes
Section intitulée « Commandes »| Commande | Options | Rôle |
|---|---|---|
init |
--yes, --app <slug>, --build <dir>, --server <url> |
Write a facet.config.json file for this project. |
login |
--target <name> |
Sign in to a Facet instance and store the session. |
logout |
--target <name> |
Remove the stored session for a Facet instance. |
whoami |
--target <name> |
Show the stored account, role, instance, and active revision. |
deploy |
--target <name>, --note <text>, --no-activate |
Upload the build folder as a new deployment of the app. |
releases |
--target <name> |
List the deployments of the app, newest first. |
rollback <revision> |
--target <name> |
Set an older revision as the active deployment. |
help [command] |
— | display help for command |
Sortie d’aide
Section intitulée « Sortie d’aide »Les blocs ci-dessous sont les textes d’aide capturés du paquet.
facet-cli
Section intitulée « facet-cli »Usage: facet-cli [options] [command]
Command-line interface for Facet.
Options: -V, --version output the version number -h, --help display help for command
Commands: init [options] Write a facet.config.json file for this project. login [options] Sign in to a Facet instance and store the session. logout [options] Remove the stored session for a Facet instance. whoami [options] Show the stored account, role, instance, and active revision. deploy [options] Upload the build folder as a new deployment of the app. releases [options] List the deployments of the app, newest first. rollback [options] <revision> Set an older revision as the active deployment. help [command] display help for commandfacet-cli init
Section intitulée « facet-cli init »Usage: facet-cli init [options]
Write a facet.config.json file for this project.
Options: --yes Create the app without asking for confirmation. --app <slug> App slug to write to the config. --build <dir> Build folder to upload (default: dist). --server <url> Facet instance URL to add as the default target. -h, --help display help for commandfacet-cli login
Section intitulée « facet-cli login »Usage: facet-cli login [options]
Sign in to a Facet instance and store the session.
Options: --target <name> Named target from facet.config.json to sign in to. -h, --help display help for commandfacet-cli logout
Section intitulée « facet-cli logout »Usage: facet-cli logout [options]
Remove the stored session for a Facet instance.
Options: --target <name> Named target from facet.config.json to sign out of. -h, --help display help for commandfacet-cli whoami
Section intitulée « facet-cli whoami »Usage: facet-cli whoami [options]
Show the stored account, role, instance, and active revision.
Options: --target <name> Named target from facet.config.json to ask. -h, --help display help for commandfacet-cli deploy
Section intitulée « facet-cli deploy »Usage: facet-cli deploy [options]
Upload the build folder as a new deployment of the app.
Options: --target <name> Named target from facet.config.json to deploy to. --note <text> Short note to attach to the new deployment. --no-activate Keep the new deployment inactive after the upload. -h, --help display help for commandfacet-cli releases
Section intitulée « facet-cli releases »Usage: facet-cli releases [options]
List the deployments of the app, newest first.
Options: --target <name> Named target from facet.config.json to ask. -h, --help display help for commandfacet-cli rollback
Section intitulée « facet-cli rollback »Usage: facet-cli rollback [options] <revision>
Set an older revision as the active deployment.
Options: --target <name> Named target from facet.config.json to ask. -h, --help display help for commandVoir aussi
Section intitulée « Voir aussi »- Premiers pas avec le CLI dev — premier déploiement sans installation.
- Héberger et déployer des apps — ce qu’est un déploiement et comment fonctionne l’activation.