0

I'm lazy and I despise typing 'create-react-app some-app' to use create react app. Is it possible to change the command to something like: 'cra some-app'

1 Answer 1

1

You can use bash aliases for this. https://www.digitalocean.com/community/tutorials/an-introduction-to-useful-bash-aliases-and-functions

Though I must say, how often are you doing this that it becomes a problem?

EDIT -

I forgot that you need the argument of the project name...

https://stackoverflow.com/a/7131683/5602665

Check out this answer here for how to create a function. That's your best bet

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! Honestly, its not that often... but still bugs me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.