@anyflow-labs/cli v1.0.9
AnyFlow CLI
A command-line interface (CLI) for performing operations with AnyFlow.
Table of Contents
Installation
To install the anyflow-cli inside you project:
npm install anyflow-cliUsage
After installation, you can use the anyflow cli in your terminal. To see the available commands and options, run:
anyflow helpFirst Use and Authentication
To get started with the AnyFlow CLI, you'll need to authenticate your session. Follow these steps:
Initialize Your Project: If you are starting a new project, navigate to your project directory:
mkdir my-anyflow-project cd my-anyflow-projectRun the Init Command: This command will create the necessary environment variables:
anyflow initRun the Install Command: This will update your
hardhat.config.jswith the necessary configuration:anyflow installAuthenticate: Run the following command to authenticate your session:
anyflow authThis command will prompt you for your API key and may attempt to open your browser. Enter your API key when prompted to complete the authentication process.
Verify Authentication: After successful authentication, you can verify that you are logged in by running:
anyflow check-authIf you see a confirmation message, you are successfully authenticated and ready to use the CLI.
Commands
anyflow <command>
Available commands:
help: Show help information for AnyFlow CLI.init: Create the necessary environment variables.install: Update yourhardhat.config.jswith the necessary configuration.auth: Authenticate your session with AnyFlow.check-auth: Check your authentication status.deploy: Upload your artifacts to the AnyFlow platform and deploy your project.
Contributing
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
License
This project is licensed under the ISC License - see the LICENSE file for details.
10 months ago