nb env add

Enregistrer un endpoint d'API NocoBase nommé et faire passer le CLI sur cet env. Si vous choisissez la méthode d'authentification oauth, le flux de connexion nb env auth est lancé automatiquement.

Utilisation

nb env add [name] [flags]

Paramètres

ParamètreTypeDescription
[name]stringNom de l'environnement ; demandé en TTY si omis, requis hors TTY
--verbosebooleanAfficher la progression détaillée lors de l'écriture de la configuration
--localestringLangue des messages CLI : en-US ou zh-CN
--api-base-url, -ustringAdresse de l'API NocoBase, incluant le préfixe /api
--auth-type, -astringMéthode d'authentification : token ou oauth
--access-token, -tstringAPI key ou access token utilisé par la méthode token

Exemples

nb env add
nb env add local
nb env add local --api-base-url http://localhost:13000/api --auth-type oauth
nb env add local --api-base-url http://localhost:13000/api --auth-type token --access-token <token>

Commandes connexes