Skip to main content

Magic CLI

The best server maker.

Steps:

  1. pip install magic-cli (make sure the pip points to the correct python (3.6+))

  2. cd into the directory you want the server to be in

// use the cli to create the app

  1. magic create < app name >

  2. cd < app name >

// now make the virtual env and pip install the requirements 5) python3 -m venv venv

  1. source venv/bin/activate

  2. pip install -r requirements.txt

// files needed to run 8) Create an .env file in the < app name > directory.

a) Use the ".example_env" as a template. Fill in the env variables for the services you will need to use.

b) The SERVICE and TASKS_TABLE_NAME are required for the app.

// add firestore

  1. add the firestore service account json to the < app name > and name it "my-service-account.json"

// to deploy to aws lambda

  1. Create a user on AWS and sign in via the CLI (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html)

  2. npm i

  3. magic deploy

That should be it for the setup!

Time to run it!

To start a local server: magic start

To test local server (while local server is running): magic test

To deploy for the first time or any time you change the serverless yaml: magic deploy

To deploy when you just edited the app code: magic deploy_again

To update magic-cli: pip install --upgrade magic-cli

Metadata

Release files for magic-cli 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magic-cli 0.1.23
File Size Uploaded Provenance Actions
magic-cli-0.1.23.tar.gz 3.4 kB Without provenance Details for magic-cli-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for magic-cli 0.1.23
File Interpreter ABI Platform Actions
magic_cli-0.1.23-py3-none-any.whl Python 3 none any Details for magic_cli-0.1.23-py3-none-any.whl

Total release size: 7.1 kB

Release files / magic-cli-0.1.23.tar.gz

Download URL magic-cli-0.1.23.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
730f13402d40a2418b8da8529ca75f05490c0b4dbdbd34f93e60aa08f10aa49b
BLAKE2b-256 checksum
How to use checksums
a9e70783b00f80df82f2cbed4f213f232da6c5f7f2e2b6964558446c7f30b0db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.2 Darwin/19.5.0

Release files / magic_cli-0.1.23-py3-none-any.whl

Download URL magic_cli-0.1.23-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0ce369a497f6c58910f07876dd7615c095b3819537ac040807837fdf70ba9a6
BLAKE2b-256 checksum
How to use checksums
158d450b535dab53a3295420831270706ae36c6ddaf68646f7e8803e0d681994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.2 Darwin/19.5.0

Security for magic-cli 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page