Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@akis05/akis) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AKIS - Appwrite CLI Tool
CLI pour gérer les collections Appwrite depuis les types TypeScript.
Installation
npm i @akis05/akis
# ou
pnpm install @akis05/akisConfiguration
Créez un fichier .env avec vos variables Appwrite:
APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
APPWRITE_PROJECT_ID=votre_project_id
APPWRITE_DATABASE_ID=votre_database_id
APPWRITE_API_KEY=votre_api_keyUtilisation
Initialiser le projet
npx akis initCrée la structure:
core/
└── appwrite-model/
├── types.ts # Définitions TypeScript
├── schema.ts # Schéma des collections
├── client.ts # Client Appwrite
└── setup-collections.ts # Fonctions de setupCommandes
# Voir l'état des collections
npx akis status
npx akis status --name clients
# Créer les collections manquantes
npx akis migrate
npx akis migrate --name clients
npx akis migrate --dry-run
# Mettre à jour les collections existantes
npx akis update
npx akis update --name clients
# Supprimer des collections
npx akis delete --name clients
npx akis delete --forceWorkflow
npx akis init- Initialiser le projet- Définir vos types dans
core/appwrite-model/types.ts npx akis migrate- Créer les collectionsnpx akis status- Vérifier la synchronisation
Types supportés
Le parser reconnaît automatiquement:
string→ String attributenumber→ Float/Integer attributeboolean→ Boolean attributestring[]→ String array- Union types (
"a" | "b") → Enum attribute
License
MIT