# laf-cli

> laf-cli is a command-line tool designed to help developers quickly create, deploy, and manage applications on laf.

Latest version **1.0.0-patch.0** (published 2024-06-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install laf-cli
pnpm add laf-cli
yarn add laf-cli
bun add laf-cli
```

Provides the command `laf`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-patch.0 |
| Published | 2024-06-11 |
| First published | 2022-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 263.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | maslow |
| Keywords | laf |

## Links

- npm: https://www.npmjs.com/package/laf-cli
- Repository: https://github.com/labring/laf
- Homepage: https://github.com/labring/laf#readme
- Issues: https://github.com/labring/laf/issues
- npm.io page: https://npm.io/package/laf-cli

## Dependencies (16)

- [cli](https://npm.io/package/cli.md) ^1.0.1
- [mime](https://npm.io/package/mime.md) ^3.0.0
- [yaml](https://npm.io/package/yaml.md) ^2.1.3
- [axios](https://npm.io/package/axios.md) ^1.2.1
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.7
- [dotenv](https://npm.io/package/dotenv.md) ^16.3.1
- [prompts](https://npm.io/package/prompts.md) ^2.4.1
- [commander](https://npm.io/package/commander.md) ^9.3.0
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [urlencode](https://npm.io/package/urlencode.md) ^1.1.0
- [cli-table3](https://npm.io/package/cli-table3.md) ^0.6.3
- [node-emoji](https://npm.io/package/node-emoji.md) ^1.11.0
- [typescript](https://npm.io/package/typescript.md) ^4.7.4
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [class-transformer](https://npm.io/package/class-transformer.md) ^0.5.1
- [@aws-sdk/client-s3](https://npm.io/package/@aws-sdk/client-s3.md) ^3.45.0

## Recent versions

- 1.0.0-patch.0 (latest) — 2024-06-11
- 1.0.0 — 2024-04-01
- 1.0.0-beta.14-fix2 — 2024-02-22
- 1.0.0-beta.14-fix1 — 2024-01-11
- 1.0.0-beta.14-fix0 — 2023-12-20
- 1.0.0-beta.14 — 2023-12-19
- 1.0.0-beta.12 — 2023-10-31
- 1.0.0-beta.11 — 2023-09-12
- 1.0.0-beta.10-fix — 2023-08-09
- 1.0.0-beta.10 — 2023-07-12
- 1.0.0-beta.9 — 2023-06-07
- 1.0.0-beta.7 — 2023-04-25
- 1.0.0-beta.6 — 2023-04-11
- 1.0.0-beta.5 — 2023-03-22
- 1.0.0-beta.4-fix — 2023-03-14
- … 15 more at https://npm.io/package/laf-cli/versions

## README

## Project Introduction

laf-cli is a command-line tool designed to help developers quickly create, deploy, and manage applications on laf.

## Quick Start

To install laf-cli, use npm:
```bash
npm install -g laf-cli
```

Once installation is complete, verify the installation using:
```bash
laf -v
```

To log in, use the login command with your personal access token (PAT), which can be obtained from User Settings -> Personal Access Tokens:
```bash
laf login <pat>
```

View the list of applications and initialize an application:
```bash
laf app list
laf app init <appId>
```

For more commands and usage:
```bash
laf -h
```

## Development

To begin development, follow the steps below:

1. Navigate to the cli directory in the terminal:
```bash
cd cli
```

2. Install the required dependencies: 
```bash
npm install
```

3. Run the watch command:
```bash
npm run watch
```

4. Open a new terminal and run link command:
```bash
npm link
```

5. Finally, verify that everything is working as expected:
```bash
laf -v
```

## File Tree

```
├── src
|  ├── action
|  |  ├── application
|  |  ├── auth
|  |  ├── dependency
|  |  ├── function
|  |  ├── policy
|  |  ├── storage
|  |  └── website
|  ├── api
|  |  └── v1
|  ├── command
|  |  ├── application
|  |  ├── auth
|  |  ├── dependency
|  |  ├── function
|  |  ├── policy
|  |  ├── storage
|  |  └── website
|  ├── common
|  ├── config
|  └── util
└── template
```

---
_Source: https://npm.io/package/laf-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
